AbbySec

My digital playground – where hacking meets learning.

View on GitHub
18 July 2025

Fawn – Hack The Box

by

🧠 Summary

Hack The Box’s Fawn is a very easy Linux machine that demonstrates the security risk of enabling anonymous FTP login. We will connect to the HTB network, enumerate services using Nmap, log in to FTP without credentials, and retrieve the flag.


🛠️ Tools Used


🖥️ Target Info


🚀 Steps to Root

1. Connect to HTB VPN

Download your .ovpn file from HTB and run:

sudo openvpn file-name.ovpn

2. Scan with Nmap

Run an Nmap scan to find open ports and services:

nmap -sV -Pn 10.129.170.179

Result:

Nmap Scan

3. Connect via FTP (Anonymous Login)

Connect to the FTP service:

ftp 10.129.170.179

When prompted (FTP’s default username is anonymous not root!):

Name: anonymous
Password: (press Enter)

Connecting to FTP

4. List Files and Download Flag

Inside the FTP session:

ls -la
get flag.txt
bye

Then view the flag:

cat flag.txt

Flag:

035db21c881520061c53e0536e44f815

Transfer File View Flag

Key Takeaways

tags: