Anonymous FTP
Scan the machine, find an FTP server and get in with the anonymous account admins forget to close.
FTP is one of the oldest file transfer protocols, and it still runs in plenty of companies and offices. Many servers ship with an anonymous account open for public files, and sometimes files that are anything but public end up there.
In this room you scan the machine, find the service and log in without a password.
0 of 4 · 0 of 60 points
Target machine
Ubuntu 24.04 + vsftpd (anonymous FTP) · Runs for 60 minutes, and you can extend it
Sign in to start your own machine.
Task 1: Find the service
Press Start machine. Within a minute your own IP address appears. Run every command in this room from the AttackBox (the "Open AttackBox" button) or from your computer over the VPN. Replace IP with your machine's address.
This is an isolated training machine that is yours alone. Using these techniques on systems you have no written permission to test is a crime.
Scan the ports
nmap -sV IP
-sV tries to identify the program and its version behind each open port.
1.1Which port is the FTP server listening on?
10Task 2: Anonymous login
Many FTP servers accept the username anonymous with any password (or none). nmap can check it for you:
nmap -p 21 --script ftp-anon IP
Or log in yourself and list the files with curl:
curl --user anonymous: ftp://IP/
2.1Which username let you in without a password?
10Task 3: The files
See what is in the pub folder:
curl --user anonymous: ftp://IP/pub/
And download the file you want:
curl --user anonymous: ftp://IP/pub/<file-name>
The lesson: anonymous access must be off (anonymous_enable=NO) unless the files really are public, and FTP itself sends everything unencrypted, so its safe replacement is SFTP.
3.1What is the name of the file with the flag in the pub folder?
103.2Download the file and submit the flag
30