目标系统信息收集组件,完全模块化,脚本均可拆可并、可合可分的使用!
- 利用FOFA插件获取兄弟域名,并透视获取到的子域名相关二级域名、IP信息
- 检查域名和兄弟域名是否存在域传送漏洞,存在就遍历zone记录,将结果集推到wydomians数据组
- 获取可以获取的公开信息 MX、DNS、SOA记录
- 子域名字典暴力穷举域名(60000条字典[domain_default.csv])
- 利用第三方API查询子域名(links、alexa、bing、google、sitedossier、netcraft)
- 逐个域名处理TXT记录, 加入总集合
- 解析获取到的所有子域名,生成IP列表集合,截取成RFC地址C段标准(42.42.42.0/24)
- 利用bing.com、aizhan.com的接口,查询所有C段旁站的绑定情况
- 生成数据可视化报告
- 返回wydomains数据结果
一、有反馈说卡在子域名暴力穷举上,更新了默认字典的大小,启用大字典方法如下
mv domain_default.csv domain_default.csv.bak
mv domain_larger.csv domain_default.csv
二、提升执行速度
wydomain_ip2domain.py 第71行,修改processes=你认为能接受的进程数
多进程,服务器要是好的话,可以提高,问题是bing.com可能会因为频率过高被封
pool = multiprocessing.Pool(processes=10)
http://wydomain.wuyun.org/report/result_xiaomi.com,xiaomi.cn,duokan.com.html
http://wydomain.wuyun.org/report/result_wooyun.org.html
http://wydomain.wuyun.org/report/result_yiche.com.html
http://wydomain.wuyun.org/report/result_ablesky.com.html
- CentOS、Kali Linux、Ubuntu、Debian
- Python 2.7.x
- phantomjs (http://www.phantomjs.org)
- dnsdict6 (https://www.thc.org/thc-ipv6/)
python wydomain.py wooyun.org
建议后台运行,然后去睡觉,一觉醒来会有新发现!
nohup python wydomain.py wooyun.org &
使用浏览器打开:report/result_wooyun.org.html
yum -y install git
git clone https://github.com/ring04h/wydomain.git
http://phantomjs.org/download.html
32位系统
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-i686.tar.bz2
tar vxf phantomjs-1.9.8-linux-i686.tar.bz2
yum install openssl-devel freetype-devel fontconfig-devel
cp ./bin/phantomjs /usr/bin/
64位系统
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
tar vxf phantomjs-1.9.8-linux-x86_64.tar.bz2
yum install openssl-devel freetype-devel fontconfig-devel
cp ./bin/phantomjs /usr/bin/
wget http://www.thc.org/releases/thc-ipv6-2.7.tar.gz
tar zvxf thc-ipv6-2.7.tar.gz
cd thc-ipv6-2.7
yum install libpcap-devel openssl-devel
make
cp dnsdict6 /usr/bin/
apt-get install git
git clone https://github.com/ring04h/wydomain.git
http://phantomjs.org/download.html
32位系统
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-i686.tar.bz2
tar vxf phantomjs-1.9.8-linux-i686.tar.bz2
cp ./bin/phantomjs /usr/bin/
64位系统
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
tar vxf phantomjs-1.9.8-linux-x86_64.tar.bz2
cp ./bin/phantomjs /usr/bin/
apt-get install git
git clone https://github.com/ring04h/wydomain.git
http://phantomjs.org/download.html
32位系统
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-i686.tar.bz2
tar vxf phantomjs-1.9.8-linux-i686.tar.bz2
sudo apt-get install libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev libpng-dev libjpeg-dev
cp ./bin/phantomjs /usr/bin/
64位系统
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
tar vxf phantomjs-1.9.8-linux-x86_64.tar.bz2
sudo apt-get install libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev libpng-dev libjpeg-dev
cp ./bin/phantomjs /usr/bin/
wget http://www.thc.org/releases/thc-ipv6-2.7.tar.gz
tar zvxf thc-ipv6-2.7.tar.gz
cd thc-ipv6-2.7
sudo apt-get install libpcap-dev libssl-dev
make
sudo cp dnsdict6 /usr/bin/
wydomains = {
'domain': {
'weibo.com': {
'm.weibo.com': {},
'wwww.weibo.com': {},
'movie.weibo.com': {},
'data.weibo.com': {},
},
'weibo.cn': {
'www.weibo.cn': {},
'm.weibo.cn': {},
'game.weibo.cn': {},
},
'sina.com.cn': {
'news.sina.com.cn': {},
'blog.sina.com.cn': {},
'my.sina.com.cn': {},
},
'sina.cn' : {
'www.sina.cn': {},
'news.sina.cn': {},
},
},
'ipaddress': {
'42.62.52.0/24': {
'192.168.1.23': {
'www.bizmyth.net': {},
'www.189.com': {},
},
'192.168.1.58': {
'www.xiaomi.com': {},
'z.aizhan.com': {},
},
},
'42.62.14.0/24': {
'192.168.2.23': {
'www.aizhan.net': {},
'www.wanda.cn': {},
},
'192.168.2.22': {
'wuyun.org': {},
'zone.wooyun.org': {},
},
},
},
'mx': {
‘weibo.com': ['mxbiz2.qq.com', 'mxbiz1.qq.com’],
‘weibo.cn': ['mxbiz2.qq.com', 'mxbiz1.qq.com’],
’sina.com.cn': ['mxbiz2.qq.com', 'mxbiz1.qq.com’],
’sina.cn': ['mxbiz2.qq.com', 'mxbiz1.qq.com’]
},
'dns': {
‘weibo.com': ['ns1.dnsv2.com', 'ns2.dnsv2.com’],
‘weibo.cn': ['ns1.dnsv2.com', 'ns2.dnsv2.com’],
’sina.com.cn': ['ns1.dnsv2.com', 'ns2.dnsv2.com’],
’sina.cn': ['ns1.dnsv2.com', 'ns2.dnsv2.com’],
}
’soa': {
‘weibo.com': ['ns1.dnsv2.com', 'ns2.dnsv2.com’],
‘weibo.cn': ['ns1.dnsv2.com', 'ns2.dnsv2.com’],
’sina.com.cn': ['ns1.dnsv2.com', 'ns2.dnsv2.com’],
’sina.cn': ['ns1.dnsv2.com', 'ns2.dnsv2.com’],
}
}