> 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>
```

![](https://1600278159-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFlgUPYI8q83vG2IJpI%2Fuploads%2Fgit-blob-95da6acae9ab89d2a453569814b0900822858eb6%2Fimage.png?alt=media)

Anonymous check with Metasploit

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

![](https://1600278159-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFlgUPYI8q83vG2IJpI%2Fuploads%2Fgit-blob-6d330ab8b34e790d91f271792be58bbc51b592f8%2Fimage.png?alt=media)

## 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
```
