Back to services

FTP

FTPFTPSFile Transfer Protocol

File Transfer Protocol (FTP) transfers files between client and server. Anonymous access, clear-text credentials, and directory traversal are common issues.

Ports

PortProtocolDescription
21tcpFTP control
20tcpFTP data
990tcpFTPS control
989tcpFTPS data

Fingerprints

Banner / ProbeExpected Response
nmap -sV -p <port> <target>Service banner and version info
nc -nv <target> <port>Raw banner grab

Key Files

PathDescription
/etc/passwdList of system users
/etc/shadowPassword hashes for local users
/etc/ssh/sshd_configSSH server configuration
~/.ssh/id_rsaSSH private key

Default Credentials

UsernamePasswordContext
anonymousanonymous@Anonymous FTP access
ftpftpCommon FTP user

Known CVEs

IdentifierTypeDescription
AuthAnonymous access enabled

Exploitation Primitives

TechniqueTool / CommandResult
Anonymous Loginftp anonymous@<target>Read anonymous files
Brute Forcehydra -L users.txt -P pass.txt ftp://<target>Crack FTP credentials

Notes

Anonymous access is still surprisingly common on internal networks and IoT devices.

Check for write access — uploading a web shell or SSH key is often possible.

FTP over TLS (FTPS) is rare; most FTP traffic is cleartext.

Seen on

ShodanCensysFOFAZoomEye

References