# FTP & TELNET

***FTP***&#x20;

Version scanner : use auixiliary/scanner/ftp/ftp\_version&#x20;

auth scanner : user auxiliary/scanner/ftp/ftp\_login

nmap : nmap -sV --script ftp-anon -p 21 ip&#x20;

nmap --script ftp-brute -p 21 ip

ftp ip : login into ftp&#x20;

ls - list content of the directory&#x20;

get filename (download the file)&#x20;

put filename (upload the file)&#x20;

mkdir name : Make the directory

cd dir-name  : Change the directory&#x20;

pwd : shows the present working directory

cdup : (move to the parent directory of the current directory)&#x20;

! : (cmd opens a shell window to the local computer)&#x20;

exit : Exits the ftp session&#x20;

rename file\_to\_rename renamedfile&#x20;

delete filename

***TELNET***&#x20;

version scanner : use auxiliary/scanner/telnet/telnet\_version&#x20;

login : use auxiliary/scanner/telnet/telnet\_login

telnet ip 22 (ssh banner grabbing)&#x20;

telnet ip 25 (smtp banner grabbing)&#x20;

telnet ip 80 (web fingerprinting )

telnet ip 25&#x20;

EHLO hostname mycomputer.net&#x20;

MAIL FROM :&#x20;

RCPT TO :&#x20;

DATA

.

telnet ip 21&#x20;

USER username&#x20;

PASS password&#x20;

RETR filename (retrieve remote file from the server)&#x20;

QUIT&#x20;

HELP
