windows 系统下nmap扫描报错的解决方法

Author: Sh@dow

Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-31 17:20 中国标准时间
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: Error 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 recompile your kernel
with SOCK_PACKET enabled.
*BSD: If you are getting device not configured, you need to recompile your kernel with Berkeley Pac
ket Filter support. If you are getting No such file or directory, try creating the device (eg cd /d
ev; MAKEDEV <device>; or use mknod).
*WINDOWS: Nmap only supports ethernet interfaces on Windows for most operations because Microsoft d
isabled raw sockets as of Windows XP SP2. Depending on the reason for this error, it is possible th
at the –unprivileged command-line argument will help.
SOLARIS: If you are trying to scan localhost and getting ‘/dev/lo0: No such file or directory’, com
plain to Sun. I don’t think Solaris can support advanced localhost scans. You can probably use “-P
N -sT localhost” though.

因为wincap安装的时候默认的是识别你本地的网卡型号的, 一旦播上VPN之后,对于ppp0的识别就傻逼了,在网上一直没找到解决办法,最后开错误提示竟然已经给出了答案

WINDOWS: Nmap only supports ethernet interfaces on Windows for most operations because Microsoft d
isabled raw sockets as of Windows XP SP2. Depending on the reason for this error, it is possible th
at the –unprivileged command-line argument will help.
SOLARIS: If you are trying to scan localhost and getting ‘/dev/lo0: No such file or directory’, com
plain to Sun. I don’t think Solaris can support advanced localhost scans. You can probably use “-P
N -sT localhost” though

注意看最后一句You can probably use “-PN -sT localhost” though

ok完美解决

发表评论

电子邮件地址不会被公开。

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>