Sitemap

TryHackMe | Mr. Robot walkthrough

3 min readJun 26, 2021

Based on the Mr. Robot show

This walkthrough is written as a part of Master certificate in cybersecurity (Red Team) that I am pursuing from HackeU.

Reconnaissance

Starting with a nmap scan

nmap -sS -sV -A <IP>

Open ports:

22 : SSH

80 : http

443 : https

Checking the website on port 80

Press enter or click to view image in full size

Checking robots.txt

  1. Found a dictionary fsocity.dic
  2. first key _key-1-of-3.txt

Using dirbuster to scan the IP address

Press enter or click to view image in full size

Checking admin page

Press enter or click to view image in full size

Now intercepting the login request in burpsuite and using the dic file we found to brute force it

Capture request in burp suite and forward request to intruder tab.

Press enter or click to view image in full size

Select sniper attack type, Select the username and password as parameter

Press enter or click to view image in full size

Load fsocity-1.dic dictionary as data input for username, start the attack.

Found user name, now find password with same dictionary file

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

Password found

Press enter or click to view image in full size

Password found

Login with found username and password to wp-login page as the site is based on wordpress

Press enter or click to view image in full size

Search for page where php-reverse shell can be uploaded to get reverse shell.

Found 404.php > updated php-reverse-shell here

Press enter or click to view image in full size

Start listener nc on kali machine, and browse the updated template page in browser.

nc -nlvp 4444

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

Try to spawn shell:

python -c ‘import pty; pty.spawn(“/bin/sh”)’ python -c ‘import pty; pty.spawn(“/bin/sh”)’

Found 2nd flag!

su robot

Escalate privileges and search for 3rd flag!

Search for users privilege permission:

find / -perm /4000 -type f 2>/tmp/2

Press enter or click to view image in full size

Got root access

nmap — — interactive

Found 3rd flag

Prateek Parashar
Prateek Parashar

Written by Prateek Parashar

Computer Science graduate who is passionate about CyberSecurity. An IoT and Crypto enthusiast.