mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
SQLite does not support BETWEEN
This commit is contained in:
parent
b2c5807109
commit
9efe001515
|
@ -158,17 +158,17 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
posValueOld = posValue
|
posValueOld = posValue
|
||||||
posValue = chr(posValue)
|
posValue = chr(posValue)
|
||||||
|
|
||||||
if not conf.useBetween:
|
if not conf.useBetween or kb.dbms == "SQLite":
|
||||||
forgedPayload = safeStringFormat(payload, (expressionUnescaped, idx, posValue))
|
forgedPayload = safeStringFormat(payload, (expressionUnescaped, idx, posValue))
|
||||||
else:
|
else:
|
||||||
forgedPayload = safeStringFormat(payload.replace('%3E', 'BETWEEN 0 AND '), (expressionUnescaped, idx, posValue))
|
forgedPayload = safeStringFormat(payload.replace('%3E', 'BETWEEN 0 AND'), (expressionUnescaped, idx, posValue))
|
||||||
|
|
||||||
result = Request.queryPage(urlencode(forgedPayload))
|
result = Request.queryPage(urlencode(forgedPayload))
|
||||||
|
|
||||||
if kb.dbms == "SQLite":
|
if kb.dbms == "SQLite":
|
||||||
posValue = posValueOld
|
posValue = posValueOld
|
||||||
|
|
||||||
if not conf.useBetween: #normal
|
if not conf.useBetween or kb.dbms == "SQLite": #normal
|
||||||
if result:
|
if result:
|
||||||
minValue = posValue
|
minValue = posValue
|
||||||
asciiTbl = asciiTbl[position:]
|
asciiTbl = asciiTbl[position:]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user