Mr Robot CTF — Write-up
Enumeration! Enumeration! Time!
nmap -sC -sV -oA nmap IP
Two open ports and one closed port 22 which ssh is closed port 80 open which is HTTP and port 443 open ssl.
Get Muzec’s stories in your inbox
Join Medium for free to get updates from this writer.
Next step is to visit the IP to see what is running on port 80.
Terminal?? i try each commands on the terminal but not what am looking for so i try to check the robots.txt luckily boom something came up.
We have the first key out of the 3 keys we are searching for not wasting to much of time i try to access fsocity.dic hmm a directory, directory for what?? time to call Gobuster.
Using Gobuster to Brute force directory we found some hidden directory the first thing i try to access is the /wp-login url.
Boom WordPress admin login it time to brute force using Wpscan or Hydra based on the Mr. Robot show i already know the username is Elliot my guess actually lol using the directory we found fsocity.dic to brute force the login page.
We are in first thing that pop up in my mind is find a way to get a reverse shell now let head to appearance/editor click the 404 template to add a reverse shell code.
Let start an ncat listener to receive our shell to start an ncat connection command is nc -nvlp port now let visit the IP/404.php page to get our shell.
Changing directory to home we found the second key but we are having no permission to view file.
Let find user that have permission to view the file luckily we found a file with a username and a hash password password.raw-md5 let crack the hash and increase our privilege.
Let head to root finding the last key i try checking sudo -l but no luck let check some SUID files.
Let get the last key at root directory.
Finally Box Rooted.










