nmap扫描时的2个小经验

http://pnig0s1992.blog.51cto.com/393390/367558/

 

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 选项。

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

 

2.当通过VPN拨入对方的内网的时候,如果使用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

转载于:https://www.cnblogs.com/dashu0211/p/4045846.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值