Basic Interaction

Connecting to service

ftp {{ip}}
nc -nv {{ip}} 21
telnet {{ip}} 21

Connecting to service (If it runs with TLS/SSL encryption)

openssl s_client -connect {{ip}}:21 -starttls ftp

Additional information

status

protocol specific command

debug

protocol specific command

trace

protocol specific command

Download a file

get {{filename}}

protocol specific command

Download all files

wget -m --no-passive ftp://{{username}}:{{password}}@{{ip}}

For anonymous login: username = anonymous, password = anonymous

upload a file

put {{filename}}

protocol specific command


Foot Printing Service

listing all available ftp scripts

find /usr/share/nmap/scripts/ -type f -name ftp*

Run all ftp scripts

sudo nmap --script ftp-* -p 21 {{ip}}