mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
introducing safe deprecation mechanism for HashDB versioning
This commit is contained in:
parent
48bcde478e
commit
cda8815634
3 changed files with 21 additions and 23 deletions
|
|
@ -89,6 +89,7 @@ from lib.core.settings import DESCRIPTION
|
|||
from lib.core.settings import DUMMY_SQL_INJECTION_CHARS
|
||||
from lib.core.settings import FORMATTER
|
||||
from lib.core.settings import NULL
|
||||
from lib.core.settings import HASHDB_MILESTONE_VALUE
|
||||
from lib.core.settings import IS_WIN
|
||||
from lib.core.settings import PLATFORM
|
||||
from lib.core.settings import PYVERSION
|
||||
|
|
@ -3187,7 +3188,7 @@ def hashDBWrite(key, value, serialize=False):
|
|||
Helper function for writing session data to HashDB
|
||||
"""
|
||||
|
||||
_ = "%s%s" % (conf.url or "%s%s" % (conf.hostname, conf.port), key)
|
||||
_ = "%s%s%s" % (conf.url or "%s%s" % (conf.hostname, conf.port), key, HASHDB_MILESTONE_VALUE)
|
||||
conf.hashDB.write(_, value, serialize)
|
||||
|
||||
def hashDBRetrieve(key, unserialize=False, checkConf=False):
|
||||
|
|
@ -3195,7 +3196,7 @@ def hashDBRetrieve(key, unserialize=False, checkConf=False):
|
|||
Helper function for restoring session data from HashDB
|
||||
"""
|
||||
|
||||
_ = "%s%s" % (conf.url or "%s%s" % (conf.hostname, conf.port), key)
|
||||
_ = "%s%s%s" % (conf.url or "%s%s" % (conf.hostname, conf.port), key, HASHDB_MILESTONE_VALUE)
|
||||
return conf.hashDB.retrieve(_, unserialize) if kb.resumeValues and not (checkConf and any([conf.flushSession, conf.freshQueries])) else None
|
||||
|
||||
def resetCookieJar(cookieJar):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue