mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Fixed a bug reported by Bedirhan Urgun <bedirhanurgun@gmail.com>
This commit is contained in:
@@ -92,7 +92,10 @@ def bisection(payload, expression, length=None):
|
||||
queriesCount[0] += 1
|
||||
limit = ((maxValue + minValue) / 2)
|
||||
|
||||
forgedPayload = payload % (expressionUnescaped, idx, limit)
|
||||
# TODO: find a cleaner way to do this
|
||||
forgedPayload = payload.replace("%", "%%", 1) % (expressionUnescaped, idx, limit)
|
||||
forgedPayload = forgedPayload.replace("%%", "%")
|
||||
|
||||
result = Request.queryPage(forgedPayload)
|
||||
|
||||
if result == kb.defaultResult:
|
||||
|
||||
Reference in New Issue
Block a user