File Transfer Protocol is a standard network protocol used for transferring files between a client and a server. It operates in the Application layer and uses various authentication methods, including username and password authentication.
Similar to Telnet, it sends data in plain text, making it vulnerable to eavesdropping, supports different network configurations to handle firewalls and NAT. Uses usually port 21, known as Control Channel, to handle commands and responses, and port 20, known as Data Channel, to transfer files.
Interaction with the protocol
Install
sudoaptinstallftp
Connect using the protocol
ftp$ipname:anonymous#Establish an anonymous connectionftp:\> #Text based interfaceftp:\> ls#List files on the serverftp:\> ls-R#List recursivelyftp:\> get$filename#Download a fileftp:\> mget$filename$filename2#Download multiple filesftp:\> mget*#Download all filesftp:\> put$filename#Upload a fileftp:\> exit#Close connection
Download all available files from an FTP server
This method could be risky and trigger alarms in the system