mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-27 09:59:07 +00:00
Better naming
This commit is contained in:
@@ -363,17 +363,17 @@ def checkSqlInjection(place, parameter, value):
|
||||
injection.suffix = suffix
|
||||
injection.clause = clause
|
||||
|
||||
if "epayload" in test and test.epayload is not None:
|
||||
epayload = "%s%s" % (test.epayload, comment)
|
||||
if "vector" in test and test.vector is not None:
|
||||
vector = "%s%s" % (test.vector, comment)
|
||||
else:
|
||||
epayload = None
|
||||
vector = None
|
||||
|
||||
# Feed with test details every time a test is successful
|
||||
injection.data[stype] = advancedDict()
|
||||
injection.data[stype].title = title
|
||||
injection.data[stype].payload = agent.removePayloadDelimiters(reqPayload, False)
|
||||
injection.data[stype].where = where
|
||||
injection.data[stype].epayload = epayload
|
||||
injection.data[stype].vector = vector
|
||||
injection.data[stype].comment = comment
|
||||
|
||||
if "details" in test:
|
||||
|
||||
@@ -98,8 +98,8 @@ def __goInferenceProxy(expression, fromUser=False, expected=None, batch=False, r
|
||||
parameter through a bisection algorithm.
|
||||
"""
|
||||
|
||||
if kb.injection.data[1].epayload is not None:
|
||||
vector = agent.cleanupPayload(kb.injection.data[1].epayload)
|
||||
if kb.injection.data[1].vector is not None:
|
||||
vector = agent.cleanupPayload(kb.injection.data[1].vector)
|
||||
else:
|
||||
vector = queries[kb.misc.testedDbms].inference.query
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ def errorUse(expression):
|
||||
"""
|
||||
|
||||
output = None
|
||||
query = agent.cleanupPayload(kb.injection.data[2].epayload)
|
||||
query = unescaper.unescape(query)
|
||||
vector = agent.cleanupPayload(kb.injection.data[2].vector)
|
||||
query = unescaper.unescape(vector)
|
||||
query = agent.prefixQuery(query)
|
||||
query = agent.suffixQuery(query)
|
||||
check = "%s(?P<result>.*?)%s" % (kb.misc.start, kb.misc.stop)
|
||||
|
||||
Reference in New Issue
Block a user