How it works...
In this recipe, we used an existing meterpreter shell to upload a script to the compromised server. unix-privesc-check is a shell script that automatically looks for certain configurations, characteristics, and parameters in the system that may allow a limited user to access resources which they are not authorized for, such as files belonging to other users or programs that are run under higher privilege profiles. We ran unix-privesc-check with the standard parameter, which makes only a basic set of tests; there is also the detailed option that takes longer but also performs a deeper analysis and can give us more escalation alternatives.
After analyzing the results of unix-privesc-check, we decided to modify a script that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access