mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 14:11:29 +00:00
Massive renaming (proper naming is inband = union & error techniques! - query naming stays as they are/in code things like forgeInbandQuery are renamed to forgeUnionQuery)
This commit is contained in:
@@ -436,7 +436,7 @@ def checkSqlInjection(place, parameter, value):
|
||||
# Test for UNION injection and set the sample
|
||||
# payload as well as the vector.
|
||||
# NOTE: vector is set to a tuple with 6 elements,
|
||||
# used afterwards by Agent.forgeInbandQuery()
|
||||
# used afterwards by Agent.forgeUnionQuery()
|
||||
# method to forge the UNION query payload
|
||||
|
||||
configUnion(test.request.char, test.request.columns)
|
||||
|
||||
@@ -133,7 +133,7 @@ def __formatInjection(inj):
|
||||
if stype == PAYLOAD.TECHNIQUE.UNION:
|
||||
count = re.sub(r"(?i)(\(.+\))|(\blimit[^A-Za-z]+)", "", sdata.payload).count(',') + 1
|
||||
title = re.sub(r"\d+ to \d+", str(count), title)
|
||||
vector = agent.forgeInbandQuery("[QUERY]", vector[0], vector[1], vector[2], None, None, vector[5], vector[6])
|
||||
vector = agent.forgeUnionQuery("[QUERY]", vector[0], vector[1], vector[2], None, None, vector[5], vector[6])
|
||||
if count == 1:
|
||||
title = title.replace("columns", "column")
|
||||
elif comment:
|
||||
|
||||
Reference in New Issue
Block a user