Helium
Last updated
Last updated
To start, we perform a basic NMAP scan to locate the IP address of the target machine. Here is its IP:
As we can observe, we find ports 80 and 22 open. Port 80 hosts a webpage, and port 22 runs the SSH service.
We open the website and encounter the following:
We obtain a possible username: paul.
We enter the "bootstrap.min.css" directory and find the following information that will be useful:
We test the address /yay/mysecretsound.wav, and indeed, it exists. We download the audio.
Upon listening to the audio, you realize it might be in Morse code. So, you go to the "morsecode.world" page to upload the audio and have it decoded.
I attempted to log in via SSH with the username "paul" and the password "ETAIE4SIET," but it didn't work. Later, I noticed a word formed in the audio at the bottom, so I used "dancingpassyd" as the password and successfully logged in.
Now, with the "ls" command, we see that we have obtained the user flag.
We use the "sudo -l" command to view the actions we can perform with sudo as root while being the user "paul." As a result, we see that we can execute the /usr/bin/ln binary with sudo as if we were root.
We go to the GTFOBins website and look for information on how to escalate privileges using the sudo command as if we were root.
We copy the commands and execute them:
We have successfully become the root user. Now, to obtain the root flag, we use the following command: