mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
quick fix
This commit is contained in:
parent
f36e093fa7
commit
4eccf1a25d
|
@ -163,7 +163,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
return None
|
||||
|
||||
maxChar = maxValue = charTbl[-1]
|
||||
minValue = charTbl[0]
|
||||
minChar = minValue = charTbl[0]
|
||||
|
||||
while len(charTbl) != 1:
|
||||
position = (len(charTbl) >> 1)
|
||||
|
@ -201,17 +201,27 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
charTbl = xrange(charTbl[0], charTbl[position])
|
||||
|
||||
if len(charTbl) == 1:
|
||||
if sequentialOrder:
|
||||
if maxValue == 1:
|
||||
return None
|
||||
elif minValue == maxChar:
|
||||
charTbl = xrange(maxChar + 1, (maxChar + 1) << 8)
|
||||
maxChar = maxValue = charTbl[-1]
|
||||
minValue = charTbl[0]
|
||||
elif sequentialOrder:
|
||||
minChar = minValue = charTbl[0]
|
||||
else:
|
||||
retVal = minValue + 1
|
||||
return chr(retVal) if retVal < 128 else unichr(retVal)
|
||||
else:
|
||||
if minValue == maxChar or maxValue == minChar:
|
||||
return None
|
||||
retVal = originalTbl[originalTbl.index(minValue) + 1]
|
||||
forgedPayload = safeStringFormat(payload.replace('%3E', '%3D'), (expressionUnescaped, idx, retVal))
|
||||
queriesCount[0] += 1
|
||||
result = Request.queryPage(urlencode(forgedPayload))
|
||||
if result:
|
||||
return chr(retVal) if retVal < 128 else unichr(retVal)
|
||||
else:
|
||||
return None
|
||||
|
||||
def etaProgressUpdate(charTime, index):
|
||||
if len(progressTime) <= ( (length * 3) / 100 ):
|
||||
|
|
|
@ -20,3 +20,4 @@ VIEWS
|
|||
[Databases]
|
||||
information_schema
|
||||
mysql
|
||||
iabc
|
Loading…
Reference in New Issue
Block a user