![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=1739920897-Cr9b5L5yTxfks0ePS0qpxpq0ecwirJaa-0-3595771dbb7083929edc4fceb0c292cf)
- 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=1739920897-OjlifHI7vlQPMAy2KA5cbxbjoFJfoMmA-0-47a3ace6246831291b85e08540ff45b4)
- 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=1739920897-WyxB3A2as22yHW2RUVfnDSS47KZy5wMn-0-ec2f5203cf5bfe28b9ac61ade46c079d)
- 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=1739920897-Bx7GSfWgwbNMWSjXaHaCXNwplKJYkjtH-0-d9d1643b828ebd774f4a4434148d0886)