Refactor WPA handshake capture

TODO: Argument to ignore old handshakes
This commit is contained in:
derv82
2018-02-27 20:33:24 -05:00
parent 0c5558fb74
commit 562bf438bf
3 changed files with 99 additions and 79 deletions

View File

@@ -85,10 +85,10 @@ class Scanner(object):
return False
for target in self.targets:
if bssid and bssid.lower() == target.bssid.lower():
if bssid and target.bssid and bssid.lower() == target.bssid.lower():
self.target = target
break
if essid and essid.lower() == target.essid.lower():
if essid and target.essid and essid.lower() == target.essid.lower():
self.target = target
break