![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=1738942702-8oZsGMTmflBPak2uTPlsCerwVBzQTwD3-0-9b9cc4f8d2999177e18e4f11a90a6ad6)
- 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=1738942702-0FyA3KlJXGPrcgkuoGJ94hr3tdMwMbyy-0-30fbd73f9e68acd3ce4b4a3928ade39b)
- 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=1738942702-uFOSoDWcCl2EXkjRUVmTOiXdm5WDb30q-0-68c3fa8f14f959237ce9d91cc38299cb)
- 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=1738942702-YYGYvoFHYk08lBDk1mhT7gfrG63y82Ld-0-27cd631d7e42729b39c1a478aee3895a)