mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +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
|
||||
posValue = chr(posValue)
|
||||
|
||||
if not conf.useBetween:
|
||||
if not conf.useBetween or kb.dbms == "SQLite":
|
||||
forgedPayload = safeStringFormat(payload, (expressionUnescaped, idx, posValue))
|
||||
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))
|
||||
|
||||
if kb.dbms == "SQLite":
|
||||
posValue = posValueOld
|
||||
|
||||
if not conf.useBetween: #normal
|
||||
if not conf.useBetween or kb.dbms == "SQLite": #normal
|
||||
if result:
|
||||
minValue = posValue
|
||||
asciiTbl = asciiTbl[position:]
|
||||
|
|
Loading…
Reference in New Issue
Block a user