OneForAll是一款功能強大的子域收集工具
我安裝到了kali
git clone https://gitee.com/shmilylty/OneForAll.git
git clone https://github.com/shmilylty/OneForAll.git
這倆個隨便選擇了一個
pwd
看一下當前目錄,因為會安裝到當前目錄,在當前目錄生成OneForAll目錄
cd OneForAll
python3 OneForAll.py --help
這個命令可能會出錯,(kali自己安裝了Python)
Traceback (most recent call last):
File "oneforall.py", line 13, in <module>
import fire
ModuleNotFoundError: No module named 'fire'
如果出現這個,那就恭喜你中獎了,他提示你沒有這個模塊,你要一步一步裝東西了,
pip3 install fire
如果直接可以安裝,那就更好,如果安裝不了,看個人問題,我的是源不對,
vi /etc/apt/sources.list
163源:
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
阿里源:
deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse
阿里的源好一點,中科大、清華的下載不了,
刷新源列表
sudo apt-get update
然后
Python3 OneForAll.py --hellp
會出現提示,
ModuleNotFoundError: No module named '*****'
****是啥,就安裝啥
pip3 install *****
最后就好了,
用法:
NAME
oneforall.py - OneForAll是一款功能強大的子域收集工具
SYNOPSIS
oneforall.py --target=TARGET <flags> DESCRIPTION Version: 0.0.4 Project: https://git.io/fjHT1 Example: python3 oneforall.py --target Example Domain run python3 oneforall.py --target ./domains.txt run python3 oneforall.py --target example.com --brute True run python3 oneforall.py --target Example Domain --verify False run python3 oneforall.py --target Example Domain --valid None run python3 oneforall.py --target example.com --port medium run python3 oneforall.py --target example.com --format csv run python3 oneforall.py --target example.com --show True run Note: 參數valid可選值1,0,None分別表示導出有效,無效,全部子域 參數verify為True會嘗試解析和請求子域並根據結果給子域有效性打上標簽 參數port可選值有'small', 'medium', 'large', 'xlarge',詳見config.py配置 參數format可選格式有'txt', 'rst', 'csv', 'tsv', 'json', 'yaml', 'html', 'jira', 'xls', 'xlsx', 'dbf', 'latex', 'ods' 參數path為None會根據format參數和域名名稱在項目結果目錄生成相應文件 ARGUMENTS TARGET 單個域名或者每行一個域名的文件路徑(必需參數) FLAGS --brute=BRUTE 使用爆破模塊(默認False) --verify=VERIFY 驗證子域有效性(默認True) --port=PORT 請求驗證的端口范圍(默認medium) --valid=VALID 導出子域的有效性(默認1) --path=PATH 導出路徑(默認None) --format=FORMAT 導出格式(默認xlsx) --show=SHOW 終端顯示導出數據(默認False)