Interacting with FTP, SFTP, and SSH Servers
In this chapter, we will learn about the modules that allow us to interact with FTP, SFTP, and SSH servers. These modules will make it easier to connect to different types of servers while performing tests related to the security of the services that are running on these servers.
As a part of this chapter, we will explore how the computers in a network can interact with each other and how they can access a few services through Python scripts and modules such as ftplib, paramiko, and pysftp. Finally, we are going to check the security of SSH servers with the ssh-audit and Rebex SSH check tools.
The following topics will be covered in this chapter:
- Connecting to FTP servers
- Building an anonymous FTP scanner with Python
- Connecting to SSH and SFTP servers using the paramiko and pysftp modules
- Implementing SSH servers with the paramiko module
- Checking the security of SSH servers with the ssh-audit and...