Sitemap
Muzec

Muzec

Itz_Muzec Learner…. Want To Be Among The Best In Infosec, Hacking Is My Passion…. Noob Forever…. Chilling In A Rabbit Hole….

Mr Robot CTF — Write-up

3 min readJul 7, 2020
Press enter or click to view image in full size
Mr Robot CTF Tryhackme.com

Enumeration! Enumeration! Time!

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

Using Gobuster to Brute force directory we found some hidden directory the first thing i try to access is the /wp-login url.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size
shell!!!

Changing directory to home we found the second key but we are having no permission to view file.

Press enter or click to view image in full size

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.

Press enter or click to view image in full size

Let head to root finding the last key i try checking sudo -l but no luck let check some SUID files.

Press enter or click to view image in full size

GTFOBins

Press enter or click to view image in full size
root

Let get the last key at root directory.

Press enter or click to view image in full size

Finally Box Rooted.

--

--

Muzec
Muzec

Written by Muzec

Itz_Muzec Learner…. Want To Be Among The Best In Infosec, Hacking Is My Passion…. Noob Forever…. Chilling In A Rabbit Hole….