One of the objectives of this topic has been to find out about the modules that allow a port scanner to be performed on a specific domain or server. One of the best tools to perform port scouting in Python is python-nmap, which is a module that serves as a wrapper to the nmap command. There are alternatives, such as Scrapy, that also work quite well for these types of tasks and also allow us to look at a level lower into how these types of tools work.
In the next chapter, we will explore more about programming packages and Python modules for interacting with the Metasploit framework for exploiting vulnerabilities.