mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
minor update
This commit is contained in:
parent
86455ceb9c
commit
6fd8602f01
|
@ -341,13 +341,19 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
|
|||
|
||||
output = __errorFields(expression, expressionFields, expressionFieldsList, expected, num, resumeValue)
|
||||
|
||||
if not kb.threadContinue:
|
||||
break
|
||||
|
||||
if output and isinstance(output, list) and len(output) == 1:
|
||||
output = output[0]
|
||||
|
||||
kb.locks.outputs.acquire()
|
||||
threadData.shared.outputs.append(output)
|
||||
kb.locks.outputs.release()
|
||||
|
||||
except KeyboardInterrupt:
|
||||
kb.threadContinue = False
|
||||
kb.threadException = True
|
||||
raise
|
||||
|
||||
runThreads(numThreads, errorThread)
|
||||
|
|
|
@ -273,6 +273,7 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
threadData.shared.value = ""
|
||||
|
||||
def unionThread():
|
||||
try:
|
||||
threadData = getCurrentThreadData()
|
||||
|
||||
while threadData.shared.limits and kb.threadContinue:
|
||||
|
@ -294,6 +295,9 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
if not output:
|
||||
output = __oneShotUnionUse(limitedExpr, unpack)
|
||||
|
||||
if not kb.threadContinue:
|
||||
break
|
||||
|
||||
if output:
|
||||
kb.locks.value.acquire()
|
||||
threadData.shared.value += output
|
||||
|
@ -314,6 +318,11 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
dataToStdout(status, True)
|
||||
kb.locks.ioLock.release()
|
||||
|
||||
except KeyboardInterrupt:
|
||||
kb.threadContinue = False
|
||||
kb.threadException = True
|
||||
raise
|
||||
|
||||
runThreads(numThreads, unionThread)
|
||||
|
||||
value = threadData.shared.value
|
||||
|
|
Loading…
Reference in New Issue
Block a user