go install github.com/puzzlepeaches/ffufw@latest
ffufw 是一个围绕 ffuf 的包装器,使目录爆破更容易、更智能。该工具具有以下特性:
本项目需要安装 Go。安装说明可在此处找到。或者,您可以使用以下命令和仓库快速安装 Go:
wget -q -O - https://git.io/vQhTU | bash
使用以下命令安装该工具:
go install github.com/puzzlepeaches/ffufw@latest
运行该工具需要以下工具:
使用以下命令安装依赖:
go install github.com/Damian89/ffufPostprocessing@latest
go install github.com/ffuf/ffuf/v2@latest
如果您的系统上还没有字典,它们将在首次运行时下载到目录 ~/.ffufw/wordlists/。有关所有已下载字典的列表,请参阅 cmd/wordlists/storage.go。还支持单个自定义字典,可以使用 -w 标志指定。
该工具的帮助菜单如下:
ffuf with that special sauce
Usage:
ffufw [flags] -i <input file> -o <output directory>
ffufw [command]
Available Commands:
help Help about any command
version Print the version number of generated code example
Flags:
-t, --concurrency int Set the concurrency level for scanning (default 3)
-c, --config string Specify the config file for FFUF (default "~/.ffufrc")
-w, --custom-wordlist string Specify a custom wordlist to use for scanning. This disable technology detection and pre-defined wordlists for all URLs.
-e, --exclude-waf Exclude WAFs from the scans.
--ffuf string Specify the path to the ffuf binary (default "ffuf")
--ffufPostprocessing string Specify the path to the ffufPostprocessing binary (default "ffufPostprocessing")
-g, --gowitness string Specify the address for the gowitness API. Ensure format is http://<ip>:<port>
-h, --help help for ffufw
-i, --input string Specify the list of URLs to scan
-o, --output string Specify the output directory for FFUF results
-q, --quiet Enable silent mode (no additional information printed)
-r, --replay-proxy string Specify the address for a replay proxy. Ensure format is http://<ip>:<port>
-v, --verbose Enable verbose mode (print additional information)
Use "ffufw [command] --help" for more information about a command.
该工具最基本的使用方式,配合自定义 ffuf 配置文件并输出详细日志:
ffufw -o /tmp/output/ -i /tmp/targets.txt -c /opt/.ffufrc -v
基本用法,将输出发送到 gowitness:
ffufw -o /tmp/output/ -i /tmp/targets.txt -g http://127.0.0.1:9999
使用自定义 ffuf 和 ffufPostprocessing 二进制文件:
ffufw --ffuf /usr/local/bin/ffuf --ffufPostprocessing /usr/local/bin/ffufPostprocessing -o /tmp/output/ -i /tmp/targets.txt
使用自定义并发数(同时扫描的 URL 数量):
ffufw -o /tmp/output/ -i /tmp/targets.txt -c /opt/.ffufrc -t 5
配合 gowitness、详细输出和 WAF 排除的基本用法:
ffufw -o /tmp/output/ -i /tmp/urls.txt -c /opt/.ffufrc -v -e -g http://127.0.0.1:9000
使用 5 个线程并将提交到重放代理(Burp、Zap 等)的基本用法:
ffufw -o /tmp/output/ -i /tmp/urls.txt -c /opt/.ffufrc -t 5 -r http://127.0.0.1:8080