mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
Patch for an Issue #929
This commit is contained in:
parent
671facc6d9
commit
74eacf95fd
|
@ -41,6 +41,7 @@ def base64pickle(value):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
retVal = None
|
retVal = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
retVal = base64encode(pickle.dumps(value, pickle.HIGHEST_PROTOCOL))
|
retVal = base64encode(pickle.dumps(value, pickle.HIGHEST_PROTOCOL))
|
||||||
except:
|
except:
|
||||||
|
@ -63,7 +64,14 @@ def base64unpickle(value):
|
||||||
'foobar'
|
'foobar'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return pickle.loads(base64decode(value))
|
retVal = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
retVal = pickle.loads(base64decode(value))
|
||||||
|
except TypeError:
|
||||||
|
retVal = pickle.loads(base64decode(bytes(value)))
|
||||||
|
|
||||||
|
return retVal
|
||||||
|
|
||||||
def hexdecode(value):
|
def hexdecode(value):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user