If you have not set up a directory for custom plugins, create the directory:
sudo mkdir -p /usr/local/share/pwnagotchi/custom-plugins/
then add its path to your config.toml file located at /etc/pwnagotchi/config.toml
:
main.custom_plugins = "/usr/local/share/pwnagotchi/custom-plugins/"
A plugin for pwnagotchi that sniffs Bluetooth devices and saves their MAC addresses, name and counts to a JSON file.
- Make sure hcitool is installed:
sudo apt install -y bluez
- Clone this repo onto your pwnagotchi and move to the repo directory
git clone https://github.com/diytechtinker/pwnagotchi_plugins.git
cd pwnagotchi_plugins/
- Copy over
bluetoothsniffer.py
into your custom plugins directory.
sudo cp bluetoothsniffer.py /usr/local/share/pwnagotchi/custom-plugins/bluetoothsniffer.py
- In your
config.toml
file, add:
main.plugins.bluetoothsniffer.enabled = true
main.plugins.bluetoothsniffer.timer = 45 # On how may seconds to scan for bluetooth devices
main.plugins.bluetoothsniffer.devices_file = "/root/handshakes/bluetooth_devices.json" # Path to the JSON file with bluetooth devices
main.plugins.bluetoothsniffer.count_interval = 86400 # On how may seconds to update count bluetooth devices
main.plugins.bluetoothsniffer.bt_x_coord = 160
main.plugins.bluetoothsniffer.bt_y_coord = 66
- Restart your pwnagotchi to load the plugin.
systemctl restart pwnagotchi