Examples and source code for this chapter are available in the GitHub repository in the chapter 10 folder: https://github.com/PacktPublishing/Mastering-Python-for-Networking-and-Security.
You will need to install a Python distribution on your local machine with at least 4 GB memory. In this chapter, we will use a virtual machine with which some tests related to port analysis and vulnerability detection will be carried out. It can be downloaded from the sourceforge page at https://sourceforge.net/projects/metasploitable/files/Metasploitable2.
To log in, you must use as msfadmin as the username and msfadmin as the password.