mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
bug fix
This commit is contained in:
parent
5053c2f685
commit
9d50c806e1
|
@ -169,7 +169,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
|
|
||||||
return not result
|
return not result
|
||||||
|
|
||||||
def getChar(idx, charTbl=asciiTbl, continuousOrder=True, expand=charsetType is None):
|
def getChar(idx, charTbl=asciiTbl, continuousOrder=True, expand=charsetType is None, shiftTable=None):
|
||||||
"""
|
"""
|
||||||
continuousOrder means that distance between each two neighbour's
|
continuousOrder means that distance between each two neighbour's
|
||||||
numerical values is exactly 1
|
numerical values is exactly 1
|
||||||
|
@ -182,7 +182,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
|
|
||||||
originalTbl = list(charTbl)
|
originalTbl = list(charTbl)
|
||||||
|
|
||||||
if continuousOrder:
|
if continuousOrder and shiftTable is None:
|
||||||
# Used for gradual expanding into unicode charspace
|
# Used for gradual expanding into unicode charspace
|
||||||
shiftTable = [5, 4]
|
shiftTable = [5, 4]
|
||||||
|
|
||||||
|
@ -273,7 +273,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
dbgMsg = "turning off auto-adjustment mechanism"
|
dbgMsg = "turning off auto-adjustment mechanism"
|
||||||
logger.debug(dbgMsg)
|
logger.debug(dbgMsg)
|
||||||
kb.adjustTimeDelay = False
|
kb.adjustTimeDelay = False
|
||||||
return getChar(idx, originalTbl, continuousOrder, expand)
|
return getChar(idx, originalTbl, continuousOrder, expand, shiftTable)
|
||||||
else:
|
else:
|
||||||
errMsg = "unable to properly validate last character value ('%s').." % decodeIntToUnicode(retVal)
|
errMsg = "unable to properly validate last character value ('%s').." % decodeIntToUnicode(retVal)
|
||||||
logger.error(errMsg)
|
logger.error(errMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user