
___ __ ____ _ __ __
/ | __ __/ /_____ / __ \(_)____/ /_ __ _______/ /____ _____
/ /| |/ / / / __/ __ \/ / / / / ___/ __ \/ / / / ___/ __/ _ \/ ___/
/ ___ / /_/ / /_/ /_/ / /_/ / / / / /_/ / /_/ (__ ) /_/ __/ /
/_/ |_\__,_/\__/\____/_____/_/_/ /_.___/\__,_/____/\__/\___/_/
git clone https://github.com/NetSPI/AutoDirbuster.git
cd AutoDirbuster && pip3 install -r requirements.txt
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt
Ffuf は優れたディレクトリバスターですが、複数のIPとポートに対して実行するのは手作業が多く、スキャン間にダウンタイムが発生します。このスクリプトはそのプロセスを自動化し、スキャン間のダウンタイムを排除します。
複数のターゲットを攻撃する場合:
Nmap を実行して開いているポートを見つける
Nmap の結果を確認し、IP:port のリストを1行に1つ作成する
開いているポートに対して AutoDirbuster を実行する
AutoDirbuster はサービスが HTTP ベースかどうかを判断する
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt --combine単一のターゲットを攻撃する場合:
python AutoDirbuster.py -u example.com:80 -w my_wordlist.txt便利なオプション:
完全なオプション一覧については --help フラグを指定してください。
プログラムは2つのデータソースを受け取ることができます:
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txtpython AutoDirbuster.py -u example.com:80 -w my_wordlist.txtffuf-report-{proto}_{target}_{port}subprocess.Popen() を使用して実行される以下を確認してください:
requirements.txt に記載されている依存関係はすべてインストールされていますか?ffuf がインストールされ、システムのパスが通っていますか?
ffuf -V を実行してみてくださいpython -V で確認できます# python AutoDirbuster.py --help
usage:
___ __ ____ _ __ __
/ | __ __/ /_____ / __ \(_)____/ /_ __ _______/ /____ _____
/ /| |/ / / / __/ __ \/ / / / / ___/ __ \/ / / / ___/ __/ _ \/ ___/
/ ___ / /_/ / /_/ /_/ / /_/ / / / / /_/ / /_/ (__ ) /_/ __/ /
/_/ |_\__,_/\__/\____/_____/_/_/ /_.___/\__,_/____/\__/\___/_/
AutoDirbuster.py [options] {target file}
Automatically run and save ffuf scans for multiple IPs
options:
-h, --help show this help message and exit
AutoDirbuster options:
target Target file with IP:port, one per line
-u, --url Single target mode, positional argument is target in IP:port
format
-f, --force Force mode; don't check if report file exists, this will result in
previous reports being overwritten
--dns Automatically resolve IP address to hostname to use during dirbust
--debug Show debugging information
--combine Combine all CSV results into a single file after scanning
--quiet Suppress ffuf's stderr output (equivalent of 2>/dev/null);
AutoDirbuster's own output and ffuf stdout are unaffected
ffuf options:
-w WORDLIST, --wordlist WORDLIST
Wordlist to use for list based brute force
-X METHOD, --method METHOD
HTTP method to use; default=GET
-e EXTENSIONS, --extensions EXTENSIONS
File extension list (e.g.: "asp,aspx"); default is None
-t THREADS, --threads THREADS
Override the default number of ffuf threads
--rate RATE Rate of requests per second
-to TIMEOUT, --timeout TIMEOUT
Set a timeout value for each host in minutes; default is None
-fr, --follow-redirects
Follow redirects; default is False
-r, --recursive Recursive mode; default is False
-s STARTPOINT, --startpoint STARTPOINT
Start point of the scan; default=/
-of OUTPUT_FORMAT, --output-format OUTPUT_FORMAT
Output format to write results to; default=csv
-mc MATCH_CODES, --match-codes MATCH_CODES
Match HTTP status codes;
default=200,204,301,302,307,401,403,405,500
-nac, --no-auto-calibrate
Do not automatically calibrate filtering options
-H HEADER, --header HEADER
HTTP header "Name: Value", separated by colon
--custom-option CUSTOM_OPTION [CUSTOM_OPTION ...]
Specify ffuf option that AutoDirbuster doesn't support by default.
Argument should be a key/value pair separated by a comma with no
leading '-', example: --custom-option=ml,1. If the provided
argument is a boolean, provide an empty value: --custom-option=sa,
Examples:
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt
python AutoDirbuster.py -st example.com:80 -w my_wordlist.txt -mc 200,500
python AutoDirbuster.py ip_port_list.txt -w my_wordlist.txt -r -e "php,html" --dns
| オプション | 目的 |
|---|
| --dns | IP をホスト名に解決する |
| --extensions | スキャン時に使用するファイル拡張子 |
| --rate | 1秒あたりのリクエストレート |
| --timeout | 各ホストのタイムアウト値(分)を設定する |
| --match-codes | 指定された HTTP ステータスコードにマッチさせる |
| --combine | スキャン後、すべての CSV 結果を単一のファイルに結合する |
| --quiet | ffuf の stderr 出力を抑制する(2>/dev/null と同等) |
| --custom-option | AutoDirbuster がデフォルトでサポートしていない ffuf オプションを指定する |