2.1.1: Option to ignore APs without clients (--clients-only or -co)

Requested in #79
This commit is contained in:
derv82
2018-04-06 17:25:31 -04:00
parent b716e6099f
commit 2b7870cb7c
3 changed files with 12 additions and 1 deletions

View File

@@ -237,6 +237,8 @@ class Airodump(object):
result = []
# Filter based on Encryption
for target in targets:
if Configuration.clients_only and len(target.clients) == 0:
continue
if 'WEP' in Configuration.encryption_filter and 'WEP' in target.encryption:
result.append(target)
elif 'WPA' in Configuration.encryption_filter and 'WPA' in target.encryption: