From:Mickey

 1.我肉鸡的环境是Windows XP sp3,在使用nmap扫描外网的时候,提示我

pcap_open_live(ppp0, 100, 0, 2) FAILED. Reported error: Error opening adapter:
系统找不到指定的设备。 (20).  Will wait 5 seconds then retry.

看了看nmap手册,原来微软从Windows XP SP2以后就禁止了raw sockets,所以在扫描外网的时候,需要添加–unprivileged 选项。

nmap -sV -p 80 pentestbox.com -PN --unprivileged

但是还是不支持-sS扫描。如果是扫描内网接口的IP,则不会有此问题。

nmap -sS -T4 192.168.0.128

2.当通过×××拨入对方的内网的时候,如果使用NMAP扫描对方的内网主机,也会提示

pcap_open_live(ppp0, 100, 0, 2) FAILED. Reported error: Error opening adapter:
系统找不到指定的设备。 (20).  Will wait 5 seconds then retry.

此时我们只需要使用-e 参数指定网卡就可以了。命令如下:

C:\>nmap  -e eth0 192.168.1.1-254 –script=smb-brute.nse