mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 16:24:25 +03:00
bug fix for writing raw pickled data into SQLite HashDB
This commit is contained in:
parent
cd28eb6544
commit
98a3e43f53
|
@ -54,6 +54,8 @@ from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
from lib.core.data import paths
|
from lib.core.data import paths
|
||||||
|
from lib.core.convert import base64pickle
|
||||||
|
from lib.core.convert import base64unpickle
|
||||||
from lib.core.convert import htmlunescape
|
from lib.core.convert import htmlunescape
|
||||||
from lib.core.convert import unicodeencode
|
from lib.core.convert import unicodeencode
|
||||||
from lib.core.convert import urldecode
|
from lib.core.convert import urldecode
|
||||||
|
@ -3071,7 +3073,7 @@ def serializeObject(object_):
|
||||||
Serializes given object
|
Serializes given object
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return pickle.dumps(object_)
|
return base64pickle(object_)
|
||||||
|
|
||||||
def unserializeObject(value):
|
def unserializeObject(value):
|
||||||
"""
|
"""
|
||||||
|
@ -3080,7 +3082,7 @@ def unserializeObject(value):
|
||||||
|
|
||||||
retVal = None
|
retVal = None
|
||||||
if value:
|
if value:
|
||||||
retVal = pickle.loads(value.encode(UNICODE_ENCODING)) # pickle has problems with Unicode
|
retVal = base64unpickle(value)
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def resetCounter(technique):
|
def resetCounter(technique):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user