From 4fe603bf5e8f1602729b8eeb4d046da5fcfb06b6 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Mon, 22 Jan 2024 12:35:21 +0100 Subject: [PATCH] Small edit to net-pos.py --- pwnagotchi/plugins/default/net-pos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwnagotchi/plugins/default/net-pos.py b/pwnagotchi/plugins/default/net-pos.py index c038fd8a..5d06006b 100644 --- a/pwnagotchi/plugins/default/net-pos.py +++ b/pwnagotchi/plugins/default/net-pos.py @@ -24,6 +24,7 @@ class NetPos(plugins.Plugin): self.skip = list() self.ready = False self.lock = threading.Lock() + self.options = dict() def on_loaded(self): if 'api_key' not in self.options or ('api_key' in self.options and not self.options['api_key']): @@ -116,6 +117,7 @@ class NetPos(plugins.Plugin): except OSError as os_e: logging.error("NET-POS: %s", os_e) + def _get_netpos(self, agent): aps = agent.get_access_points() netpos = dict()