mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-01 18:33:12 +03:00
minor update
This commit is contained in:
parent
a9bf0297f6
commit
22b3fa0749
|
@ -173,8 +173,17 @@ def __randomFillBlankFields(value):
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def __saveToHashDB():
|
def __saveToHashDB():
|
||||||
kb.injections = [_ for _ in kb.injections if _ and _.place is not None and _.parameter is not None]
|
injections = hashDBRetrieve(HASHDB_KEYS.KB_INJECTIONS, True) or []
|
||||||
hashDBWrite(HASHDB_KEYS.KB_INJECTIONS, kb.injections, True)
|
injections.extend(_ for _ in kb.injections if _ and _.place is not None and _.parameter is not None)
|
||||||
|
|
||||||
|
_ = dict()
|
||||||
|
for injection in injections:
|
||||||
|
key = (injection.place, injection.parameter, injection.ptype)
|
||||||
|
if key not in _:
|
||||||
|
_[key] = injection
|
||||||
|
else:
|
||||||
|
_[key].data.update(injection.data)
|
||||||
|
hashDBWrite(HASHDB_KEYS.KB_INJECTIONS, _.values(), True)
|
||||||
|
|
||||||
_ = hashDBRetrieve(HASHDB_KEYS.KB_ABS_FILE_PATHS, True) or set()
|
_ = hashDBRetrieve(HASHDB_KEYS.KB_ABS_FILE_PATHS, True) or set()
|
||||||
_.update(kb.absFilePaths)
|
_.update(kb.absFilePaths)
|
||||||
|
|
|
@ -124,15 +124,6 @@ def setOs():
|
||||||
if condition:
|
if condition:
|
||||||
dataToSessionFile("[%s][%s][%s][OS][%s]\n" % (conf.url, kb.injection.place, safeFormatString(conf.parameters[kb.injection.place]), Backend.getOs()))
|
dataToSessionFile("[%s][%s][%s][OS][%s]\n" % (conf.url, kb.injection.place, safeFormatString(conf.parameters[kb.injection.place]), Backend.getOs()))
|
||||||
|
|
||||||
def setRemoteTempPath():
|
|
||||||
condition = (
|
|
||||||
not kb.resumedQueries or ( kb.resumedQueries.has_key(conf.url) and
|
|
||||||
not kb.resumedQueries[conf.url].has_key("Remote temp path") )
|
|
||||||
)
|
|
||||||
|
|
||||||
if condition:
|
|
||||||
dataToSessionFile("[%s][%s][%s][Remote temp path][%s]\n" % (conf.url, kb.injection.place, safeFormatString(conf.parameters[kb.injection.place]), safeFormatString(conf.tmpPath)))
|
|
||||||
|
|
||||||
def setXpCmdshellAvailability(available):
|
def setXpCmdshellAvailability(available):
|
||||||
condition = (
|
condition = (
|
||||||
not kb.resumedQueries or ( kb.resumedQueries.has_key(conf.url) and
|
not kb.resumedQueries or ( kb.resumedQueries.has_key(conf.url) and
|
||||||
|
|
Loading…
Reference in New Issue
Block a user