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

Method parse_wep_args

wifite/config.py:239–276  ·  view source on GitHub ↗

Parses WEP-specific arguments

(cls, args)

Source from the content-addressed store, hash-verified

237
238 @classmethod
239 def parse_wep_args(cls, args):
240 '''Parses WEP-specific arguments'''
241 if args.wep_filter:
242 cls.wep_filter = args.wep_filter
243
244 if args.wep_pps:
245 cls.wep_pps = args.wep_pps
246 Color.pl('{+} {C}option:{W} using {G}%d{W} packets/sec on WEP attacks' % (
247 args.wep_pps))
248
249 if args.wep_timeout:
250 cls.wep_timeout = args.wep_timeout
251 Color.pl('{+} {C}option:{W} WEP attack timeout set to ' +
252 '{G}%d seconds{W}' % args.wep_timeout)
253
254 if args.require_fakeauth:
255 cls.require_fakeauth = True
256 Color.pl('{+} {C}option:{W} fake-authentication is ' +
257 '{G}required{W} for WEP attacks')
258
259 if args.wep_crack_at_ivs:
260 cls.wep_crack_at_ivs = args.wep_crack_at_ivs
261 Color.pl('{+} {C}option:{W} will start cracking WEP keys at ' +
262 '{G}%d IVs{W}' % args.wep_crack_at_ivs)
263
264 if args.wep_restart_stale_ivs:
265 cls.wep_restart_stale_ivs = args.wep_restart_stale_ivs
266 Color.pl('{+} {C}option:{W} will restart aireplay after ' +
267 '{G}%d seconds{W} of no new IVs' % args.wep_restart_stale_ivs)
268
269 if args.wep_restart_aircrack:
270 cls.wep_restart_aircrack = args.wep_restart_aircrack
271 Color.pl('{+} {C}option:{W} will restart aircrack every ' +
272 '{G}%d seconds{W}' % args.wep_restart_aircrack)
273
274 if args.wep_keep_ivs:
275 cls.wep_keep_ivs = args.wep_keep_ivs
276 Color.pl('{+} {C}option:{W} keep .ivs files across multiple WEP attacks')
277
278 @classmethod
279 def parse_wpa_args(cls, args):

Callers 1

load_from_argumentsMethod · 0.80

Calls 1

plMethod · 0.80

Tested by

no test coverage detected