How do it…

Here are the steps:

  1. Open nmap in Command Prompt.
  2. Enter the following syntax in Command Prompt to scan the IP address 192.168.75.136:
nmap  192.168.75.136
  1. Enter the following syntax in  Command Prompt to scan the IP addresses present in the ip.txt file:
     nmap  -iL ip.txt
  1. Enter the following syntax in the Command Prompt to exclude the 192.168.75.136 IP address from the scan list:
    nmap  -v 192.168.75.135/28 --exclude 192.168.75.136
  1. Enter the following syntax in the Command Prompt to exclude the IP addresses mentioned in the ip.txt file from the scan list:
   nmap –v 192.168.75.135/28 --excludefile ip.txt