# FTP

> FTP file transfer service. Attackers check banners, anonymous access, writable dirs, cleartext creds, CVEs, and backdoors, then exploit for shells, brute-force, or data exfiltration

- **URL:** https://hackindex.io/services/ftp
- **Type:** Service
- **Default ports:** 21
- **Tags:** ftp, file-transfer, network, anonymous-login, plaintext, linux
- **Published:** 2025-12-28
- **Updated:** 2026-07-13

FTP (File Transfer Protocol) runs on **TCP port 21** for control and **TCP port 20** for active-mode data transfer. Passive mode uses a negotiated high port instead. Nmap identifies it as `ftp` and most servers respond with a banner on connection.

FTP transmits credentials and data in plaintext. Anonymous login, weak credentials, and writable directories are common findings. Older FTP servers (vsftpd 2.3.4, ProFTPD 1.3.5) have known backdoors and RCE vulnerabilities.

Start with banner grabbing and anonymous login checks. If credentials are available, look for sensitive files, writable upload directories, and version-specific exploits.

## Phases

- [Enumeration](https://hackindex.io/services/ftp/enumeration.md): FTP banners, anonymous access, dirs, perms, and NSE scripts (6 guides)
- [Vulnerability Discovery](https://hackindex.io/services/ftp/vulnerability-discovery.md): FTP vulns: anonymous access, cleartext creds, writable dirs, CVEs, backdoor (7 guides)
- [Exploitation](https://hackindex.io/services/ftp/exploitation.md): FTP exploitation via backdoors, brute-force, shells, and bounce attacks (7 guides)
- [Post-Exploitation](https://hackindex.io/services/ftp/post-exploitation.md): FTP exfiltration, config looting, and log analysis guides (3 guides)
