Skip to content

Commit

Permalink
Changed MAC check for whitelist upto last 2 characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayofelony committed Jan 17, 2024
1 parent 80e7e6c commit 1672a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnagotchi/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 1672a35

Please sign in to comment.