mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
using pickle HIGHEST_PROTOCOL just in case
This commit is contained in:
parent
e6c610abab
commit
e827f41cdb
|
@ -33,7 +33,7 @@ def base64encode(value):
|
|||
return value.encode("base64")[:-1].replace("\n", "")
|
||||
|
||||
def base64pickle(value):
|
||||
return base64encode(pickle.dumps(value))
|
||||
return base64encode(pickle.dumps(value, pickle.HIGHEST_PROTOCOL))
|
||||
|
||||
def base64unpickle(value):
|
||||
return pickle.loads(base64decode(value))
|
||||
|
|
|
@ -446,8 +446,8 @@ DEFAULT_COOKIE_DELIMITER = ';'
|
|||
# Skip unforced HashDB flush requests below the threshold number of cached items
|
||||
HASHDB_FLUSH_THRESHOLD = 32
|
||||
|
||||
# Unique milestone value used for forced deprecation of old HashDB values (e.g. because of changing of load/store mechanism)
|
||||
HASHDB_MILESTONE_VALUE = "4SXDcCai5n" # r4853
|
||||
# Unique milestone value used for forced deprecation of old HashDB values (e.g. when changing hash/pickle mechanism)
|
||||
HASHDB_MILESTONE_VALUE = "EfjamfhMVw" # r4856
|
||||
|
||||
# Warn user of possible delay due to large page dump in full UNION query injections
|
||||
LARGE_OUTPUT_THRESHOLD = 1024**2
|
||||
|
|
Loading…
Reference in New Issue
Block a user