diff --git a/README.md b/README.md index 21dce9d..790ec4a 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,32 @@ These are user contributed plugins for [pwnagotchi](https://github.com/evilsocket/pwnagotchi), some of them have not been completely tested by the dev team, **use them at your own risk**. -In order to use these plugins, clone the repository anywhere on your unit and then add its path to `/etc/pwnagotchi/config.yml` as: +In order to use these plugins, clone the repository anywhere on your unit and then add its path to `/etc/pwnagotchi/config.toml` as: -```yaml -main: - custom_plugins: "/path/to/this/folder" +```toml +main.custom_plugins = "/path/to/this/folder" ``` Each plugin has its own configuration than must be part of the `main.plugins` section. If for instance you want to enable -the auto_backup plugin, you need to edit your config.yml and add this: +the auto_backup plugin, you need to edit your config.toml and add this: -```yaml -main: - custom_plugins: "/path/to/this/folder" - plugins: - auto_backup: - enabled: true - interval: 1 # every day - max_tries: 0 # 0=infinity - files: - - /root/brain.nn - - /root/brain.json - - /root/.api-report.json - - /root/handshakes/ - - /root/peers/ - - /etc/pwnagotchi/ - - /var/log/pwnagotchi.log - commands: - - 'tar czf /root/pwnagotchi-backup.tar.gz {files}' +```toml +main.custom_plugins = "path/to/this/folder" +main.plugins.auto_backup.enabled = true +main.plugins.auto_backup.interval = 1 # every day +main.plugins.auto_backup.max_tries = 0 # 0=infinity +main.plugins.auto_backup.files = [ + "/root/brain.nn", + "root/brain.json", + "/root/.api-report.json", + "/root/handshakes/", + "/root/peers/", + "/etc/pwnagotchi/", + "var/log/pwnagotchi.log" +] +main.plugins.auto_backup.commands = [ + "tar czf /root/pwnagotchi-backup.tar.gz {files}" +] ``` ## License diff --git a/aircrackonly.toml b/aircrackonly.toml new file mode 100644 index 0000000..5571009 --- /dev/null +++ b/aircrackonly.toml @@ -0,0 +1,2 @@ +main.plugins.aircrackonly.enabled = true +main.plugins.aircrackonly.face = "(>.<)" diff --git a/aircrackonly.yml b/aircrackonly.yml deleted file mode 100644 index b7b54d2..0000000 --- a/aircrackonly.yml +++ /dev/null @@ -1,3 +0,0 @@ -aircrackonly: - enabled: false - face: '(>.<)' \ No newline at end of file diff --git a/auto_backup.toml b/auto_backup.toml new file mode 100644 index 0000000..c54563a --- /dev/null +++ b/auto_backup.toml @@ -0,0 +1,15 @@ +main.plugins.auto_backup.enabled = true +main.plugins.auto_backup.interval = 1 # every day +main.plugins.auto_backup.max_tries = 0 # 0=infinity +main.plugins.auto_backup.files = [ + "/root/brain.nn", + "root/brain.json", + "/root/.api-report.json", + "/root/handshakes/", + "/root/peers/", + "/etc/pwnagotchi/", + "var/log/pwnagotchi.log" +] +main.plugins.auto_backup.commands = [ + "tar czf /root/pwnagotchi-backup.tar.gz {files}" +] diff --git a/auto_backup.yml b/auto_backup.yml deleted file mode 100644 index 7445e09..0000000 --- a/auto_backup.yml +++ /dev/null @@ -1,14 +0,0 @@ -auto_backup: - enabled: false - interval: 1 # every day - max_tries: 0 # 0=infinity - files: - - /root/brain.nn - - /root/brain.json - - /root/.api-report.json - - /root/handshakes/ - - /root/peers/ - - /etc/pwnagotchi/ - - /var/log/pwnagotchi.log - commands: - - 'tar czf /root/pwnagotchi-backup.tar.gz {files}' \ No newline at end of file diff --git a/buttonshim.toml b/buttonshim.toml new file mode 100644 index 0000000..9620897 --- /dev/null +++ b/buttonshim.toml @@ -0,0 +1,46 @@ +main.plugins.buttonshim.enabled = false + +main.plugins.buttonshim.buttons.A.command = "" +main.plugins.buttonshim.buttons.A.blink.enabled = false +main.plugins.buttonshim.buttons.A.blink.red = 0 +main.plugins.buttonshim.buttons.A.blink.green = 0 +main.plugins.buttonshim.buttons.A.blink.blue = 0 +main.plugins.buttonshim.buttons.A.blink.on_time = 0 +main.plugins.buttonshim.buttons.A.blink.off_time = 0 +main.plugins.buttonshim.buttons.A.blink.blink_times = 0 + +main.plugins.buttonshim.buttons.B.command = "" +main.plugins.buttonshim.buttons.B.blink.enabled = false +main.plugins.buttonshim.buttons.B.blink.red = 0 +main.plugins.buttonshim.buttons.B.blink.green = 0 +main.plugins.buttonshim.buttons.B.blink.blue = 0 +main.plugins.buttonshim.buttons.B.blink.on_time = 0 +main.plugins.buttonshim.buttons.B.blink.off_time = 0 +main.plugins.buttonshim.buttons.B.blink.blink_times = 0 + +main.plugins.buttonshim.buttons.C.command = "" +main.plugins.buttonshim.buttons.C.blink.enabled = false +main.plugins.buttonshim.buttons.C.blink.red = 0 +main.plugins.buttonshim.buttons.C.blink.green = 0 +main.plugins.buttonshim.buttons.C.blink.blue = 0 +main.plugins.buttonshim.buttons.C.blink.on_time = 0 +main.plugins.buttonshim.buttons.C.blink.off_time = 0 +main.plugins.buttonshim.buttons.C.blink.blink_times = 0 + +main.plugins.buttonshim.buttons.D.command = "" +main.plugins.buttonshim.buttons.D.blink.enabled = false +main.plugins.buttonshim.buttons.D.blink.red = 0 +main.plugins.buttonshim.buttons.D.blink.green = 0 +main.plugins.buttonshim.buttons.D.blink.blue = 0 +main.plugins.buttonshim.buttons.D.blink.on_time = 0 +main.plugins.buttonshim.buttons.D.blink.off_time = 0 +main.plugins.buttonshim.buttons.D.blink.blink_times = 0 + +main.plugins.buttonshim.buttons.E.command = "" +main.plugins.buttonshim.buttons.E.blink.enabled = false +main.plugins.buttonshim.buttons.E.blink.red = 0 +main.plugins.buttonshim.buttons.E.blink.green = 0 +main.plugins.buttonshim.buttons.E.blink.blue = 0 +main.plugins.buttonshim.buttons.E.blink.on_time = 0 +main.plugins.buttonshim.buttons.E.blink.off_time = 0 +main.plugins.buttonshim.buttons.E.blink.blink_times = 0 diff --git a/buttonshim.yml b/buttonshim.yml deleted file mode 100644 index f561fc5..0000000 --- a/buttonshim.yml +++ /dev/null @@ -1,53 +0,0 @@ -buttonshim: - enabled: false - buttons: - A: - command: '' - blink: - enabled: false - red: 0 - green: 0 - blue: 0 - on_time: 0 - off_time: 0 - blink_times: 0 - B: - command: '' - blink: - enabled: false - red: 0 - green: 0 - blue: 0 - on_time: 0 - off_time: 0 - blink_times: 0 - C: - command: '' - blink: - enabled: false - red: 0 - green: 0 - blue: 0 - on_time: 0 - off_time: 0 - blink_times: 0 - D: - command: '' - blink: - enabled: false - red: 0 - green: 0 - blue: 0 - on_time: 0 - off_time: 0 - blink_times: 0 - E: - command: '' - blink: - enabled: false - red: 0 - green: 0 - blue: 0 - on_time: 0 - off_time: 0 - blink_times: 0 diff --git a/discord.toml b/discord.toml new file mode 100644 index 0000000..bf63250 --- /dev/null +++ b/discord.toml @@ -0,0 +1,3 @@ +main.plugins.discord.enabled = false # requires discord.py module to work (pip3 install discord.py) +main.plugins.discord.webhook_url = ~ +main.plugins.discord.username = "pwnagotchi " # defaults to hostname if not set diff --git a/discord.yml b/discord.yml deleted file mode 100644 index e9c2a92..0000000 --- a/discord.yml +++ /dev/null @@ -1,4 +0,0 @@ -discord: - enabled: false # requires discord.py module to work (pip3 install discord.py) - webhook_url: ~ - username: 'pwnagotchi' # defaults to hostname if not set \ No newline at end of file diff --git a/gpio_shutdown.toml b/gpio_shutdown.toml new file mode 100644 index 0000000..f3f6118 --- /dev/null +++ b/gpio_shutdown.toml @@ -0,0 +1,2 @@ +main.plugins.gpio_shutdown.enabled = false +main.plugins.gpio_shutdown.gpio = 21 diff --git a/gpio_shutdown.yml b/gpio_shutdown.yml deleted file mode 100644 index 977a95c..0000000 --- a/gpio_shutdown.yml +++ /dev/null @@ -1,3 +0,0 @@ -gpio_shutdown: - enabled: false - gpio: 21 diff --git a/handshakes-dl.toml b/handshakes-dl.toml new file mode 100644 index 0000000..0a3cfd4 --- /dev/null +++ b/handshakes-dl.toml @@ -0,0 +1 @@ +main.plugins.handshakes-dl.enabled = false diff --git a/handshakes-dl.yml b/handshakes-dl.yml deleted file mode 100644 index d21403e..0000000 --- a/handshakes-dl.yml +++ /dev/null @@ -1,2 +0,0 @@ -handshakes-dl: - enabled: false diff --git a/mastodon.toml b/mastodon.toml new file mode 100644 index 0000000..624463c --- /dev/null +++ b/mastodon.toml @@ -0,0 +1,5 @@ +main.plugins.mastodon.enabled = false +main.plugins.mastodon.instance_url = "" +main.plugins.mastodon.visibility= "unlisted" +main.plugins.mastodon.email = "" +main.plugins.mastodon.password = "" diff --git a/mastodon.yml b/mastodon.yml deleted file mode 100644 index 8947486..0000000 --- a/mastodon.yml +++ /dev/null @@ -1,6 +0,0 @@ -mastodon: - enabled: false - instance_url: ~ - visibility: unlisted - email: ~ - password: ~ diff --git a/quickdic.toml b/quickdic.toml new file mode 100644 index 0000000..20d1240 --- /dev/null +++ b/quickdic.toml @@ -0,0 +1,3 @@ +main.plugins.quickdic.enabled = false +main.plugins.quickdic.wordlist_folder = "/opt/wordlists/" +main.plugins.quickdic.face = "(·ω·)" diff --git a/quickdic.yml b/quickdic.yml deleted file mode 100644 index 05fe137..0000000 --- a/quickdic.yml +++ /dev/null @@ -1,4 +0,0 @@ -quickdic: - enabled: false - wordlist_folder: /opt/wordlists/ - face: '(·ω·)' \ No newline at end of file diff --git a/screen_refresh.toml b/screen_refresh.toml new file mode 100644 index 0000000..1cd2a33 --- /dev/null +++ b/screen_refresh.toml @@ -0,0 +1,2 @@ +main.plugins.screen_refresh.enabled = false +main.plugins.screen_refresh.refresh_interval = 50 diff --git a/screen_refresh.yml b/screen_refresh.yml deleted file mode 100644 index 2f85b6f..0000000 --- a/screen_refresh.yml +++ /dev/null @@ -1,3 +0,0 @@ -screen_refresh: - enabled: false - refresh_interval: 50 \ No newline at end of file diff --git a/telegram.toml b/telegram.toml new file mode 100644 index 0000000..deb08f5 --- /dev/null +++ b/telegram.toml @@ -0,0 +1,6 @@ +main.plugins.telegram.enabled = false +main.plugins.telegram.bot_token = ~ +main.plugins.telegram.bot_name = "pwnagotchi" +main.plugins.telegram.chat_id = ~ +main.plugins.telegram.send_picture = true +main.plugins.telegram.send_message = true diff --git a/telegram.yml b/telegram.yml deleted file mode 100644 index 5b04e47..0000000 --- a/telegram.yml +++ /dev/null @@ -1,7 +0,0 @@ -telegram: - enabled: false - bot_token: ~ - bot_name: pwnagotchi - chat_id: ~ - send_picture: true - send_message: true diff --git a/twitter.toml b/twitter.toml new file mode 100644 index 0000000..b2b4f3a --- /dev/null +++ b/twitter.toml @@ -0,0 +1,5 @@ +main.plugins.twitter.enabled = false +main.plugins.twitter.consumer_key = "" +main.plugins.twitter.consumer_secret = "" +main.plugins.twitter.access_token_key = "" +main.plugins.twitter.access_token_secret = "" diff --git a/twitter.yml b/twitter.yml deleted file mode 100644 index 1660665..0000000 --- a/twitter.yml +++ /dev/null @@ -1,6 +0,0 @@ -twitter: - enabled: false - consumer_key: aaa - consumer_secret: aaa - access_token_key: aaa - access_token_secret: aaa \ No newline at end of file