November 2012
Intermediate to advanced
318 pages
6h 36m
English
There are situations when a system administrator is looking for infected machines that use a specific port to communicate, or when users are only looking for a specific service or open port and don't really care about the rest. Narrowing down the port ranges used also optimizes performance, which is very important when scanning multiple targets.
This recipe describes how to use port ranges when performing Nmap scans.
Open your terminal and enter the following command:
# nmap -p80 192.168.1.1/24
A list of hosts with the state of port 80 will appear in the results.
Nmap scan report for 192.168.1.102 Host is up (0.000079s latency). PORT STATE SERVICE 80/tcp closed http Nmap scan report for 192.168.1.103 ...
Read now
Unlock full access