mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Fix for an Issue #305
This commit is contained in:
parent
1e1892c962
commit
76839ff9d6
|
@ -116,8 +116,8 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
if length == 0:
|
if length == 0:
|
||||||
return 0, ""
|
return 0, ""
|
||||||
|
|
||||||
if lastChar > 0 and length > ( lastChar - firstChar ):
|
if (lastChar > 0 or firstChar > 0):
|
||||||
length = lastChar - firstChar
|
length = min(length, lastChar or length) - firstChar
|
||||||
|
|
||||||
showEta = conf.eta and isinstance(length, int)
|
showEta = conf.eta and isinstance(length, int)
|
||||||
numThreads = min(conf.threads, length)
|
numThreads = min(conf.threads, length)
|
||||||
|
@ -358,7 +358,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
while kb.threadContinue:
|
while kb.threadContinue:
|
||||||
kb.locks.index.acquire()
|
kb.locks.index.acquire()
|
||||||
|
|
||||||
if threadData.shared.index[0] >= length:
|
if threadData.shared.index[0] - firstChar >= length:
|
||||||
kb.locks.index.release()
|
kb.locks.index.release()
|
||||||
|
|
||||||
return
|
return
|
||||||
|
@ -376,7 +376,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||||
break
|
break
|
||||||
|
|
||||||
with kb.locks.value:
|
with kb.locks.value:
|
||||||
threadData.shared.value[curidx - 1] = val
|
threadData.shared.value[curidx - 1 - firstChar] = val
|
||||||
currentValue = list(threadData.shared.value)
|
currentValue = list(threadData.shared.value)
|
||||||
|
|
||||||
if kb.threadContinue:
|
if kb.threadContinue:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user