From 4793d14f2488443a35673c5b6b609d91254986dc Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 02:33:49 +0530 Subject: [PATCH 01/15] Updated to toml format Updated the readme according to the new toml format for the config file. --- README.md | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) 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 From 652006bea90c57f3f121307f4834701007f12874 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 02:42:08 +0530 Subject: [PATCH 02/15] Updated to TOML format Updated according to the new TOML configuration file format. --- auto_backup.toml | 15 +++++++++++++++ auto_backup.yml | 14 -------------- 2 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 auto_backup.toml delete mode 100644 auto_backup.yml 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 From 1fe219f5e43eb0109dc125ada0fe19b009795210 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 02:45:55 +0530 Subject: [PATCH 03/15] Updated to TOML format Updated the readme in accordance to the new toml format for the config file. --- aircrackonly.toml | 2 ++ aircrackonly.yml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 aircrackonly.toml delete mode 100644 aircrackonly.yml 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 From 1cac8bef1e8a32d7b499d89d08e167213ab65818 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 02:56:50 +0530 Subject: [PATCH 04/15] Update aircrackonly.toml From 5f4d465f92288dd0b6d5609f315e8f3818ce1632 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 02:59:38 +0530 Subject: [PATCH 05/15] Updated to TOML format Updated in accordance to the new TOML config file format. --- buttonshim.toml | 46 ++++++++++++++++++++++++++++++++++++++++++ buttonshim.yml | 53 ------------------------------------------------- 2 files changed, 46 insertions(+), 53 deletions(-) create mode 100644 buttonshim.toml delete mode 100644 buttonshim.yml 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 From 44a7cdd34f12cb5fefadc9a3d26b3193b7a5b40e Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:02:47 +0530 Subject: [PATCH 06/15] Updated to TOML format Updated in accordance to the new config file format. --- discord.toml | 3 +++ discord.yml | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 discord.toml delete mode 100644 discord.yml 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 From 5766a2be11c56812c5017ea8326abd198d8ed70e Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:05:27 +0530 Subject: [PATCH 07/15] Updated to TOML format Update in accordance to the new toml format used for config file. --- gpio_shutdown.toml | 2 ++ gpio_shutdown.yml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 gpio_shutdown.toml delete mode 100644 gpio_shutdown.yml 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 From 29a4b76fbcc6add4f0c1d1a95eb97359a124ca20 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:07:31 +0530 Subject: [PATCH 08/15] Updated to TOML format Updated in accordance to the new toml format used in config file. --- handshakes-dl.toml | 1 + handshakes-dl.yml | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 handshakes-dl.toml delete mode 100644 handshakes-dl.yml 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 From 1727ad8b231fffb699a2cb76289a92256ebec54c Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:12:00 +0530 Subject: [PATCH 09/15] Updated to TOML format Updated in accordance to the new toml format used in config file. --- mastodon.toml | 5 +++++ mastodon.yml | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 mastodon.toml delete mode 100644 mastodon.yml 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: ~ From a37c0dca1078a2f3fb894f6a5e71bd35075fa088 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:14:31 +0530 Subject: [PATCH 10/15] Updated to TOML format Updated in accordance to the new toml format used in config file. --- quickdic.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/quickdic.yml b/quickdic.yml index 05fe137..20d1240 100644 --- a/quickdic.yml +++ b/quickdic.yml @@ -1,4 +1,3 @@ -quickdic: - enabled: false - wordlist_folder: /opt/wordlists/ - face: '(·ω·)' \ No newline at end of file +main.plugins.quickdic.enabled = false +main.plugins.quickdic.wordlist_folder = "/opt/wordlists/" +main.plugins.quickdic.face = "(·ω·)" From 61e4ad63f79930f809ca53e9b50cb9d24edfd071 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:15:41 +0530 Subject: [PATCH 11/15] Updated to TOML format Updated in accordance to the toml format in config file. --- quickdic.yml => quickdic.toml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename quickdic.yml => quickdic.toml (100%) diff --git a/quickdic.yml b/quickdic.toml similarity index 100% rename from quickdic.yml rename to quickdic.toml From e0f22acb9e6441d91eec7a2358d93fbbe146360e Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:17:50 +0530 Subject: [PATCH 12/15] Updated to TOML format Updated in accordance to the new toml format used in config file. --- screen_refresh.toml | 2 ++ screen_refresh.yml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 screen_refresh.toml delete mode 100644 screen_refresh.yml 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 From 711faec1f529a0479949a248d2405e55d8791244 Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:20:26 +0530 Subject: [PATCH 13/15] Updated to TOML format Updated in accordance to the new toml format used in config file. --- telegram.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/telegram.yml b/telegram.yml index 5b04e47..deb08f5 100644 --- a/telegram.yml +++ b/telegram.yml @@ -1,7 +1,6 @@ -telegram: - enabled: false - bot_token: ~ - bot_name: pwnagotchi - chat_id: ~ - send_picture: true - send_message: true +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 From 683c1a1611a0b1fee746867ba4b309105043f9ba Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:21:29 +0530 Subject: [PATCH 14/15] Updated to TOML Updated to TOML format in accordance to the config file. --- telegram.yml => telegram.toml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename telegram.yml => telegram.toml (100%) diff --git a/telegram.yml b/telegram.toml similarity index 100% rename from telegram.yml rename to telegram.toml From e311d5a2cb10499112c8d25ac4e41ca26d63801a Mon Sep 17 00:00:00 2001 From: Ayush Date: Thu, 24 Sep 2020 03:24:48 +0530 Subject: [PATCH 15/15] Updated to TOML format Updated in accordance to the new TOML format used in config. --- twitter.toml | 5 +++++ twitter.yml | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 twitter.toml delete mode 100644 twitter.yml 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