

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