Distributing a scan among several clients using Dnmap
Dnmap is an excellent project for distributing Nmap scans among different clients. The extra resources available, such as bandwidth, allow us to scan one or more targets faster when time is a limiting factor during a security assessment.
The following 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 http://sourceforge.net/projects/dnmap/files/ .
Dnmap depends on python's library "twisted". 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 for instructions on installing Nmap.
How to do it...
Create a file that will contain your Nmap commands...