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

Skip to content

Commit 0901da3

Browse files
committed
Update for an Issue #1807
1 parent 8004652 commit 0901da3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from lib.core.revision import getRevisionNumber
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.0.4.13"
23+
VERSION = "1.0.4.14"
2424
REVISION = getRevisionNumber()
2525
STABLE = VERSION.count('.') <= 2
2626
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
@@ -533,7 +533,7 @@
533533
HASHDB_END_TRANSACTION_RETRIES = 3
534534

535535
# Unique milestone value used for forced deprecation of old HashDB values (e.g. when changing hash/pickle mechanism)
536-
HASHDB_MILESTONE_VALUE = "JHjrBugdDA" # "".join(random.sample(string.ascii_letters, 10))
536+
HASHDB_MILESTONE_VALUE = "WVMqopmuzX" # "".join(random.sample(string.ascii_letters, 10))
537537

538538
# Warn user of possible delay due to large page dump in full UNION query injections
539539
LARGE_OUTPUT_THRESHOLD = 1024 ** 2

lib/utils/hashdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def close(self):
6666
@staticmethod
6767
def hashKey(key):
6868
key = key.encode(UNICODE_ENCODING) if isinstance(key, unicode) else repr(key)
69-
retVal = int(hashlib.md5(key).hexdigest()[:12], 16)
69+
retVal = int(hashlib.md5(key).hexdigest(), 16) & 0x7fffffffffffffff # Reference: http://stackoverflow.com/a/4448400
7070
return retVal
7171

7272
def retrieve(self, key, unserialize=False):

0 commit comments

Comments
 (0)