mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Adding support for Mckoi
This commit is contained in:
parent
20700fd6b9
commit
60b642e2bd
25 changed files with 462 additions and 50 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue