mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Done with support for injection in ORDER BY and GROUP BY (hopefully)
This commit is contained in:
@@ -155,14 +155,14 @@ class Agent:
|
||||
# payload, do not put a space after the prefix
|
||||
if kb.technique == 4:
|
||||
query = kb.injection.prefix
|
||||
elif kb.injection.clause == [2, 3] or kb.injection.clause == [ 2 ]:
|
||||
if kb.technique != 3:
|
||||
query = kb.injection.prefix
|
||||
elif kb.technique and kb.technique in kb.injection.data:
|
||||
where = kb.injection.data[kb.technique].where
|
||||
|
||||
if where == 3:
|
||||
query = kb.injection.prefix
|
||||
elif kb.injection.clause == [2, 3] or kb.injection.clause == [ 2 ]:
|
||||
if kb.technique != 3:
|
||||
query = kb.injection.prefix
|
||||
|
||||
if query is None:
|
||||
query = "%s " % kb.injection.prefix
|
||||
@@ -212,6 +212,12 @@ class Agent:
|
||||
|
||||
payload = payload.replace("[ORIGVALUE]", origvalue)
|
||||
|
||||
if kb.dbms is not None:
|
||||
# NOTE: ugly hack due to queries.xml's <inference> tag
|
||||
# starting with 'AND ' string
|
||||
inferenceQuery = queries[kb.dbms].inference.query[4:]
|
||||
payload = payload.replace("[INFERENCE]", inferenceQuery)
|
||||
|
||||
return payload
|
||||
|
||||
def getComment(self, reqObj):
|
||||
|
||||
Reference in New Issue
Block a user