目标系统信息收集组件,完全模块化,脚本均可拆可并、可合可分的使用!

运行流程

  • 利用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://weibo.com/ringzero
邮箱:ringzero@0x557.org

新版本结果演示

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

运行环境

使用方法

命令行使用

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的更多相关文章

  1. PJzhang:子域名爆破工具wydomain(猪猪侠)

    猫宁!!! 参考链接:https://www.secpulse.com/archives/53182.html https://www.jianshu.com/p/65c85f4b7698 http: ...

  2. python some install tips

    /* wooyun的小伙伴出了神器. 但是都是打包配置的.我本机又搭建了wamp,不能混合了,那就自己动手丰衣足食咯. */ python 2.7 已经安装. pip https://pip.pypa ...

  3. [转帖]Scanners-Box 指引

    作者:杨文链接:https://zhuanlan.zhihu.com/p/26534414来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注明出处. 原文地址:We5ter/Sca ...

  4. python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

    AttributeError: 'module' object has no attribute 'SSL_ST_INIT' 问题背景: 下载工具wydomain,安装依赖包以后,出现下图问题. 几经 ...

  5. python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'(转)

    原文地址:http://www.cnblogs.com/zhaijiahui/p/7344778.html AttributeError: 'module' object has no attribu ...

  6. Github安全开源工具集合

    Scanners-Box是来自github平台的开源扫描仪的集合,包括子域枚举,数据库漏洞扫描程序,弱密码或信息泄漏扫描仪,端口扫描仪,指纹扫描仪和其他大型扫描仪,模块化扫描仪等.对于其他众所周知的扫 ...

  7. Scanners-Box:开源扫描器大全 2017-04-22

    Scanners-Box:开源扫描器大全 2017-04-22 Scanners-Box是一个集合github平台上的安全行业从业人员自研开源扫描器的仓库,包括子域名枚举.数据库漏洞扫描.弱口令或信息 ...

  8. 渗透系统虚拟机----win7(渗透工具包)

    今天把自己用的win7渗透虚拟机和渗透工具脚本整合到一起备份传网盘了: D:\渗透工具包>dir 驱动器 D 中的卷是 DATA 卷的序列号是 0D74-084B D:\渗透工具包 的目录 // ...

  9. 应用安全 - 工具|平台 - CDN - 使用|命令 - 汇总

    简介 用途 使用缓存适应高并发请求 功能 ()抗DDOS ()隐藏真实IP 全球DNS地址分布:http://www.ab173.com/dns/dns_world.php全球IP地址段分布:http ...

随机推荐

  1. AngularJS入门心得4——漫谈指令scope

    上篇<AngularJS入门心得3——HTML的左右手指令>初步介绍了指令的概念和作用.已经和指令打过一个照面,就不会那么陌生了,今天主要介绍的是一个困扰了我很久终于想通的问题,这个问题与 ...

  2. 推荐15款最好的 Twitter Bootstrap 开发工具

    Twitter Bootstrap 自从2011年最初发布到网上后,迅速成为 Web 领域最流行的响应式前端开发框架之一,是网页设计的优秀实践.Twitter Bootstrap 框架包含了众多的预定 ...

  3. git代码回滚:Reset、Checkout、Revert的选择

    代码回滚:Reset.Checkout.Revert的选择 Zhongyi Tong edited this page on Dec 8, 2015 · 5 revisions Pages 19 Ho ...

  4. 基于HT for Web的Web SCADA工控移动应用

    在电力.油田燃气.供水管网等工业自动化领域Web SCADA的概念已经提出了多年,早先年的Web SCADA前端技术大部分还是基于Flex.Silverlight甚至Applet这样的重客户端方案,在 ...

  5. Vim魔法堂:认识快捷键绑定

    Brief 习惯在VS上按<F5>来编译运行程序,刚用上VIM上就觉得无比的麻烦,而随着对VIM的学习我们分阶段的简化这一操作 1. 退出VIM,在shell下编译&&运行 ...

  6. 解决ios开发中不合法的网络请求地址

    NSString *const kWebsite = @"http://image.baidu.com/search/index?tn=baiduimage&ipn=r&ct ...

  7. 检测IP地址的正则表达式

    正则表达式: ((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?) ((2[0-4]\d|25[0-5]|[01]?\d\ ...

  8. C# DllImport用法和路径问题

    DllImport是System.Runtime.InteropServices命名空间下的一个属性类,其功能是提供从非托管DLL导出的函数的必要调用信息.    DllImport属性应用于方法,要 ...

  9. Web API配置自定义路由

    默认访问Web API时,是无需指定method名.它会按照默认的路由来访问.如果你的Web API中出现有方法重载时,也许得配置自定义路由: 标记1为自定义路由,标记2为默认路由,需要把自定义路由排 ...

  10. 利用T4模板生成ASP.NET Core控制器的构造函数和参数

    前言 在ASP.NET Core中引入了DI,并且通过构造函数注入参数,控制器中会大量使用DI注入各种的配置参数,如果配置注入的参数比较多,而且各个控制器需要的配置参数都基本一样的话,那么不断重复的复 ...