Distributing a scan among several clients using dnmap
dnmap is an excellent project for distributing Nmap scans among different clients. The extra resources available (CPU and bandwidth) allow us to scan more targets faster when time is a limiting factor. The main advantage of using dnmap is having the Nmap Scripting Engine available for customized tasks against the target hosts.
This recipe will show you how to perform distributed port scanning with dnmap.
Getting ready
Download the latest version of dnmap from the official SourceForge repositories at https://sourceforge.net/projects/dnmap/files/.
dnmap depends on Python's twisted
library. If you are on a Debian-based system, you can install it with the following command:
# apt-get install libssl-dev python-twisted
It is also worth mentioning that Nmap is not self-contained in dnmap; we must install it separately on each client. Please refer to the Compiling Nmap from source code recipe in Chapter 1, Nmap Fundamentals...