mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
minor fix
This commit is contained in:
parent
1ec56f93ec
commit
f4e410db16
|
@ -179,7 +179,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, shiftTable=None):
|
def getChar(idx, charTbl=None, 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
|
||||||
|
@ -190,6 +190,9 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
if result:
|
if result:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
if charTbl is None:
|
||||||
|
charTbl = list(asciiTbl)
|
||||||
|
|
||||||
originalTbl = list(charTbl)
|
originalTbl = list(charTbl)
|
||||||
|
|
||||||
if continuousOrder and shiftTable is None:
|
if continuousOrder and shiftTable is None:
|
||||||
|
@ -199,7 +202,10 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
if CHAR_INFERENCE_MARK in payload and ord('\n') in charTbl:
|
if CHAR_INFERENCE_MARK in payload and ord('\n') in charTbl:
|
||||||
charTbl.remove(ord('\n'))
|
charTbl.remove(ord('\n'))
|
||||||
|
|
||||||
if len(charTbl) == 1:
|
if not charTbl:
|
||||||
|
return None
|
||||||
|
|
||||||
|
elif len(charTbl) == 1:
|
||||||
forgedPayload = safeStringFormat(payload.replace(INFERENCE_GREATER_CHAR, INFERENCE_EQUALS_CHAR), (expressionUnescaped, idx, charTbl[0]))
|
forgedPayload = safeStringFormat(payload.replace(INFERENCE_GREATER_CHAR, INFERENCE_EQUALS_CHAR), (expressionUnescaped, idx, charTbl[0]))
|
||||||
result = Request.queryPage(forgedPayload, timeBasedCompare=timeBasedCompare, raise404=False)
|
result = Request.queryPage(forgedPayload, timeBasedCompare=timeBasedCompare, raise404=False)
|
||||||
incrementCounter(kb.technique)
|
incrementCounter(kb.technique)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user