Nmap
目标
掌控信息,发现漏洞,便于渗透测试利用
主机发现
# 使用TCP扫描
nmap -sP 192.168.140.0/24 #使用ICMP协议ping
nmap -sP 192.168.140.0/24 #使用ICMP协议ping
nmap -PS 192.168.140.0/24 #使用SYN协议ping,不会在靶机log留下痕迹
nmap -PA 192.168.140.0/24 #使用ACK协议ping
nmap -PU 192.168.140.0/24 #使用UDP协议ping
#Tips:除了扫描网段,也可扫描域名以及ip段
图为使用ICMP协议扫描截图↑
端口扫描
nmap -sS 192.168.140.128 #使用SYN扫描win7开放端口
nmap -sS 192.168.140.132 #使用SYN扫描winxp开放端口
nmap -sT {ip} #默认使用TCP扫描
nmap -sT {ip} -p {port} #使用TCP扫描,制定端口
nmap -sA {ip} #使用ACK扫描
nmap -sU {ip} #使用UDP扫描
Tips:ip和port可以写成范围,如ip20-100,port 1-65535
<