Add support to whitelist by MAC and MAC vendor
This commit is contained in:
parent
94521f2174
commit
1130c72098
pwnagotchi
@ -176,7 +176,9 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
|
|||||||
for ap in s['wifi']['aps']:
|
for ap in s['wifi']['aps']:
|
||||||
if ap['encryption'] == '' or ap['encryption'] == 'OPEN':
|
if ap['encryption'] == '' or ap['encryption'] == 'OPEN':
|
||||||
continue
|
continue
|
||||||
elif ap['hostname'] not in whitelist:
|
elif ap['hostname'] not in whitelist \
|
||||||
|
and ap['mac'].lower() not in whitelist \
|
||||||
|
and ap['mac'][:8].lower() not in whitelist:
|
||||||
if self._filter_included(ap):
|
if self._filter_included(ap):
|
||||||
aps.append(ap)
|
aps.append(ap)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
@ -119,10 +119,12 @@ main:
|
|||||||
mon_max_blind_epochs: 50
|
mon_max_blind_epochs: 50
|
||||||
# if true, will not restart the wifi module
|
# if true, will not restart the wifi module
|
||||||
no_restart: false
|
no_restart: false
|
||||||
# access points to ignore
|
# access points to ignore. Could be the ssid, bssid or the vendor part of bssid.
|
||||||
whitelist:
|
whitelist:
|
||||||
- EXAMPLE_NETWORK
|
- EXAMPLE_NETWORK
|
||||||
- ANOTHER_EXAMPLE_NETWORK
|
- ANOTHER_EXAMPLE_NETWORK
|
||||||
|
- fo:od:ba:be:fo:od # BSSID
|
||||||
|
- fo:od:ba # Vendor BSSID
|
||||||
# if not null, filter access points by this regular expression
|
# if not null, filter access points by this regular expression
|
||||||
filter: null
|
filter: null
|
||||||
# logging
|
# logging
|
||||||
|
Loading…
x
Reference in New Issue
Block a user