
Hak5 Bash Bunny向けBLEベースのC2サーバーで、ワイヤレスコマンドインジェクション、ペイロード配信、Bluetooth Low Energy経由のリモートコントロールを可能にします。

Bash Bunny Mark II と Bluetooth Low Energy を介して直接通信する C2 ソリューションです。
必要なすべての指示を、Bash Bunny に無線で送信できます。

pip install pygatt "pygatt[GATTTOOL]"
BlueZ がインストールされ、gatttool が使用可能であることを確認してください
sudo apt install bluez
git clone https://github.com/90N45-d3v/BlueBunny
cd BlueBunny/C2
sudo python c2-server.py
BlueBunny/payload.txt にあります)。localhost:1472 にアクセスして C2 サーバーを開き、Bash Bunny を接続します (ペアリング準備ができると Bash Bunny が緑色に点灯します)。BlueBunny の BLE バックエンドを使用して、Bash Bunny と手動で通信できます。
# Import the backend (BlueBunny/C2/BunnyLE.py)
import BunnyLE
# Define the data to send
data = "QUACK STRING I love my Bash Bunny"
# Define the type of the data to send ("cmd" or "payload") (payload data will be temporary written to a file, to execute multiple commands like in a payload script file)
d_type = "cmd"
# Initialize BunnyLE
BunnyLE.init()
# Connect to your Bash Bunny
bb = BunnyLE.connect()
# Send the data and let it execute
BunnyLE.send(bb, data, d_type)
使用されている Bluetooth スタックはよく知られていますが、非常にバグが多いです。Bash Bunny との接続開始がうまくいかない場合、おそらく BlueZ による一時的な問題です。以下は一時的なバグによって発生する可能性のあるエラーの一部です。これらは通常、C2 のオペレーティングシステムを再起動すれば遅くとも消えるので、表示されても驚かずに落ち着いてください。
前述の通り、BlueBunny で使用されている Bluetooth 部分のベースである BlueZ はややバグが発生しやすいです。Bash Bunny への接続時に一時的でないバグや、BlueBunny プロジェクト全体におけるその他のバグや困難に遭遇した場合は、いつでもご連絡ください。問題、アイデア/解決策、または単なるフィードバックでも構いません。