它的作用就是对所有ICMP echo不予理睬,也就是让通常用来测试网络的Ping命令失效。这样至少可以抵挡POD(Ping of Death)的攻击。在任何一台机器上Ping这台主机,得到的都会是请求超时,如:
Pinging 192.168.0.1 with 32 bytes of data: Request timed out. Request timed out.Request timed out.Request timed out. Ping statistics for 192.168.0.1: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
这台主机是否下线了?用Nmap探测试试看:
nmap -sP 192.168.0.1 Starting nmap V. 2.54BETA22 ( www.insecure.org/nmap/ ) Host gw.somewhere.net (192.168.0.1) appears to be up.
探测结果好像该主机还开着呢!这里,-sP指定使用Ping echo 进行扫描(Scan)。
利用这一特点,可以很快知道目的网络究竟有多少主机处于运行状态:
nmap -sP 192.168.0.0/24 //24表明目标是一个网络而非单个主机 Starting nmap V. 2.54BETA22 ( www.insecure.org/nmap/ ) Host (192.168.0.2) appears to be up. Host www.somesite.net (192.168.0.5) appears to be up. Host (192.168.0.8) appears to be up. …… Host (192.168.0.253) appears to be up. Host fake.somesite.net (192.168.0.254) appears to be up. Nmap run completed -- 256 IP addresses (19 hosts up) scanned in 6 seconds
Starting nmap V. 2.54BETA22 ( www.insecure.org/nmap/ ) Interesting ports on www.somewhere.net (192.168.0.5): (The 1537 ports scanned but not shown below are in state: closed) Port State Service 80/tcp open http 135/tcp open loc-srv 139/tcp open netbios-ssn 443/tcp open https 1031/tcp open iad2 1433/tcp open ms-sql-s Nmap run completed -- 1 IP address (1 host up) scanned in 0 seconds
Starting nmap V. 2.54BETA22 ( www.insecure.org/nmap/ ) Interesting ports on www.somewhere.net (192.168.0.5): (The 1536 ports scanned but not shown below are in state: closed) Port State Service 80/tcp open http 135/tcp open loc-srv 139/tcp open netbios-ssn 443/tcp open https 1032/tcp open iad3 1433/tcp open ms-sql-s Remote operating system guess: Microsoft NT 4.0 Server SP5 + 2047 Hotfixes Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds
它猜测的远程主机类型是Microsoft NT 4.0 Server SP5 + 2047 Hotfixes,并且相当准确和详尽。
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 xxx.net.http-alt xxx.net:1209 ESTABLISHED tcp 0 0 xxx.net.http-alt xxx.net:1509 ESTABLISHED tcp 0 0 xxx.net.ssh whoami.net:1867 ESTABLISHED tcp 0 0 xxx.net:1209 xxx.net.http-alt ESTA