mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-25 20:37:48 +08:00
重构项目目录结构
This commit is contained in:
@@ -0,0 +1,178 @@
|
||||
```
|
||||
D:.
|
||||
| .gitignore
|
||||
| .travis.yml
|
||||
| brute.py 可以单独运行的子域爆破模块
|
||||
| collect.py 各个收集模块上层调用
|
||||
| dbexport.py 可以单独运行的数据库导出模块
|
||||
| Dockerfile
|
||||
| LICENSE
|
||||
| oneforall.py OneForAll主入口
|
||||
| Pipfile
|
||||
| Pipfile.lock
|
||||
| README.en.md
|
||||
| README.md
|
||||
| requirements.txt
|
||||
| takeover.py 可以单独运行的子域接口风险检查模块
|
||||
| _config.yml
|
||||
|
|
||||
+---.github
|
||||
| +---ISSUE_TEMPLATE
|
||||
| | bug_report.md
|
||||
| | bug_report_zh.md
|
||||
| | custom.md
|
||||
| | feature_request.md
|
||||
| |
|
||||
| \---workflows
|
||||
| test.yml
|
||||
|
|
||||
|
|
||||
+---common 公共调用模块
|
||||
| crawl.py
|
||||
| database.py
|
||||
| domain.py
|
||||
| lookup.py
|
||||
| module.py
|
||||
| query.py
|
||||
| request.py
|
||||
| resolve.py
|
||||
| search.py
|
||||
| utils.py
|
||||
| __init__.py
|
||||
|
|
||||
+---config 配置目录
|
||||
| api.py 部分收集模块的API配置文件
|
||||
| log.py 日志模块配置文件
|
||||
| setting.py OneForAll主要配置文件
|
||||
|
|
||||
+---data 存放一些所需数据
|
||||
| authoritative_dns.txt 临时存放开启了泛解析域名的权威DNS名称服务器IP地址
|
||||
| big_subnames.txt 子域爆破超大字典
|
||||
| cn_nameservers.txt 中国主流名称服务器IP地址
|
||||
| fingerprints.json 检查子域接管风险的指纹
|
||||
| nameservers.txt 全球主流名称服务器IP地址
|
||||
| next_subnames.txt 下一层子域字典
|
||||
| public_suffix_list.dat 顶级域名后缀
|
||||
| srv_prefixes.json 常见SRV记录前缀名
|
||||
| subnames.txt 子域爆破常见字典
|
||||
|
|
||||
+---docs 有关文档
|
||||
| changes.md
|
||||
| collection_modules.md
|
||||
| contributors.md
|
||||
| installation_dependency.md
|
||||
| todo.md
|
||||
| troubleshooting.md
|
||||
| usage_example.svg
|
||||
| usage_help.en.md
|
||||
| usage_help.md
|
||||
|
|
||||
+---images
|
||||
| Database.png
|
||||
| Donate.png
|
||||
| Result.png
|
||||
|
|
||||
+---modules
|
||||
| +---autotake 自动接管模块
|
||||
| | github.py
|
||||
| |
|
||||
| +---certificates 利用证书透明度收集子域模块
|
||||
| | censys_api.py
|
||||
| | certspotter.py
|
||||
| | crtsh.py
|
||||
| | entrust.py
|
||||
| | google.py
|
||||
| | spyse_api.py
|
||||
| |
|
||||
| +---check 常规检查收集子域模块
|
||||
| | axfr.py
|
||||
| | cdx.py
|
||||
| | cert.py
|
||||
| | csp.py
|
||||
| | robots.py
|
||||
| | sitemap.py
|
||||
| |
|
||||
| +---crawl 利用网上爬虫档案收集子域模块
|
||||
| | archivecrawl.py
|
||||
| | commoncrawl.py
|
||||
| |
|
||||
| +---datasets 利用DNS数据集收集子域模块
|
||||
| | binaryedge_api.py
|
||||
| | bufferover.py
|
||||
| | cebaidu.py
|
||||
| | chinaz.py
|
||||
| | chinaz_api.py
|
||||
| | circl_api.py
|
||||
| | dnsdb_api.py
|
||||
| | dnsdumpster.py
|
||||
| | hackertarget.py
|
||||
| | ip138.py
|
||||
| | ipv4info_api.py
|
||||
| | netcraft.py
|
||||
| | passivedns_api.py
|
||||
| | ptrarchive.py
|
||||
| | qianxun.py
|
||||
| | rapiddns.py
|
||||
| | riddler.py
|
||||
| | robtex.py
|
||||
| | securitytrails_api.py
|
||||
| | sitedossier.py
|
||||
| | threatcrowd.py
|
||||
| | wzpc.py
|
||||
| | ximcx.py
|
||||
| |
|
||||
| +---dnsquery 利用DNS查询收集子域模块
|
||||
| | mx.py
|
||||
| | ns.py
|
||||
| | soa.py
|
||||
| | srv.py
|
||||
| | txt.py
|
||||
| |
|
||||
| +---intelligence 利用威胁情报平台数据收集子域模块
|
||||
| | alienvault.py
|
||||
| | riskiq_api.py
|
||||
| | threatbook_api.py
|
||||
| | threatminer.py
|
||||
| | virustotal.py
|
||||
| | virustotal_api.py
|
||||
| |
|
||||
| \---search 利用搜索引擎发现子域模块
|
||||
| ask.py
|
||||
| baidu.py
|
||||
| bing.py
|
||||
| bing_api.py
|
||||
| exalead.py
|
||||
| fofa_api.py
|
||||
| gitee.py
|
||||
| github_api.py
|
||||
| google.py
|
||||
| google_api.py
|
||||
| shodan_api.py
|
||||
| so.py
|
||||
| sogou.py
|
||||
| yahoo.py
|
||||
| yandex.py
|
||||
| zoomeye_api.py
|
||||
|
|
||||
+---results 结果目录
|
||||
+---test 测试目录
|
||||
| example.py
|
||||
|
|
||||
\---thirdparty 存放要调用的三方工具
|
||||
\---massdns
|
||||
| LICENSE
|
||||
| massdns_darwin_x86_64
|
||||
| massdns_linux_i686
|
||||
| massdns_linux_x86_64
|
||||
| README.md
|
||||
|
|
||||
\---windows
|
||||
+---x64
|
||||
| cygwin1.dll
|
||||
| massdns_windows_amd64.exe
|
||||
|
|
||||
\---x86
|
||||
cyggcc_s-1.dll
|
||||
cygwin1.dll
|
||||
massdns_windows_i686.exe
|
||||
```
|
||||
@@ -12,7 +12,6 @@ cd OneForAll/
|
||||
python -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||
pip3 install pipenv -i https://mirrors.aliyun.com/pypi/simple/
|
||||
pipenv install --python 3.8
|
||||
cd oneforall
|
||||
pipenv run python oneforall.py --help
|
||||
```
|
||||
|
||||
@@ -21,7 +20,6 @@ pipenv run python oneforall.py --help
|
||||
cd OneForAll/
|
||||
python -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||
cd oneforall/
|
||||
python oneforall.py --help
|
||||
```
|
||||
## Linux系统
|
||||
@@ -49,7 +47,6 @@ cd OneForAll/
|
||||
sudo python3.8 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||
sudo apt install pipenv
|
||||
sudo pipenv install --python 3.8
|
||||
cd oneforall
|
||||
pipenv run python3 oneforall.py --help
|
||||
```
|
||||
|
||||
@@ -60,7 +57,6 @@ sudo apt install python3-pip
|
||||
sudo python3.8 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||
sudo pip3 install uvloop -i https://mirrors.aliyun.com/pypi/simple/
|
||||
sudo pip3 install --ignore-installed -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||
cd oneforall/
|
||||
python3.8 oneforall.py --help
|
||||
```
|
||||
## Darwin系统
|
||||
@@ -71,7 +67,6 @@ cd OneForAll/
|
||||
python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||
pip3 install pipenv -i https://mirrors.aliyun.com/pypi/simple/
|
||||
pipenv install --python 3.8
|
||||
cd oneforall
|
||||
pipenv run python3 oneforall.py --help
|
||||
```
|
||||
|
||||
@@ -81,6 +76,5 @@ cd OneForAll/
|
||||
python3 -m pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/
|
||||
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||
pip3 install uvloop -i https://mirrors.aliyun.com/pypi/simple/
|
||||
cd oneforall/
|
||||
python3 oneforall.py --help
|
||||
```
|
||||
|
||||
@@ -82,7 +82,6 @@ The OneForAll command line interface is based on [Fire](https://github.com/googl
|
||||
|
||||
- Third, considering the blasting efficiency, there is no HTTP response volume similarity comparison and response volume content judgment, this function has not been implemented yet, and will be implemented if necessary.
|
||||
|
||||
After not rigorous testing, in the 16-core CPU, using 16 processes 64 coroutines, 100M network bandwidth environment, run two million dictionaries about 10 minutes to run, about 3333 subdomains per second.
|
||||
|
||||
```bash
|
||||
python aiobrute.py --help
|
||||
|
||||
+2
-1
@@ -67,9 +67,10 @@ OneForAll命令行界面基于[Fire](https://github.com/google/python-fire/)实
|
||||
|
||||
关于泛解析问题处理程序首先会访问一个随机的子域判断是否泛解析,如果使用了泛解析则是通过以下判断处理:
|
||||
- 一是主要是与泛解析的IP集合和TTL值做对比,可以参考[这篇文章](http://sh3ll.me/archives/201704041222.txt)。
|
||||
|
||||
- 二是多次解析到同一IP集合次数(默认设置为10,可以在config.py设置大小)
|
||||
|
||||
- 考虑爆破效率问题目前还没有加上HTTP响应体相似度对比和响应体内容判断
|
||||
经过测试在16核心的CPU,使用16进程64协程,100M带宽的环境下,设置任务分割为50000,跑两百万字典大概10分钟左右跑完,大概3333个子域每秒。
|
||||
|
||||
```bash
|
||||
python aiobrute.py --help
|
||||
|
||||
Reference in New Issue
Block a user