1.扫描一个目标ip

nmap x.x.x.x

2.扫描多个ip

*nmap x.x.x.x x.x.x.x ......

*nmap x.x.x.x-x

*nmap x.x.x.0/24

3.随机扫描n个ip

nmap -iR n

4.在众多ip中排除几个ip

*nmap x.x.x.0/24 --exclude x.x.x.x

*nmap x.x.x.0/24 --excludefile filename

5.nmap进行积极地扫描

nmap -A x.x.x.x

-o 识别远程操作系统

-sC 运行默认的脚本扫描