From 1600d8cbd14a0d3343c3d925da86b99d5a6ac296 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Wed, 30 Oct 2019 17:50:56 +0100 Subject: [PATCH] fix: skipping open access points (fixes #463) --- pwnagotchi/agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/agent.py b/pwnagotchi/agent.py index 5b7c6ec..e1cfd15 100644 --- a/pwnagotchi/agent.py +++ b/pwnagotchi/agent.py @@ -170,7 +170,9 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer): s = self.session() plugins.on("unfiltered_ap_list", self, s['wifi']['aps']) for ap in s['wifi']['aps']: - if ap['hostname'] not in whitelist: + if ap['encryption'] == '' or ap['encryption'] == 'OPEN': + continue + elif ap['hostname'] not in whitelist: if self._filter_included(ap): aps.append(ap) except Exception as e: