First, identify the target IP. In this case, it is 192.168.1.73. We run an aggressive Nmap scan:
The scan reveals ports 22 (SSH) and 80 (HTTP) are open.
Exploring port 80, we find a login page. We'll run a directory brute force using Gobuster:
We discover a /secret directory. Navigating there reveals an image: doubletrouble.jpg.
We download the image and use StegCracker to see if there is hidden data:
StegCracker finds the password: 92camaro. Extracting the data gives us credentials:
Login with the found credentials and upload a PHP reverse shell. Set up a listener on your Kali machine:
Once the shell is uploaded, trigger it by navigating to the file in the /uploads/users/ directory. Stabilize your shell with Python:
Checking sudo permissions with sudo -l reveals that the user can run awk as root:
Success! You are now root.