From ed2aed972f15437983ae2764ae0d03cf19808a28 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 7 Jan 2011 17:38:28 +0000 Subject: [PATCH] minor fix --- lib/utils/hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/hash.py b/lib/utils/hash.py index 1390f0145..ba4acade0 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -288,7 +288,7 @@ def dictionaryAttack(attack_dict): hash_ = hash_.split()[0] regex = hashRecognition(hash_) - if regex not in hash_regexes: + if regex and regex not in hash_regexes: hash_regexes.append(regex) infoMsg = "using hash method: '%s'" % __functions__[regex].func_name logger.info(infoMsg)