Privilege escalation

Enumerate using linpeas.sh

Abusing SUID dosbox

I will be writing to /etc/passwd file.

Make a password that has an encrypted root value.

Value for adding new user to passwd file.

Now I will abuse dosbox suid to write to /etc/passwd file.

This overwrite the file completely.

I will try another way that is I will append my value. First, I will reset the machine and start again.

This worked and our new user is added successfully.

However, I am unable to switch users. Let me create a new user root2 at beginning of the file and see if it works.

Not working.

Changing Sudoers file [Worked]

I will change the sudoers file and give sudo access to the current user. I know that current user is http.

Now start the new shell and switch to the root user. [Don't forget to stabilize it]

circle-info

Other things:

I didn't see the configuration file for Credential related data. I could have checked that also.

Location: "/srv/http/wp-config.php"

Last updated

Was this helpful?