From 704e1a4e74fb312c48d0534b65ba4ee22a2cae04 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 21 Nov 2011 22:19:52 +0000 Subject: [PATCH] minor minor update --- lib/utils/hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index d77ab72eb..fa05921fe 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -454,7 +454,7 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr except KeyboardInterrupt: raise - except UnicodeEncodeError: + except (UnicodeEncodeError, UnicodeDecodeError): pass # ignore possible encoding problems caused by some words in custom dictionaries except Exception, ex: @@ -520,7 +520,7 @@ def __bruteProcessVariantB(user, hash_, kwargs, hash_regex, wordlist, suffix, re except KeyboardInterrupt: raise - except UnicodeEncodeError: + except (UnicodeEncodeError, UnicodeDecodeError): pass # ignore possible encoding problems caused by some words in custom dictionaries except Exception, ex: