Footprinting & Scanning CTF 1

Perform reconnaissance on target.ine.local and capture four flags.

eJPT preparation · Write-up by Zeliha Zengin

Lab Environment

GUI access to a Kali machine is provided. The target is at http://target.ine.local. Capture the hidden flags.

NmapFTPMySQL
Note: Flag format is FLAG1_MD5Hash — submit only the hash (no underscore).

All work is performed against an authorized INE training lab for eJPT exam preparation.

Flag 1 — Server banner

An aggressive scan surfaces the server's self-announced identity (banner):

nmap -sV -A -Pn -p- target.ine.local
Note: You can also find it via the browser's Developer Tools → Network tab response headers.
🏁 FLAG 1: d86409eba7ba48d9b0e3a168d0117cd7

Flag 2 — robots.txt hint

The scan reveals robots.txt, which points to a hidden directory:

http://target.ine.local/secret-info/
curl http://target.ine.local/secret-info/flag.txt
🏁 FLAG 2: 400b404fd1894701a37a456d67d9bf45

Flag 3 — Anonymous FTP

Nmap shows FTP allows anonymous login. Connect and download the files:

ftp target.ine.local
# username: anonymous
# password: anonymous
ftp> get creds.txt
ftp> get flag.txt
ftp> bye
cat creds.txt   # db_admin:password@123
cat flag.txt
🏁 FLAG 3: 9daf63f7dc394de493e481817853d500

Flag 4 — MySQL database

The FTP creds.txt gives valid DB credentials, and Nmap shows MySQL on port 3306. Connect and list databases:

mysql -u db_admin -p -h target.ine.local
# password: password@123
show databases;
🏁 FLAG 4: fa068d2cfcdc48ac83b940b81985d303

Summary

FlagTechnique
1Banner grabbing (Nmap / response headers)
2robots.txt → hidden directory
3Anonymous FTP file download
4MySQL login with leaked FTP credentials

Key Takeaways