> For the complete documentation index, see [llms.txt](https://viperone.gitbook.io/pentest-everything/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://viperone.gitbook.io/pentest-everything/everything/ports/port-21-or-ftp.md).

# Port 21 | FTP

Identity hosts running FTP

```bash
nmap -sV -p 21 --open <IP>
```

Manual banner grab

```bash
telnet <IP> 21
nc <IP> 21 
```

All Nmap scripts.

```bash
nmap --script ftp-* -p 21 <IP>
```

![](/files/mCxrKPqCl6Ia7f0f6p2U)

Anonymous check with Metasploit

```
use auxiliary/scanner/ftp/anonymous
```

![](/files/FhqRhUb3xnU3a2mAGHbH)

## Download all files from FTP

```bash
wget -m ftp://anonymous:anonymous@10.10.10.98
wget -m --no-passive ftp://anonymous:anonymous@10.10.10.98
```
