MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / hashDBRetrieve

Function hashDBRetrieve

lib/core/common.py:5067–5081  ·  view source on GitHub ↗

Helper function for restoring session data from HashDB

(key, unserialize=False, checkConf=False)

Source from the content-addressed store, hash-verified

5065 conf.hashDB.write(_, value, serialize)
5066
5067def hashDBRetrieve(key, unserialize=False, checkConf=False):
5068 """
5069 Helper function for restoring session data from HashDB
5070 """
5071
5072 retVal = None
5073
5074 if conf.hashDB:
5075 _ = '|'.join((str(_) if not isinstance(_, six.string_types) else _) for _ in (conf.hostname, conf.path.strip('/') if conf.path is not None else conf.port, key, HASHDB_MILESTONE_VALUE))
5076 retVal = conf.hashDB.retrieve(_, unserialize) if kb.resumeValues and not (checkConf and any((conf.flushSession, conf.freshQueries))) else None
5077
5078 if not kb.inferenceMode and not kb.fileReadMode and isinstance(retVal, six.string_types) and any(_ in retVal for _ in (PARTIAL_VALUE_MARKER, PARTIAL_HEX_VALUE_MARKER)):
5079 retVal = None
5080
5081 return retVal
5082
5083def resetCookieJar(cookieJar):
5084 """

Callers 15

dictionaryAttackFunction · 0.90
_saveToHashDBFunction · 0.90
checkWafFunction · 0.90
checkNullConnectionFunction · 0.90
_goBooleanProxyFunction · 0.90
directFunction · 0.90
adjustLateValuesMethod · 0.90
_resumeHashDBValuesFunction · 0.90
_resumeDBMSFunction · 0.90
_resumeOSFunction · 0.90
_oneShotUnionUseFunction · 0.90
dnsUseFunction · 0.90

Calls 1

retrieveMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…