File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from 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 "
2424REVISION = getRevisionNumber ()
2525STABLE = VERSION .count ('.' ) <= 2
2626VERSION_STRING = "sqlmap/%s#%s" % (VERSION , "stable" if STABLE else "dev" )
533533HASHDB_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
539539LARGE_OUTPUT_THRESHOLD = 1024 ** 2
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments