Always print stack traces for errors during WEP attack

Should make troubleshooting #27 easier.
This commit is contained in:
derv82
2018-03-11 01:49:41 -05:00
parent 697207f11b
commit 93af516c45
3 changed files with 13 additions and 3 deletions

View File

@@ -131,9 +131,9 @@ class Wifite(object):
result = False
try:
result = attack.run()
except Exception, e:
except Exception as e:
Color.pl("\n{!} {R}Error: {O}%s" % str(e))
if Configuration.verbose > 0 or True:
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{!} ')