mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 21:51:29 +00:00
minor update
This commit is contained in:
@@ -49,7 +49,7 @@ def getCurrentThreadData():
|
|||||||
kb.threadData[threadUID] = ThreadData()
|
kb.threadData[threadUID] = ThreadData()
|
||||||
return kb.threadData[threadUID]
|
return kb.threadData[threadUID]
|
||||||
|
|
||||||
def runThreads(numThreads, threadFunction, cleanupFunction=None):
|
def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardException=True):
|
||||||
threads = []
|
threads = []
|
||||||
|
|
||||||
kb.threadContinue = True
|
kb.threadContinue = True
|
||||||
@@ -94,6 +94,9 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None):
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise sqlmapThreadException, "user aborted (Ctrl+C was pressed multiple times)"
|
raise sqlmapThreadException, "user aborted (Ctrl+C was pressed multiple times)"
|
||||||
|
|
||||||
|
if forwardException:
|
||||||
|
raise
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
kb.threadContinue = True
|
kb.threadContinue = True
|
||||||
kb.threadException = False
|
kb.threadException = False
|
||||||
|
|||||||
Reference in New Issue
Block a user