6
6
from .wash import Wash
7
7
from ..util .process import Process
8
8
from ..config import Configuration
9
- from ..model .target import Target
9
+ from ..model .target import Target , WPSState
10
10
from ..model .client import Client
11
11
12
12
import os , time
@@ -17,8 +17,9 @@ class Airodump(Dependency):
17
17
dependency_name = 'airodump-ng'
18
18
dependency_url = 'https://www.aircrack-ng.org/install.html'
19
19
20
- def __init__ (self , interface = None , channel = None , encryption = None ,
21
- wps = False , target_bssid = None , output_file_prefix = 'airodump' ,
20
+ def __init__ (self , interface = None , channel = None , encryption = None ,\
21
+ wps = WPSState .UNKNOWN , target_bssid = None ,
22
+ output_file_prefix = 'airodump' ,\
22
23
ivs_only = False , skip_wps = False , delete_existing_files = True ):
23
24
'''Sets up airodump arguments, doesn't start process yet.'''
24
25
@@ -260,7 +261,7 @@ def filter_targets(targets, skip_wps=False):
260
261
result .append (target )
261
262
elif 'WPA' in Configuration .encryption_filter and 'WPA' in target .encryption :
262
263
result .append (target )
263
- elif 'WPS' in Configuration .encryption_filter and target .wps != False :
264
+ elif 'WPS' in Configuration .encryption_filter and target .wps in [ WPSState . UNLOCKED , WPSState . LOCKED ] :
264
265
result .append (target )
265
266
elif skip_wps :
266
267
result .append (target )
0 commit comments