From 9aca3a3a5b0af6d8fa0788065f0991ca0bcfa197 Mon Sep 17 00:00:00 2001 From: Casey Diemel Date: Sun, 13 Oct 2019 17:53:18 -0400 Subject: [PATCH] added example for testing Signed-off-by: Casey Diemel --- .../plugins/default/unfiltered_example.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pwnagotchi/plugins/default/unfiltered_example.py diff --git a/pwnagotchi/plugins/default/unfiltered_example.py b/pwnagotchi/plugins/default/unfiltered_example.py new file mode 100644 index 0000000..c4f9fba --- /dev/null +++ b/pwnagotchi/plugins/default/unfiltered_example.py @@ -0,0 +1,18 @@ +__author__ = 'diemelcw@gmail.com' +__version__ = '1.0.0' +__name__ = 'unfiltered_example' +__license__ = 'GPL3' +__description__ = 'An example plugin for pwnagotchi that implements on_unfiltered_ap_list(agent,aps)' + +import logging + +# Will be set with the options in config.yml config['main']['plugins'][__name__] +OPTIONS = dict() + +# called when AP list is ready, before whitelist filtering has occured +def on_unfiltered_ap_list(agent,aps): + logging.info("Unfiltered AP list to follow") + for ap in aps: + logging.info(ap['hostname']) + + ## Additional logic here ##