From 9c3c9a9315a01c08c8505b59188d22faa855f3c8 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 31 Oct 2017 11:39:12 +0100 Subject: [PATCH] Minor bug 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 2cd6934e7..675ed52c0 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -913,7 +913,7 @@ def dictionaryAttack(attack_dict): item = [(user, hash_), {"salt": hash_.split('$')[2], "magic": "$%s$" % hash_.split('$')[1]}] elif hash_regex in (HASH.JOOMLA, HASH.VBULLETIN, HASH.VBULLETIN_OLD): item = [(user, hash_), {"salt": hash_.split(':')[-1]}] - elif hash_regex in (HASH.DJANGO_MD5, DJANGO_SHA1): + elif hash_regex in (HASH.DJANGO_MD5, HASH.DJANGO_SHA1): item = [(user, hash_), {"salt": hash_.split('$')[1]}] elif hash_regex in (HASH.WORDPRESS,): if ITOA64.index(hash_[3]) < 32: