From 1672a35f095769b60c4e004a6f2066b1bec23501 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Wed, 17 Jan 2024 18:28:53 +0100 Subject: [PATCH] Changed MAC check for whitelist upto last 2 characters. --- pwnagotchi/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/agent.py b/pwnagotchi/agent.py index 675c0a83..28d9bec4 100644 --- a/pwnagotchi/agent.py +++ b/pwnagotchi/agent.py @@ -184,7 +184,7 @@ def get_access_points(self): for ap in s['wifi']['aps']: if ap['encryption'] == '' or ap['encryption'] == 'OPEN': continue - elif ap['hostname'] in whitelist or ap['mac'][:13].lower() in whitelist: + elif ap['hostname'] in whitelist or ap['mac'][:8].lower() in whitelist: continue elif ap['hostname'] not in whitelist \ and ap['mac'].lower() not in whitelist \