
Forbidden Buster 是一款旨在自动化各种技术以绕过 HTTP 401 和 403 响应码,从而获取系统中未授权区域访问权限的工具。此代码仅供安全爱好者和专业人士使用。使用风险自负。
安装依赖
pip3 install -r requirements.txt
运行脚本
python3 forbidden_buster.py -u http://example.com
你也可以使用 Docker 来运行 Forbidden-Buster。这种方法可确保你拥有一个一致的运行环境,无需在宿主机上安装 Python。
首先,构建 Docker 镜像:
docker build -t forbidden-buster-image .
然后,运行 Docker 容器。将 forbidden_buster.py 脚本传递给容器。
docker run --rm -it -v /path/to/forbidden_buster.py:/app/forbidden_buster.py forbidden-buster-image /bin/bash
[!NOTE]
请确保将/path/to/forbidden_buster.py替换为你实际的forbidden_buster.py文件路径。该命令会将你的本地文件挂载到容器内的/app目录中,以便你直接运行forbidden_buster.py脚本。
进入容器后,导航到 /app 目录并按正常方式运行脚本。
Forbidden Buster 接受以下参数:
-h, --help show this help message and exit
-u URL, --url URL Full path to be used
-f FILE, --file FILE Include a file with multiple URLs to be tested.
-o OUTPUT, --output OUTPUT
Print the results to an output file, Usage i.e: output.txt.
-m METHOD, --method METHOD
Method to be used. Default is GET.
-H HEADER, --header HEADER
Add a custom header.
-d DATA, --data DATA Add data to requset body. JSON is supported with escaping.
-p PROXY, --proxy PROXY
Use Proxy, Usage i.e: 127.0.0.1:8080.
--include-unicode Include Unicode fuzzing (stressful).
--include-user-agent Include User-Agent fuzzing (stressful).
--include-api Include API fuzzing.
使用示例:
python3 forbidden_buster.py --url "https://example.com/api/v1/secret" --method POST --header "Authorization: Bearer XXX" --data '{\"key\":\"value\"}' --proxy "http://proxy.example.com" --include-api --include-unicode