![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=1738966513-TvJOaxmYt49qVo0bu1fXNcHD2xif4Vmv-0-9506e253e377d7f9f71270f25cae03fa)
- 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=1738966513-ir6Qjbrf78xp91XwzLLW6tcfcanYBHLk-0-71568a443756d7bfdfee65bc3c15e197)
- 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=1738966513-mAVajxBDVSM4WJ0RIWDB9we7yo1NFkUZ-0-a54bbf6969a11ab4482417643bab4f1e)
- 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=1738966513-A59T5pzxxGoh0AoLEbSgvYGBcD8z0YKH-0-665a5aa23c2358b0bb5397761fcf40b8)