recon-ng 百度模块

kali中使用recon-ng中recon/hosts/gather/http/web/baidu_site模块
recon-ng > use recon/hosts/gather/http/web/baidu_site
recon-ng [baidu_site] > set domain sina.com
DOMAIN => sina.com
recon-ng [baidu_site] > run


有时会遇到
recon-ng [baidu_site] > run
[*] URL: http://www.baidu.com/s?pn=0&wd=site%3Asina.com.cn
[!] Timed out.

这种问题,这是由于无法解析百度域名造成的。
解决方法:
1. root@kali:~# ping www.baidu.com

获得baidu的IP
2. 在/etc/hosts中加入如下
127.0.0.1       localhost kali
::1             localhost ip6-localhost ip6-loopback
fe00::0         ip6-localnet
ff00::0         ip6-mcastprefix
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters
www.baidu.com   x.x.x.x

3. 再次运行run命令,问题解决

你可能感兴趣的:(百度)