Always print stack traces for errors during WEP attack
Should make troubleshooting #27 easier.
This commit is contained in:
@@ -223,7 +223,16 @@ class AttackWEP(Attack):
|
||||
self.success = False
|
||||
return self.success
|
||||
except Exception as e:
|
||||
Color.pl("\n{+} {R}Error: {O}%s{W}" % e)
|
||||
Color.pl("\n{!} {R}Error: {O}%s" % str(e))
|
||||
if Configuration.verbose > 0 or Configuration.print_stack_traces:
|
||||
Color.pl('\n{!} {O}Full stack trace below')
|
||||
from traceback import format_exc
|
||||
Color.p('\n{!} ')
|
||||
err = format_exc().strip()
|
||||
err = err.replace('\n', '\n{!} {C} ')
|
||||
err = err.replace(' File', '{W}File')
|
||||
err = err.replace(' Exception: ', '{R}Exception: {O}')
|
||||
Color.pl(err)
|
||||
continue
|
||||
# End of big try-catch
|
||||
# End of for-each-attack-type loop
|
||||
|
||||
@@ -27,6 +27,7 @@ class Configuration(object):
|
||||
Configuration.initialized = True
|
||||
|
||||
Configuration.verbose = 0 # Verbosity level.
|
||||
Configuration.print_stack_traces = True
|
||||
|
||||
Configuration.kill_conflicting_processes = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user