Crack results can be saved or loaded.

Although they're not saved or loaded at this time. :(
Also, BANNER!
This commit is contained in:
derv82
2015-06-04 00:52:36 -07:00
parent 9b7cc7fb8d
commit 1078a4d5de
13 changed files with 223 additions and 23 deletions

View File

@@ -192,8 +192,9 @@ class Airodump(object):
@staticmethod
def filter_targets(targets):
''' Filters targets based on encryption defined in Configuration '''
''' Filters targets based on Configuration '''
result = []
# Filter based on Encryption
for target in targets:
if 'WEP' in Configuration.encryption_filter and \
'WEP' in target.encryption:
@@ -204,6 +205,19 @@ class Airodump(object):
elif 'WPS' in Configuration.encryption_filter and \
target.wps:
result.append(target)
# Filter based on BSSID/ESSID
bssid = Configuration.target_bssid
essid = Configuration.target_essid
i = 0
while i < len(result):
if bssid and result[i].bssid.lower() != bssid.lower():
result.pop(i)
continue
if essid and result[i].essid.lower() != essid.lower():
result.pop(i)
continue
i += 1
return result