👊OneForAll是一款功能强大的子域收集工具 📝
🚀上手指南
OneForAll基于Python 3.6.0开发和测试,OneForAll需要高于Python 3.6.0的版本才能运行。 安装Python环境可以参考Python 3 安装指南。
✔安装步骤(git 版)
下载
由于该项目处于开发中,会不断进行更新迭代,下载时请使用git clone
克隆最新代码仓库,也方便后续的更新,不推荐从Releases下载,因为Releases里版本更新缓慢,也不方便更新, 本项目已经在码云(Gitee)镜像了一份,国内推荐使用码云进行克隆比较快:
git clone https://gitee.com/shmilylty/OneForAll.git
或者:
git clone https://github.com/shmilylty/OneForAll.git
你可以通过pip3安装OneForAll的依赖,以下为Windows系统下使用pip3安装依赖的示例:注意:如果你的Python3安装在系统Program Files目录下,如:C:Program FilesPython36
,那么请以管理员身份运行命令提示符cmd执行以下命令!
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/
python3 oneforall.py --help
执行以下命令更新项目(可保存对/config/setting.py
和/config/api.py
的修改):
git stash # 暂存本地的修改
git fetch--all # 拉取项目更新
git pull # 下载覆盖
git stash pop # 释放本地修改
✔安装步骤(docker 版)
首先下载并编辑配置文件,添加自己的api
和个性化设置,并保留原始文件结构
config
├── api.py
├── default.py
├── __init__.py
├── log.py
└── setting.py
拉取镜像并执行,其中~/.config替换为你自己配置文件所在文件夹的路径
docker pull shmilylty/oneforall
docker run -it --rm -v ~/results:/OneForAll/results -v ~/.config:/OneForAll/config shmilylty/oneforall --target example.com run
参数直接加在指令末尾,结果会输出在本地目录~/results,如需保存到其他位置,可以自行修改
如果你是通过pip3安装的依赖则使用以下命令运行示例:
python3 oneforall.py--target example.com run
python3 oneforall.py--targets ./example.txt run
正常执行完毕会在results目录生成相应结果:
可以使用python oneforall.py --help获取最新的帮助信息。
Example:
python3 oneforall.py version
python3 oneforall.py --target example.com run
python3 oneforall.py --targets ./domains.txt run
python3 oneforall.py --target example.com --valid None run
python3 oneforall.py --target example.com --brute True run
python3 oneforall.py --target example.com --port small run
python3 oneforall.py --target example.com --fmt csv run
python3 oneforall.py --target example.com --dns False run
python3 oneforall.py --target example.com --req False run
python3 oneforall.py --target example.com --takeover False run
python3 oneforall.py --target example.com --show True run
小知识
声明
原文始发于微信公众号(丁永博的成长日记):OneForAll
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论