21 - Pentesting ftp
FTP stands for "File Transfer Protocol". It's a standard network protocol used for transferring files from one host to another over a TCP-based network, such as the Internet. FTP is commonly used for uploading and downloading files from websites, servers, and other computers.
wget download directory
HELPThe server indicates which commands are supported
LISTThis will send the list of files in current folder
LIST -RList recursively (if allowed by the server)
APPE /path/something.txtThis will indicate the FTP to store the data received from a passive connection or from a PORT/EPRT connection to a file. If the filename exists, it will append the data.
APPEbut it will overwrite the files
APPE, but if exists it won't do anything.
RETR /path/to/fileA passive or a port connection must be establish. Then, the FTP server will send the indicated file through that connection
REST 6This will indicate the server that next time it send something using RETR it should start in the 6th byte.
TYPE iSet transfer to binary
PASVThis will open a passive connection and will indicate the user were he can connects
PUT /tmp/file.txtUpload indicated file to the FTP