Follow these steps for scanning hosts with Nmap:
- The most common use of Nmap is to find all the hosts online within a given IP range. The default command used takes some time to scan the complete network, depending on the number of hosts in the network.
- The following screenshot shows an example:
- To perform a SYN scan on a particular IP from a subnet, use the following command:
- If SYN scan does not work properly, you can also use Stealth scan:
- To detect the version number of the services running on the remote host, you can perform Service Version Detection scan as follows:
- If you want to detect the operating system running on the remote host, run the following command:
nmap -O 192.168.1.102
- The output here has been truncated:
- If you wish to scan only for a particular port, such as 80, run the command: