如何解决NMAP出错问题
寻求解决
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>cd C:\Program Files\Nmap
C:\Program Files\Nmap>nmap 220.181.29.xx
Starting Nmap 4.60 (
http://insecure.org ) at 2008-03-20 11:21 中国标准时间
Warning: Hostname
www.baidu.com resolves to 2 IPs. Using 220.181.6.6.
pcap_open_live(ppp0, 100, 0, 2) FAILED. Reported error: Error opening adapter:
系统找不到指定的设备。 (20). Will wait 5 seconds then retry.
pcap_open_live(ppp0, 100, 0, 2) FAILED. Reported error: Error opening adapter:
系统找不到指定的设备。 (20). Will wait 25 seconds then retry.
Call to pcap_open_live(ppp0, 100, 0, 2) failed three times. Reported error: Erro
r opening adapter: 系统找不到指定的设备。 (20)
There are several possible reasons for this, depending on your operating system:
LINUX: If you are getting Socket type not supported, try modprobe af_packet or r
ecompile your kernel with SOCK_PACKET enabled.
*BSD: If you are getting device not configured, you need to recompile your kern
el with Berkeley Packet Filter support. If you are getting No such file or dire
ctory, try creating the device (eg cd /dev; MAKEDEV <device>; or use mknod).
*WINDOWS: Nmap only supports ethernet interfaces on Windows for most operations
because Microsoft disabled raw sockets as of Windows XP SP2. Depending on the
reason for this error, it is possible that the --unprivileged command-line argum
ent will help.
SOLARIS: If you are trying to scan localhost and getting '/dev/lo0: No such fil
e or directory', complain to Sun. I don't think Solaris can support advanced lo
calhost scans. You can probably use "-PN -sT localhost" though.
QUITTING!