From da51e8a9d1da6b1d1fb3f2828ddcf988ec54f349 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 21 Nov 2011 21:55:05 +0000 Subject: [PATCH] minor fix --- lib/utils/hash.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index b55087430..268dd1282 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -453,8 +453,8 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr except KeyboardInterrupt: raise - except Exception, msg: - print msg + except Exception, ex: + print ex warnMsg = "there was a problem while hashing entry: %s. " % repr(word) warnMsg += "Please report by e-mail to %s" % ML logger.critical(warnMsg) @@ -516,7 +516,8 @@ def __bruteProcessVariantB(user, hash_, kwargs, hash_regex, wordlist, suffix, re except KeyboardInterrupt: raise - except: + except Exception, ex: + print ex warnMsg = "there was a problem while hashing entry: %s. " % repr(word) warnMsg += "Please report by e-mail to %s" % ML logger.critical(warnMsg)