Adjusts encryption filter (WEP and/or WPA and/or WPS)
(cls)
| 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): |