二
ip
资产发现
1
、扫描目标
nmap 10.33.130.2
nmap 10.33.130.2 10.33.131.23
nmap 10.33.130.2-100
namp 10.33.130.0/24
可使用
-exclude
参数排除
ip -excludefile
可使用文件作为
ip
源排除
nmap 10.33.130.2-100 -exclude 10.33.130.5
nmap 10.33.130.2-100 -excludefile /root/10.33.130.2s.txt
常用参数
-sP
用于
ping
测试目标是否存活
-O
用于检测目标端操作系统
2
、通过文件扫描
nmap -iL /root/10.33.130.2.txt
文本格式见示例
1
三 扫描
ip
资产端口
1
、扫描目标地址的指定端口
nmap 10.33.130.2 -p 80,8080,3306,3389
常用参数
-sS
半开扫描
-sU udp
扫描
-sV
测试端口版本
四 常用脚本功能(次要功能,可用其他软件替代)
1
、弱口令扫描
nmap --script=auth 192.168.0.101
评论