MCPcopy
hub / github.com/derv82/wifite2 / parse_encryption

Method parse_encryption

wifite/config.py:388–403  ·  view source on GitHub ↗

Adjusts encryption filter (WEP and/or WPA and/or WPS)

(cls)

Source from the content-addressed store, hash-verified

386
387 @classmethod
388 def parse_encryption(cls):
389 '''Adjusts encryption filter (WEP and/or WPA and/or WPS)'''
390 cls.encryption_filter = []
391 if cls.wep_filter: cls.encryption_filter.append('WEP')
392 if cls.wpa_filter: cls.encryption_filter.append('WPA')
393 if cls.wps_filter: cls.encryption_filter.append('WPS')
394
395 if len(cls.encryption_filter) == 3:
396 Color.pl('{+} {C}option:{W} targeting {G}all encrypted networks{W}')
397 elif len(cls.encryption_filter) == 0:
398 # Default to scan all types
399 cls.encryption_filter = ['WEP', 'WPA', 'WPS']
400 else:
401 Color.pl('{+} {C}option:{W} ' +
402 'targeting {G}%s-encrypted{W} networks'
403 % '/'.join(cls.encryption_filter))
404
405 @classmethod
406 def parse_wep_attacks(cls):

Callers 1

load_from_argumentsMethod · 0.80

Calls 1

plMethod · 0.80

Tested by

no test coverage detected