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

运行流程

  • 利用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. 机器学习&数据挖掘笔记_25(PGM练习九:HMM用于分类)

    前言: 本次实验是用EM来学习HMM中的参数,并用学好了的HMM对一些kinect数据进行动作分类.实验内容请参考coursera课程:Probabilistic Graphical Models 中 ...

  2. Struts2整合Hibernate3实现用户登录功能

    所用技术:struts2 ,hibernate,jsp,mysql 本DEMO仅仅实现用户登录功能,采用MVC思想,自己也觉得相对是比较简单,比较容易理解数据流向的一个例子,通过整合这个过程,能够清晰 ...

  3. 列表视图(ListView和ListActivity)

    在ListView中显示网络图片 ImageView 类虽然有一个 setImageUri 方法,但不能直接接受一个由网络地址生成的uri作为参数从而显示图片,我们只好使用其 setImageBitm ...

  4. Windows Azure Web Site (7) Web Site配置

    <Windows Azure Platform 系列文章目录> 在上一章内容中,我们已经部署了Azure WebSite.我们可以在Web Site配置页面进行配置.如下图: 另外,我们还 ...

  5. UMeditor宽度自适应

    百度编辑器UMeditor,生成富文本编辑框以后,改变窗口大小会出现横向滚动条,即使你调用接口设置了编辑器的宽度为100%.如: var um = UM.getEditor('<%=txtCon ...

  6. CNN笔记

    Deep Learning是全部深度学习算法的总称,CNN是深度学习算法在图像处理领域的一个应用. 转 http://blog.csdn.net/stdcoutzyx/article/details/ ...

  7. rsync密码使用要注意的几个点

    1 客户端和服务端的密码文件不一样 服务端的密码文件格式是: 用户名:密码 比如: yejianfeng:123456   客户端的密码文件格式是: 密码: 比如 123456   所以如果一个机器即 ...

  8. StreamHelper

    public static MemoryStream CreateMemoryStreamFromBytes(byte[] inputData) { if (inputData == null || ...

  9. 【Swift学习】Swift编程之旅(三)

    元组(tuples) tuples是将多个单一的值组合为一个复合的值.它可以包含任何类型的值,而不需要都是相同类型. 一.元组的创建 1. let http404error = (,"NOT ...

  10. 炉石传说 C# 设计文档(序)

    经过3个月的开发,有很多感触. 以前一直以为技术是开发成败的第一因素,现在发现,等到你代码写的时间够长,经验够丰富,什么功能都能随手完成,对于业务的分析能力变成了第一位. 炉石山寨版的BS版本用到的H ...