Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da51e8a

Browse files
committed
minor fix
1 parent eee0387 commit da51e8a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/utils/hash.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr
453453
except KeyboardInterrupt:
454454
raise
455455

456-
except Exception, msg:
457-
print msg
456+
except Exception, ex:
457+
print ex
458458
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
459459
warnMsg += "Please report by e-mail to %s" % ML
460460
logger.critical(warnMsg)
@@ -516,7 +516,8 @@ def __bruteProcessVariantB(user, hash_, kwargs, hash_regex, wordlist, suffix, re
516516
except KeyboardInterrupt:
517517
raise
518518

519-
except:
519+
except Exception, ex:
520+
print ex
520521
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
521522
warnMsg += "Please report by e-mail to %s" % ML
522523
logger.critical(warnMsg)

0 commit comments

Comments
 (0)