O'Reilly logo

Mastering Python for Networking and Security by Jose Manuel Ortega

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scanning types with Nmap

Network Mapper (Nmap) is a free and open source tool used for network discovery and security auditing. It runs on all major computer operating systems, and official binary packages are available for Linux, Windows, and Mac OS X. The python-nmap library helps to manipulate the scanned results of Nmap programmatically to automate port-scanning tasks.

The Nmap tool is mainly used for the recognition and scanning of ports in a certain network segment. From the site, https://nmap.org, we can download the latest version available, depending on the operating system on which we want to install it.

If we run the Nmap tool from the console, we get this:

We can see that we have the following types of scanning:

sT (TCP Connect ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required