🔬FTP Enum
FTP (File Transfer Protocol) - a client-server protocol used to transfer files between a network using TCP/UDP connections.
It requires a command channel and a data channel.
Default FTP port is 21, opened when FTP is activated for sharing data.
sudo nmap -p21 -sV -sC -O <TARGET_IP>Lab 1
Target IP:
192.217.238.3Enumeration of ProFTP server
ip -br -c a
eth1@if170718 UP 192.217.238.2/24Target IP is
192.217.238.3
nmap 192.217.238.3
21/tcp open ftpnmap -p21 -sV -O 192.217.238.321/tcp open ftp ProFTPD 1.3.5a
[...]
Service Info: OS: Unix
📌 FTP server version is
ProFTPD 1.3.5a.
Try
anonymous:anonymouslogin
Use
hydrawith some users/passwords word lists to check if any credentials work with the ftp server

📌 Found credentials are:
sysadmin:654321rooty:qwertydemo:butterflyauditor:chocolateanon:purpleadministrator:tweetydiag:tigger
Use nmap ftp-brute script to find the
sysadmin's password
Extract the 7 flags hidden on the server by logging in to the
ftpserver with each found user
Lab 2
Target IP:
192.119.169.3Enumeration of vsftpd server
Target IP is
192.119.169.3

📌 FTP server version
vsftpd 3.0.3
Use nmap ftp-anon script to check
anonymoususer login
📌 Anonymous FTP login allowed
Lab 3
🔬 VSFTPD Recon: Dictionary Attack
Target IP:
192.14.30.3Dicotionary attack on
vsftpdserverFTP server terminates the session after 3 attemps
Target IP is
192.14.30.3
📌 billy's password is
carlos
A custom script to attemp the logins is required if automated dictionary attack do not work, since the server terminates the sessions after 3 login attempts.
e.g.python script:
Fetch the flag using
billy:carloscredentials
Last updated
Was this helpful?