![Securing Network Infrastructure](https://wfqqreader-1252317822.image.myqcloud.com/cover/804/36698804/b_36698804.jpg)
上QQ阅读APP看书,第一时间看更新
How do it…
Here are the steps:
- Open nmap in Command Prompt.
- Enter the following syntax in Command Prompt to scan the IP address 192.168.75.136:
nmap 192.168.75.136
![](https://epubservercos.yuewen.com/9DB435/19470380901501406/epubprivate/OEBPS/Images/1ddfcd2c-a88c-4c5c-9563-23296a6873e1.png?sign=1734471851-Ogwh1mz0Y4mt6aToCcVNL0azmzf8tGDH-0-3308a012907e6e67472561664e9f182b)
- Enter the following syntax in Command Prompt to scan the IP addresses present in the ip.txt file:
nmap -iL ip.txt
![](https://epubservercos.yuewen.com/9DB435/19470380901501406/epubprivate/OEBPS/Images/326ad2c9-90db-457c-8d44-13d890042edb.png?sign=1734471851-oUIuY19kkWehkZGqNbYAbzCNQDaPk8SY-0-dfd8f10c1ce8f0e5fffc829e5e766e1d)
- 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
![](https://epubservercos.yuewen.com/9DB435/19470380901501406/epubprivate/OEBPS/Images/68ea50e6-a710-4318-9413-6a015e476b93.png?sign=1734471851-hhG0d3t6teJdCsAd39cFUcwrYo67gIXT-0-250535efb03ef5b1c849af1c75197e33)
- 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
![](https://epubservercos.yuewen.com/9DB435/19470380901501406/epubprivate/OEBPS/Images/b09f22f5-079c-4d5c-8500-ec659d5ed321.png?sign=1734471851-rxCr2gzGvy5vkTS9S1HH7xey7foqADrh-0-6a661ae16403192655ea5baecb5a4943)