![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=1738902257-BUfL8CIRsqgyK4byEfw4A7cQ78tObGAI-0-efea9552811ab4e1048565d29e7934c9)
- 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=1738902257-Qj5r20QIuHMBQQgIYON5olhJiJcsl5ZL-0-c1920b34f62fb3e34903636bc91c266d)
- 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=1738902257-JGU0egl0W2GcKQ9m20GW1iu1PNCEYHR1-0-4b772d670a38d70eee5fd6f2f2ba3092)
- 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=1738902257-Kaq0PNv3vNQ8QtgP58uvDsjeXlpmWheG-0-b10db4666287d521e180ed85a2a5e274)