mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Minor reordering of what gets saved into the injection object
This commit is contained in:
parent
5ecb75cc56
commit
c44978862e
|
@ -404,10 +404,19 @@ def checkSqlInjection(place, parameter, value):
|
||||||
injection.suffix = suffix
|
injection.suffix = suffix
|
||||||
injection.clause = clause
|
injection.clause = clause
|
||||||
|
|
||||||
|
# Feed with test details every time a test is successful
|
||||||
|
if hasattr(test, "details"):
|
||||||
|
for dKey, dValue in test.details.items():
|
||||||
|
if dKey == "dbms":
|
||||||
|
injection.dbms = Backend.setDbms(dValue)
|
||||||
|
elif dKey == "dbms_version" and injection.dbms_version is None:
|
||||||
|
injection.dbms_version = Backend.setVersion(dValue)
|
||||||
|
elif dKey == "os" and injection.os is None:
|
||||||
|
injection.os = Backend.setOs(dValue)
|
||||||
|
|
||||||
if vector is None and "vector" in test and test.vector is not None:
|
if vector is None and "vector" in test and test.vector is not None:
|
||||||
vector = "%s%s" % (test.vector, comment)
|
vector = "%s%s" % (test.vector, comment)
|
||||||
|
|
||||||
# Feed with test details every time a test is successful
|
|
||||||
injection.data[stype] = advancedDict()
|
injection.data[stype] = advancedDict()
|
||||||
injection.data[stype].title = title
|
injection.data[stype].title = title
|
||||||
injection.data[stype].payload = agent.removePayloadDelimiters(reqPayload)
|
injection.data[stype].payload = agent.removePayloadDelimiters(reqPayload)
|
||||||
|
@ -421,15 +430,6 @@ def checkSqlInjection(place, parameter, value):
|
||||||
injection.conf.string = conf.string
|
injection.conf.string = conf.string
|
||||||
injection.conf.regexp = conf.regexp
|
injection.conf.regexp = conf.regexp
|
||||||
|
|
||||||
if hasattr(test, "details"):
|
|
||||||
for dKey, dValue in test.details.items():
|
|
||||||
if dKey == "dbms":
|
|
||||||
injection.dbms = Backend.setDbms(dValue)
|
|
||||||
elif dKey == "dbms_version" and injection.dbms_version is None:
|
|
||||||
injection.dbms_version = Backend.setVersion(dValue)
|
|
||||||
elif dKey == "os" and injection.os is None:
|
|
||||||
injection.os = Backend.setOs(dValue)
|
|
||||||
|
|
||||||
if conf.beep or conf.realTest:
|
if conf.beep or conf.realTest:
|
||||||
beep()
|
beep()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user