mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Another update for an Issue #362
This commit is contained in:
parent
8f955b6364
commit
069c6acabd
|
@ -180,7 +180,14 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
value are not equal there will be a deliberate delay).
|
||||
"""
|
||||
|
||||
forgedPayload = safeStringFormat(payload.replace(INFERENCE_GREATER_CHAR, INFERENCE_NOT_EQUALS_CHAR), (expressionUnescaped, idx, value))
|
||||
if CHAR_INFERENCE_MARK not in payload:
|
||||
forgedPayload = safeStringFormat(payload.replace(INFERENCE_GREATER_CHAR, INFERENCE_NOT_EQUALS_CHAR), (expressionUnescaped, idx, value))
|
||||
else:
|
||||
# e.g.: ... > '%c' -> ... > ORD(..)
|
||||
markingValue = "'%s'" % CHAR_INFERENCE_MARK
|
||||
unescapedCharValue = unescaper.escape("'%s'" % decodeIntToUnicode(value))
|
||||
forgedPayload = safeStringFormat(payload.replace(INFERENCE_GREATER_CHAR, INFERENCE_NOT_EQUALS_CHAR), (expressionUnescaped, idx)).replace(markingValue, unescapedCharValue)
|
||||
|
||||
result = Request.queryPage(forgedPayload, timeBasedCompare=timeBasedCompare, raise404=False)
|
||||
incrementCounter(kb.technique)
|
||||
|
||||
|
|
|
@ -22,4 +22,4 @@ class Syntax(GenericSyntax):
|
|||
if isDBMSVersionAtLeast('2.1'):
|
||||
retVal = Syntax._escape(expression, quote, escaper)
|
||||
|
||||
return retVal
|
||||
return retVal
|
||||
|
|
|
@ -24,4 +24,4 @@ class Syntax(GenericSyntax):
|
|||
if isDBMSVersionAtLeast('3'):
|
||||
retVal = Syntax._escape(expression, quote, escaper)
|
||||
|
||||
return retVal
|
||||
return retVal
|
||||
|
|
Loading…
Reference in New Issue
Block a user