mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Adding support for Mckoi
This commit is contained in:
@@ -108,6 +108,14 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||
|
||||
return 0, retVal
|
||||
|
||||
if Backend.isDbms(DBMS.MCKOI):
|
||||
match = re.search(r"\ASELECT\b(.+)\bFROM\b(.+)\Z", expression, re.I)
|
||||
if match:
|
||||
original = queries[Backend.getIdentifiedDbms()].inference.query
|
||||
right = original.split('<')[1]
|
||||
payload = payload.replace(right, "(SELECT %s FROM %s)" % (right, match.group(2).strip()))
|
||||
expression = match.group(1).strip()
|
||||
|
||||
try:
|
||||
# Set kb.partRun in case "common prediction" feature (a.k.a. "good samaritan") is used or the engine is called from the API
|
||||
if conf.predictOutput:
|
||||
|
||||
Reference in New Issue
Block a user