Merge pull request #711 from dadav/fix/bugs
Unknown variable; Logic error
This commit is contained in:
commit
dbb64e0fab
@ -212,7 +212,7 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
|
|||||||
ch = ap['channel']
|
ch = ap['channel']
|
||||||
# if we're sticking to a channel, skip anything
|
# if we're sticking to a channel, skip anything
|
||||||
# which is not on that channel
|
# which is not on that channel
|
||||||
if not channels and ch not in channels:
|
if not channels or (channels and ch not in channels):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if ch not in grouped:
|
if ch not in grouped:
|
||||||
|
@ -20,7 +20,7 @@ class Automata(object):
|
|||||||
# when we're trying to associate or deauth something that is not in range anymore
|
# when we're trying to associate or deauth something that is not in range anymore
|
||||||
# (if we are moving), we get the following error from bettercap:
|
# (if we are moving), we get the following error from bettercap:
|
||||||
# error 400: 50:c7:bf:2e:d3:37 is an unknown BSSID or it is in the association skip list.
|
# error 400: 50:c7:bf:2e:d3:37 is an unknown BSSID or it is in the association skip list.
|
||||||
if 'is an unknown BSSID' in str(error):
|
if 'is an unknown BSSID' in str(e):
|
||||||
self._on_miss(who)
|
self._on_miss(who)
|
||||||
else:
|
else:
|
||||||
logging.error(e)
|
logging.error(e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user