2.1.1: Option to ignore APs without clients (--clients-only or -co)
Requested in #79
This commit is contained in:
@@ -12,7 +12,7 @@ class Configuration(object):
|
||||
|
||||
initialized = False # Flag indicating config has been initialized
|
||||
temp_dir = None # Temporary directory
|
||||
version = '2.1.0'
|
||||
version = '2.1.1'
|
||||
|
||||
@staticmethod
|
||||
def initialize(load_interface=True):
|
||||
@@ -40,6 +40,7 @@ class Configuration(object):
|
||||
Configuration.target_essid = None # User-defined AP name
|
||||
Configuration.target_bssid = None # User-defined AP BSSID
|
||||
Configuration.ignore_essid = None # ESSIDs to ignore
|
||||
Configuration.clients_only = False # Only show targets that have associated clients
|
||||
Configuration.five_ghz = False # Scan 5Ghz channels
|
||||
Configuration.show_bssids = False # Show BSSIDs in targets list
|
||||
Configuration.random_mac = False # Should generate a random Mac address at startup.
|
||||
@@ -150,6 +151,9 @@ class Configuration(object):
|
||||
if args.ignore_essid is not None:
|
||||
Configuration.ignore_essid = args.ignore_essid
|
||||
Color.pl('{+} {C}option:{W} {O}ignoring ESSIDs that include {R}%s{W}' % args.ignore_essid)
|
||||
if args.clients_only == True:
|
||||
Configuration.clients_only = True
|
||||
Color.pl('{+} {C}option:{W} {O}ignoring targets that do not have associated clients')
|
||||
if args.scan_time:
|
||||
Configuration.scan_time = args.scan_time
|
||||
Color.pl('{+} {C}option:{W} ({G}pillage{W}) attack all targets after {G}%d{W}s' % args.scan_time)
|
||||
|
||||
Reference in New Issue
Block a user