wydomain
目标系统信息收集组件,完全模块化,脚本均可拆可并、可合可分的使用!
运行流程
- 利用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)
BUG反馈
新版本结果演示
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
CentOS 安装
安装git & 下载wydomian
yum -y install git
git clone https://github.com/ring04h/wydomain.git
安装phantomjs
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/
安装dnsdict6
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/
Kali 安装(自带dnsdict6)
安装git & 下载wydomian
apt-get install git
git clone https://github.com/ring04h/wydomain.git
安装phantomjs
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/
Ubuntu & Debian Linux 安装
安装git & 下载wydomian
apt-get install git
git clone https://github.com/ring04h/wydomain.git
安装phantomjs
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/
安装dnsdict6
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’],
}
}
from:https://github.com/ring04h/wydomain
wydomain的更多相关文章
- PJzhang:子域名爆破工具wydomain(猪猪侠)
猫宁!!! 参考链接:https://www.secpulse.com/archives/53182.html https://www.jianshu.com/p/65c85f4b7698 http: ...
- python some install tips
/* wooyun的小伙伴出了神器. 但是都是打包配置的.我本机又搭建了wamp,不能混合了,那就自己动手丰衣足食咯. */ python 2.7 已经安装. pip https://pip.pypa ...
- [转帖]Scanners-Box 指引
作者:杨文链接:https://zhuanlan.zhihu.com/p/26534414来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注明出处. 原文地址:We5ter/Sca ...
- python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
AttributeError: 'module' object has no attribute 'SSL_ST_INIT' 问题背景: 下载工具wydomain,安装依赖包以后,出现下图问题. 几经 ...
- python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'(转)
原文地址:http://www.cnblogs.com/zhaijiahui/p/7344778.html AttributeError: 'module' object has no attribu ...
- Github安全开源工具集合
Scanners-Box是来自github平台的开源扫描仪的集合,包括子域枚举,数据库漏洞扫描程序,弱密码或信息泄漏扫描仪,端口扫描仪,指纹扫描仪和其他大型扫描仪,模块化扫描仪等.对于其他众所周知的扫 ...
- Scanners-Box:开源扫描器大全 2017-04-22
Scanners-Box:开源扫描器大全 2017-04-22 Scanners-Box是一个集合github平台上的安全行业从业人员自研开源扫描器的仓库,包括子域名枚举.数据库漏洞扫描.弱口令或信息 ...
- 渗透系统虚拟机----win7(渗透工具包)
今天把自己用的win7渗透虚拟机和渗透工具脚本整合到一起备份传网盘了: D:\渗透工具包>dir 驱动器 D 中的卷是 DATA 卷的序列号是 0D74-084B D:\渗透工具包 的目录 // ...
- 应用安全 - 工具|平台 - CDN - 使用|命令 - 汇总
简介 用途 使用缓存适应高并发请求 功能 ()抗DDOS ()隐藏真实IP 全球DNS地址分布:http://www.ab173.com/dns/dns_world.php全球IP地址段分布:http ...
随机推荐
- 应用 CSS3 动画实现12种风格的通知提示
今天我们想分享几个简单的款式的网站通知效果.有很多的方式来呈现消息给用户:从经典的咆哮般的通知到窗口顶部的通知栏.各个网站的通知样式和效果千篇一律,难得出现创意的通知效果.这里是实现一个应用 CSS3 ...
- jQuery邮箱自动补全代码
JScript 代码 复制 (function($){ $.fn.emailMatch= function(settings){ var defaultSettings = { emailTip: ...
- 第18/24周 乐观并发控制(Optimistic Concurrency)
大家好,欢迎回到性能调优培训.上个星期我通过讨论悲观并发模式拉开了第5个月培训的序幕.今天我们继续,讨论下乐观并发模式(Optimistic Concurrency). 行版本(Row Version ...
- JVM Tomcat性能实战
本节只是介绍实战部分,具体的理论参数,请自行百度. 所需工具:linux服务器 Jmeter测试工具 xshell 一个web应用 Tomcat的JVM参数可以配置在catalina.sh,如 ...
- JS魔法堂:再识Bitwise Operation & Bitwise Shift
Brief linkFly的<JavaScript-如果...没有方法>中提及如何手写Math.round方法,各种奇技淫招看着十分过瘾,最让我惊叹的是 ~~(x + )) ,完全通过加法 ...
- ES6 Features系列:Template Strings & Tagged Template Strings
1. Brief ES6(ECMAScript 6th edition)于2015年7月份发布,虽然各大浏览器仍未全面支持ES6,但我们可以在后端通过Node.js 0.12和io.js,而前端则通过 ...
- 设置参数进行启动的Python脚本模板
# coding:utf-8 from optparse import OptionParser def migrate_func(): print 'You give the migrate arg ...
- SQL约束
SQL约束: 非空约束:就是不能为null: 主键约束(PK):唯一,不重复,并且不为空: 唯一约束:唯一,允许为空,但只能出现一次: 默认约束:如果不给值,默认值: 检查约束:范围以及格式限制: 外 ...
- C# 模拟提交 Form表单的数据
用 HttpWebRequest Post方法模拟提交Form表单数据时,需要设置 ContentType 为 "application/x-www-form-urlencoded" ...
- ASP.NET Core 开发-中间件(StaticFiles)使用
ASP.NET Core 开发,中间件(StaticFiles)的使用,我们开发一款简易的静态文件服务器. 告别需要使用文件,又需要安装一个web服务器.现在随时随地打开程序即可使用,跨平台,方便快捷 ...