From 80e7e6c550d47fc4da7caa1a116b3dec4e89ad1e Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Wed, 17 Jan 2024 18:26:45 +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 490389d3..675c0a83 100644 --- a/pwnagotchi/agent.py +++ b/pwnagotchi/agent.py @@ -184,7 +184,7 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer): for ap in s['wifi']['aps']: if ap['encryption'] == '' or ap['encryption'] == 'OPEN': continue - elif ap['hostname'] in whitelist or ap['mac'].lower() in whitelist: + elif ap['hostname'] in whitelist or ap['mac'][:13].lower() in whitelist: continue elif ap['hostname'] not in whitelist \ and ap['mac'].lower() not in whitelist \