This chapter covers how network scanning is done with python-nmap to gather information on a network, host, and the services that are running on the hosts. Some of the tools that allow a port scanner and automate the detection of services and open ports, we can find in Python, among which we can highlight python-nmap. Nmap is a powerful port scanner that allows you to identify open, closed, or filtered ports. It also allows the programming of routines and scripts to find possible vulnerabilities in a given host.
The following topics will be covered in this chapter:
- Learning and understanding the Nmap protocol as a port scanner to identify services running on a host
- Learning and understanding the python-nmap module that uses Nmap at a low level and is a very useful tool to optimize tasks related to port scanning
- Learning and understanding synchronous...