Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85365d7

Browse files
committed
Fixes #3633
1 parent 321cdde commit 85365d7

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

lib/core/common.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3532,9 +3532,6 @@ def unhandledExceptionMessage():
35323532
def getLatestRevision():
35333533
"""
35343534
Retrieves latest revision from the offical repository
3535-
3536-
>>> (getLatestRevision() or " ")[0].isdigit()
3537-
True
35383535
"""
35393536

35403537
retVal = None

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty import six
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.5.31"
21+
VERSION = "1.3.5.32"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/hash.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -917,15 +917,15 @@ def dictionaryAttack(attack_dict):
917917
hash_ = hash_.lower()
918918

919919
if hash_regex in (HASH.MD5_BASE64, HASH.SHA1_BASE64, HASH.SHA256_BASE64, HASH.SHA512_BASE64):
920-
item = [(user, decodeBase64(hash_, binary=False).encode("hex")), {}]
920+
item = [(user, encodeHex(decodeBase64(hash_, binary=True))), {}]
921921
elif hash_regex in (HASH.MYSQL, HASH.MYSQL_OLD, HASH.MD5_GENERIC, HASH.SHA1_GENERIC, HASH.SHA224_GENERIC, HASH.SHA256_GENERIC, HASH.SHA384_GENERIC, HASH.SHA512_GENERIC, HASH.APACHE_SHA1):
922922
item = [(user, hash_), {}]
923923
elif hash_regex in (HASH.SSHA,):
924-
item = [(user, hash_), {"salt": decodeBase64(hash_, binary=False)[20:]}]
924+
item = [(user, hash_), {"salt": decodeBase64(hash_, binary=True)[20:]}]
925925
elif hash_regex in (HASH.SSHA256,):
926-
item = [(user, hash_), {"salt": decodeBase64(hash_, binary=False)[32:]}]
926+
item = [(user, hash_), {"salt": decodeBase64(hash_, binary=True)[32:]}]
927927
elif hash_regex in (HASH.SSHA512,):
928-
item = [(user, hash_), {"salt": decodeBase64(hash_, binary=False)[64:]}]
928+
item = [(user, hash_), {"salt": decodeBase64(hash_, binary=True)[64:]}]
929929
elif hash_regex in (HASH.ORACLE_OLD, HASH.POSTGRES):
930930
item = [(user, hash_), {'username': user}]
931931
elif hash_regex in (HASH.ORACLE,):

0 commit comments

Comments
 (0)