Connecting to FTP servers
So, let’s begin. In this first section, you’ll learn about the FTP protocol and how to use ftplib to connect with FTP servers, transferring files and implementing a brute-force process to get FTP user credentials.
FTP protocol
FTP is a cleartext protocol that’s used to transfer data from one system to another and uses Transmission Control Protocol (TCP) on port 21
, which allows the exchange of files between client and server. FTP is a very common protocol for file transfer and is mostly used by people to transfer a file from local workstations to remote servers.
The protocol is designed in such a way that the client and server need not use the same operating system to transfer files between them. This means any client and any FTP server may use a different operating system to move files using the operations and commands described in the protocol.
The protocol is focused on offering clients and servers an acceptable speed...