nmap快速扫描大量主机端口方法 | 您所在的位置:网站首页 › 如何进行批量扫描文件 › nmap快速扫描大量主机端口方法 |
楼底命令楼主自用
一、端口扫描
nmap -sS -Pn -n --open -T4 -iL /tmp/97.txt -oX /opt/dd.xml
-sS:使用SYN方式扫描,默认用的是-sT方式,即TCP方式,需要完成完整的三次握手,比较费时,SYN就比较快一些了; -Pn: 禁用PING检测,这样速度快,并且可以防止有些主机无法ping通而被漏掉不扫描; -n: 不解析域名,加快扫描速度 –open: 只输出检测状态为open的端口,即开放的端口; -T4:总共有T0-T5,貌似T4比较折中 -iL:载入ip段文件,批量扫,不用一条条执行了。 -oX:结果另存在xxx.xml格式 不过楼主这里用的是后台扫描 nohup nmap -sS -Pn -n --open -T4 -iL /tmp/97.txt -oX /opt/dd.xml &
https://www.cnblogs.com/cyrusxx/p/12562867.html nohup nmap -sS -Pn -n --open -T4 -iL /tmp/97.txt -oX /opt/dd.xml & cd /tmp/ python3 /opt/nmapReport-master/nmapReport.py -r /opt/dd.xml -o /tmp/test6666.xlsx |
CopyRight 2018-2019 实验室设备网 版权所有 |