Performing a Quick nmap Ping Scan on a Subnet

This will quickly do a scan on a subnet to determine IP addresses on the network.

nmap -sP 10.1.0.0/16

Only Return IP Addresses

If you only want to return just the IPs and not other info you can pass to the awk command like this

nmap -sP -oG - 10.1.0.0/16 | awk '/Status: Up/{print $2}'

Leave a Reply

Your email address will not be published.