October 2017
Intermediate to advanced
376 pages
9h 20m
English
Here, we have a situation where we have got a reverse shell as www-data.
Running sudo –-list, we find that the user is allowed to open a configuration file as another user, waldo:

So, we open up the config file in VI Editor, and to get a shell in VI, we type this in the VI’s command line:
!bash

We now have a shell with the user waldo. So, our escalation was successful.
Read now
Unlock full access