mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Fixes #1443
This commit is contained in:
parent
1258b354c3
commit
b98f84a610
|
@ -716,7 +716,11 @@ def dictionaryAttack(attack_dict):
|
||||||
elif hash_regex in (HASH.CRYPT_GENERIC,):
|
elif hash_regex in (HASH.CRYPT_GENERIC,):
|
||||||
item = [(user, hash_), {'salt': hash_[0:2]}]
|
item = [(user, hash_), {'salt': hash_[0:2]}]
|
||||||
elif hash_regex in (HASH.WORDPRESS,):
|
elif hash_regex in (HASH.WORDPRESS,):
|
||||||
item = [(user, hash_), {'salt': hash_[4:12], 'count': 1 << ITOA64.index(hash_[3]), 'prefix': hash_[:12]}]
|
if ITOA64.index(hash_[3]) < 32:
|
||||||
|
item = [(user, hash_), {'salt': hash_[4:12], 'count': 1 << ITOA64.index(hash_[3]), 'prefix': hash_[:12]}]
|
||||||
|
else:
|
||||||
|
warnMsg = "invalid hash '%s'" % hash_
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
if item and hash_ not in keys:
|
if item and hash_ not in keys:
|
||||||
resumed = hashDBRetrieve(hash_)
|
resumed = hashDBRetrieve(hash_)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user