Skip to main content

NMAP: how to scan multiple targets basic (part-2)

Scan Multiple Targets
Nmap can be used to scan multiple hosts at the same time. The easiest way to do
this is to string together the target IP addresses or host names on the command line




Usage syntax: nmap [target1 target2 etc]
$ nmap 192.168.10.1 192.168.10.100 192.168.10.101
Starting Nmap 5.00 ( http://nmap.org ) at 2009-08-07 20:30 CDT
Interesting ports on 192.168.10.1:
Not shown: 997 filtered ports
PORT
STATE
SERVICE
20/tcp closed ftp-data
21/tcp closed ftp
80/tcp open
http
Interesting ports on 192.168.10.100:
Not shown: 995 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
2049/tcp open
nfs
Nmap done: 3 IP addresses (2 hosts up) scanned in 6.23 seconds


Multiple target scan


The example above demonstrates using Nmap to scan three addresses at the same
time.

Tip

Since all three targets in the above example are on the same subnet you 
could use the shorthand notation of nmap 192.168.10.1,100,101 to
achieve the same results.