mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
更新文档
This commit is contained in:
@@ -533,14 +533,13 @@ class Brute(Module):
|
|||||||
Example:
|
Example:
|
||||||
brute.py --target domain.com --word True run
|
brute.py --target domain.com --word True run
|
||||||
brute.py --targets ./domains.txt --word True run
|
brute.py --targets ./domains.txt --word True run
|
||||||
brute.py --target domain.com --word True --process 1 run
|
brute.py --target domain.com --word True --concurrent 2000 run
|
||||||
brute.py --target domain.com --word True --wordlist subnames.txt run
|
brute.py --target domain.com --word True --wordlist subnames.txt run
|
||||||
brute.py --target domain.com --word True --recursive True --depth 2 run
|
brute.py --target domain.com --word True --recursive True --depth 2 run
|
||||||
brute.py --target d.com --fuzz True --place m.*.d.com --rule '[a-z]' run
|
brute.py --target d.com --fuzz True --place m.*.d.com --rule '[a-z]' run
|
||||||
brute.py --target d.com --fuzz True --place m.*.d.com --fuzzlist subnames.txt run
|
brute.py --target d.com --fuzz True --place m.*.d.com --fuzzlist subnames.txt run
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
--alive True/False Only export alive subdomains or not (default False)
|
|
||||||
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
||||||
--path Result path (default None, automatically generated)
|
--path Result path (default None, automatically generated)
|
||||||
|
|
||||||
@@ -548,7 +547,7 @@ class Brute(Module):
|
|||||||
:param str target: One domain (target or targets must be provided)
|
:param str target: One domain (target or targets must be provided)
|
||||||
:param str targets: File path of one domain per line
|
:param str targets: File path of one domain per line
|
||||||
:param int process: Number of processes (default 1)
|
:param int process: Number of processes (default 1)
|
||||||
:param int concurrent: Number of concurrent (default 10000)
|
:param int concurrent: Number of concurrent (default 2000)
|
||||||
:param bool word: Use word mode generate dictionary (default False)
|
:param bool word: Use word mode generate dictionary (default False)
|
||||||
:param str wordlist: Dictionary path used in word mode (default use ./config/default.py)
|
:param str wordlist: Dictionary path used in word mode (default use ./config/default.py)
|
||||||
:param bool recursive: Use recursion (default False)
|
:param bool recursive: Use recursion (default False)
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ def export(target, type='target', db=None, alive=False, limit=None, path=None, f
|
|||||||
python3 dbexport.py --target table_name --tb True --show False
|
python3 dbexport.py --target table_name --tb True --show False
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
--alive True/False Only export alive subdomains or not (default False)
|
|
||||||
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
||||||
--path Result directory (default directory is ./results)
|
--path Result directory (default directory is ./results)
|
||||||
|
|
||||||
@@ -82,4 +81,3 @@ def export(target, type='target', db=None, alive=False, limit=None, path=None, f
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
fire.Fire(export)
|
fire.Fire(export)
|
||||||
# export('example.com')
|
|
||||||
|
|||||||
+112
-39
@@ -39,7 +39,6 @@ The OneForAll command line interface is based on [Fire](https://github.com/googl
|
|||||||
|
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
--alive True/False Only export alive subdomains or not (default False)
|
|
||||||
--port small/medium/large See details in ./config/setting.py(default small)
|
--port small/medium/large See details in ./config/setting.py(default small)
|
||||||
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
||||||
--path Result path (default None, automatically generated)
|
--path Result path (default None, automatically generated)
|
||||||
@@ -87,64 +86,138 @@ The OneForAll command line interface is based on [Fire](https://github.com/googl
|
|||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python aiobrute.py --help
|
python brute.py --help
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
NAME
|
NAME
|
||||||
aiobrute.py - OneForAll multi-process multi-correlation asynchronous subdomain blasting module
|
brute.py - OneForAll subdomain brute module
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
aiobrute.py --target=TARGET <flags>
|
brute.py <flags>
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
Example:
|
Example:
|
||||||
python3 aiobrute.py --target example.com run
|
brute.py --target domain.com --word True run
|
||||||
python3 aiobrute.py --target ./domains.txt run
|
brute.py --targets ./domains.txt --word True run
|
||||||
python3 aiobrute.py --target example.com --process 4 --coroutine 64 run
|
brute.py --target domain.com --word True --concurrent 2000 run
|
||||||
python3 aiobrute.py --target example.com --wordlist subdomains.txt run
|
brute.py --target domain.com --word True --wordlist subnames.txt run
|
||||||
python3 aiobrute.py --target example.com --recursive True --depth 2 run
|
brute.py --target domain.com --word True --recursive True --depth 2 run
|
||||||
python3 aiobrute.py --target m.{fuzz}.a.bz --fuzz True --rule [a-z] run
|
brute.py --target d.com --fuzz True --place m.*.d.com --rule '[a-z]' run
|
||||||
|
brute.py --target d.com --fuzz True --place m.*.d.com --fuzzlist subnames.txt run
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
Parameter valid optional value 1, 0, none indicates that the export is
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
||||||
valid, invalid, and all subdomains, respectively.
|
--path Result path (default None, automatically generated)
|
||||||
|
|
||||||
Parameter format have optional values 'txt', 'rst', 'csv', 'tsv', 'json',
|
|
||||||
'yaml', 'html', 'jira', 'xls', 'xlsx', 'dbf', 'latex', 'ods'.
|
|
||||||
If the parameter path is None, the appropriate file is generated in the
|
|
||||||
project result directory based on the format parameter and the domain
|
|
||||||
name.
|
|
||||||
|
|
||||||
ARGUMENTS
|
|
||||||
TARGET
|
|
||||||
Single domain name or file path for one domain name per line (required)
|
|
||||||
|
|
||||||
FLAGS
|
FLAGS
|
||||||
|
--target=TARGET
|
||||||
|
One domain (target or targets must be provided)
|
||||||
|
--targets=TARGETS
|
||||||
|
File path of one domain per line
|
||||||
--process=PROCESS
|
--process=PROCESS
|
||||||
Number of processes blasted (default CPU core count)
|
Number of processes (default 1)
|
||||||
--coroutine=COROUTINE
|
--concurrent=CONCURRENT
|
||||||
Number of coroutines per blasting process (default 1024)
|
Number of concurrent (default 2000)
|
||||||
|
--word=WORD
|
||||||
|
Use word mode generate dictionary (default False)
|
||||||
--wordlist=WORDLIST
|
--wordlist=WORDLIST
|
||||||
Specify the dictionary path used for blasting (config.py is used by default)
|
Dictionary path used in word mode (default use ./config/default.py)
|
||||||
--recursive=RECURSIVE
|
--recursive=RECURSIVE
|
||||||
Whether to use recursive blasting (default False)
|
Use recursion (default False)
|
||||||
--depth=DEPTH
|
--depth=DEPTH
|
||||||
Depth of recursive blasting (default 2)
|
Recursive depth (default 2)
|
||||||
--namelist=NAMELIST
|
--nextlist=NEXTLIST
|
||||||
Specifies the dictionary path used by recursive blasting (configured by default using config.py)
|
Dictionary file path used by recursive (default use ./config/default.py)
|
||||||
--fuzz=FUZZ
|
--fuzz=FUZZ
|
||||||
Whether to use the fuzz mode for blasting (default False, you must specify the fuzz regular rule)
|
Use fuzz mode generate dictionary (default False)
|
||||||
|
--place=PLACE
|
||||||
|
Designated fuzz position (required if use fuzz mode)
|
||||||
--rule=RULE
|
--rule=RULE
|
||||||
Regular rules used by fuzz mode (configured by default using config.py)
|
Specify the regexp rules used in fuzz mode (required if use fuzz mode)
|
||||||
|
--fuzzlist=FUZZLIST
|
||||||
|
Dictionary path used in fuzz mode (default use ./config/default.py)
|
||||||
--export=EXPORT
|
--export=EXPORT
|
||||||
Whether to export the blast result (default True)
|
Export the results (default True)
|
||||||
--valid=VALID
|
--alive=ALIVE
|
||||||
Export validity of subdomains (default None)
|
Only export alive subdomains (default False)
|
||||||
--format=FORMAT
|
--format=FORMAT
|
||||||
Export format (default xls)
|
Result format (default csv)
|
||||||
--path=PATH
|
--path=PATH
|
||||||
Export path (default None)
|
Result directory (default None)
|
||||||
--show=SHOW
|
```
|
||||||
Terminal display exported data (default False)
|
|
||||||
|
3. **takeover.py help**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python takeover.py --help
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
NAME
|
||||||
|
takeover.py - OneForAll subdomain takeover module SYNOPSIS takeover.py <flags> DESCRIPTION
|
||||||
|
|
||||||
|
Example:
|
||||||
|
python3 takeover.py --target www.example.com --format csv run
|
||||||
|
python3 takeover.py --targets ./subdomains.txt --thread 10 run
|
||||||
|
|
||||||
|
Note:
|
||||||
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
||||||
|
--path Result directory (default directory is ./results)
|
||||||
|
|
||||||
|
FLAGS
|
||||||
|
--target=TARGET
|
||||||
|
One domain (target or targets must be provided)
|
||||||
|
--targets=TARGETS
|
||||||
|
File path of one domain per line
|
||||||
|
--thread=THREAD
|
||||||
|
threads number (default 20)
|
||||||
|
--path=PATH
|
||||||
|
Result directory (default None)
|
||||||
|
--format=FORMAT
|
||||||
|
Result format (default csv)
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **dbexport.py help**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python dbexport.py --help
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
NAME
|
||||||
|
dbexport.py - OneForAll export from database module
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
dbexport.py TARGET <flags>
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
Example:
|
||||||
|
python3 dbexport.py --target name --format csv --dir= ./result.csv
|
||||||
|
python3 dbexport.py --db result.db --target name --show False
|
||||||
|
python3 dbexport.py --target table_name --tb True --show False
|
||||||
|
|
||||||
|
Note:
|
||||||
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
||||||
|
--path Result directory (default directory is ./results)
|
||||||
|
|
||||||
|
POSITIONAL ARGUMENTS
|
||||||
|
TARGET
|
||||||
|
Table to be exported
|
||||||
|
|
||||||
|
FLAGS
|
||||||
|
--type=TYPE
|
||||||
|
Type of target
|
||||||
|
--db=DB
|
||||||
|
Database path to be exported (default ./results/result.sqlite3)
|
||||||
|
--alive=ALIVE
|
||||||
|
Only export the results of alive subdomains (default False)
|
||||||
|
--limit=LIMIT
|
||||||
|
Export limit (default None)
|
||||||
|
--path=PATH
|
||||||
|
Result directory (default None)
|
||||||
|
--format=FORMAT
|
||||||
|
Result format (default csv)
|
||||||
|
--show=SHOW
|
||||||
|
Displays the exported data in terminal (default False)
|
||||||
```
|
```
|
||||||
+34
-40
@@ -38,7 +38,6 @@ OneForAll命令行界面基于[Fire](https://github.com/google/python-fire/)实
|
|||||||
python3 oneforall.py --target example.com --show True run
|
python3 oneforall.py --target example.com --show True run
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
--alive True/False 只导出存活子域(默认False)
|
|
||||||
--port small/medium/large 详见./config/setting.py(默认small)
|
--port small/medium/large 详见./config/setting.py(默认small)
|
||||||
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (结果格式,默认CSV)
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (结果格式,默认CSV)
|
||||||
--path 结果路径(默认None,自动生成)
|
--path 结果路径(默认None,自动生成)
|
||||||
@@ -90,63 +89,56 @@ OneForAll命令行界面基于[Fire](https://github.com/google/python-fire/)实
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
NAME
|
NAME
|
||||||
aiobrute.py - OneForAll多进程多协程异步子域爆破模块
|
brute.py - OneForAll子域爆破模块
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
aiobrute.py --target=TARGET <flags>
|
brute.py <flags>
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
Example:
|
Example:
|
||||||
python3 aiobrute.py --target example.com run
|
brute.py --target domain.com --word True run
|
||||||
python3 aiobrute.py --target ./domains.txt run
|
brute.py --targets ./domains.txt --word True run
|
||||||
python3 aiobrute.py --target example.com --process 4 --coroutine 64 run
|
brute.py --target domain.com --word True --coroutine 2000 run
|
||||||
python3 aiobrute.py --target example.com --wordlist subdomains.txt run
|
brute.py --target domain.com --word True --wordlist subnames.txt run
|
||||||
python3 aiobrute.py --target example.com --recursive True --depth 2 run
|
brute.py --target domain.com --word True --recursive True --depth 2 run
|
||||||
python3 aiobrute.py --target m.{fuzz}.a.bz --fuzz True --rule [a-z] run
|
brute.py --target d.com --fuzz True --place m.*.d.com --rule '[a-z]' run
|
||||||
|
brute.py --target d.com --fuzz True --place m.*.d.com --fuzzlist subnames.txt run
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
参数segment的设置受CPU性能,网络带宽,运营商限制等问题影响,默认设置500个子域为任务组,
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (结果格式,默认CSV)
|
||||||
当你觉得你的环境不受以上因素影响,当前爆破速度较慢,那么强烈建议根据字典大小调整大小:
|
--path 导出路径(默认None,自动生成)
|
||||||
十万字典建议设置为5000,百万字典设置为50000
|
|
||||||
参数valid可选值1,0,None,分别表示导出有效,无效,全部子域
|
|
||||||
参数format可选格式:'csv', 'tsv', 'json', 'yaml', 'html', 'xls', 'xlsx',
|
|
||||||
'dbf', 'latex', 'ods'
|
|
||||||
参数path为None会根据format参数和域名名称在项目结果目录生成相应文件
|
|
||||||
|
|
||||||
ARGUMENTS
|
|
||||||
TARGET
|
|
||||||
单个域名或者每行一个域名的文件路径
|
|
||||||
|
|
||||||
FLAGS
|
FLAGS
|
||||||
|
--target=TARGET
|
||||||
|
单个域名(必须提供target或targets参数)
|
||||||
|
--targets=TARGETS
|
||||||
|
每行一个域名的文件路径
|
||||||
--process=PROCESS
|
--process=PROCESS
|
||||||
爆破的进程数(默认CPU核心数)
|
爆破的进程数(默认CPU核心数)
|
||||||
--coroutine=COROUTINE
|
--coroutine=COROUTINE
|
||||||
每个爆破进程下的协程数(默认64)
|
每个爆破进程下的协程数(默认2000)
|
||||||
--wordlist=WORDLIST
|
--wordlist=WORDLIST
|
||||||
指定爆破所使用的字典路径(默认使用config.py配置)
|
指定爆破所使用的字典路径(默认使用config.py配置)
|
||||||
--segment=SEGMENT
|
|
||||||
爆破任务分割(默认500)
|
|
||||||
--recursive=RECURSIVE
|
--recursive=RECURSIVE
|
||||||
是否使用递归爆破(默认False)
|
是否使用递归爆破(默认False)
|
||||||
--depth=DEPTH
|
--depth=DEPTH
|
||||||
递归爆破的深度(默认2)
|
递归爆破的深度(默认2)
|
||||||
--namelist=NAMELIST
|
--nextlist=NEXTLIST
|
||||||
指定递归爆破所使用的字典路径(默认使用config.py配置)
|
指定递归爆破所使用的字典路径(默认使用config.py配置)
|
||||||
--fuzz=FUZZ
|
--fuzz=FUZZ
|
||||||
是否使用fuzz模式进行爆破(默认False,开启须指定fuzz正则规则)
|
是否使用fuzz模式进行爆破(默认False)
|
||||||
--rule=RULE
|
--rule=RULE
|
||||||
fuzz模式使用的正则规则(默认使用config.py配置)
|
fuzz模式使用的正则规则(默认使用config.py配置)
|
||||||
|
--fuzzlist=FUZZLIST
|
||||||
|
指定fuzz模式所使用的字典路径(默认使用config.py配置)
|
||||||
--export=EXPORT
|
--export=EXPORT
|
||||||
是否导出爆破结果(默认True)
|
是否导出爆破结果(默认True)
|
||||||
--valid=VALID
|
--alive=ALIVE
|
||||||
导出子域的有效性(默认None)
|
只导出存活子域(默认False)
|
||||||
--format=FORMAT
|
--format=FORMAT
|
||||||
导出格式(默认xlsx)
|
导出格式(默认csv)
|
||||||
--path=PATH
|
--path=PATH
|
||||||
导出路径(默认None)
|
导出路径(默认None)
|
||||||
--show=SHOW
|
|
||||||
终端显示导出数据(默认False)
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -200,24 +192,26 @@ OneForAll命令行界面基于[Fire](https://github.com/google/python-fire/)实
|
|||||||
dbexport.py - OneForAll数据库导出模块
|
dbexport.py - OneForAll数据库导出模块
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
dbexport.py TABLE <flags>
|
dbexport.py TARGET <flags>
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
Example:
|
Example:
|
||||||
python3 dbexport.py --table name --format csv --path= ./result.csv
|
python3 dbexport.py --target name --format csv --dir= ./result.csv
|
||||||
python3 dbexport.py --db result.db --table name --show False
|
python3 dbexport.py --db result.db --target name --show False
|
||||||
|
python3 dbexport.py --target table_name --tb True --show False
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
参数port可选值有'small', 'medium', 'large', 'xlarge',详见config.py配置
|
--type target/table 要导出的目标类型(默认target)
|
||||||
参数format可选格式有'csv', 'tsv', 'json', 'yaml', 'html', 'xls', 'xlsx',
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (结果格式,默认CSV)
|
||||||
'dbf', 'latex', 'ods'
|
--path 结果路径(默认None,自动生成)
|
||||||
参数path为None会根据format参数和域名名称在项目结果目录生成相应文件
|
|
||||||
|
|
||||||
POSITIONAL ARGUMENTS
|
POSITIONAL ARGUMENTS
|
||||||
TABLE
|
TARGET
|
||||||
要导出的表
|
要导出的目标类型
|
||||||
|
|
||||||
FLAGS
|
FLAGS
|
||||||
|
--type=TYPE
|
||||||
|
要导出的目标类型(默认target)
|
||||||
--db=DB
|
--db=DB
|
||||||
要导出的数据库路径(默认为results/result.sqlite3)
|
要导出的数据库路径(默认为results/result.sqlite3)
|
||||||
--valid=VALID
|
--valid=VALID
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ class OneForAll(object):
|
|||||||
python3 oneforall.py --target example.com --show True run
|
python3 oneforall.py --target example.com --show True run
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
--alive True/False Only export alive subdomains or not (default False)
|
|
||||||
--port small/medium/large See details in ./config/setting.py(default small)
|
--port small/medium/large See details in ./config/setting.py(default small)
|
||||||
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
--format rst/csv/tsv/json/yaml/html/jira/xls/xlsx/dbf/latex/ods (result format)
|
||||||
--path Result path (default None, automatically generated)
|
--path Result path (default None, automatically generated)
|
||||||
|
|||||||
Reference in New Issue
Block a user