Fix for an Issue #902

This commit is contained in:
Miroslav Stampar 2014-11-05 09:56:50 +01:00
parent 97cc679f9c
commit 78cc3853b6

View File

@ -665,7 +665,7 @@ def dictionaryAttack(attack_dict):
if not hash_: if not hash_:
continue continue
hash_ = hash_.split()[0] hash_ = hash_.split()[0] if hash_ and hash_.strip() else hash_
regex = hashRecognition(hash_) regex = hashRecognition(hash_)
if regex and regex not in hash_regexes: if regex and regex not in hash_regexes:
@ -682,7 +682,7 @@ def dictionaryAttack(attack_dict):
if not hash_: if not hash_:
continue continue
hash_ = hash_.split()[0] hash_ = hash_.split()[0] if hash_ and hash_.strip() else hash_
if re.match(hash_regex, hash_): if re.match(hash_regex, hash_):
item = None item = None