mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
some refactoring
This commit is contained in:
parent
37d78ffe01
commit
29f502fe29
8 changed files with 25 additions and 47 deletions
|
|
@ -278,10 +278,6 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
debugMsg += "large number of rows. It might take too long"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
lockNames = ('limits', 'value')
|
||||
for lock in lockNames:
|
||||
kb.locks[lock] = threading.Lock()
|
||||
|
||||
try:
|
||||
def unionThread():
|
||||
threadData = getCurrentThreadData()
|
||||
|
|
@ -326,9 +322,7 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
if len(status) > width:
|
||||
status = "%s..." % status[:width - 3]
|
||||
|
||||
kb.locks.ioLock.acquire()
|
||||
dataToStdout(status, True)
|
||||
kb.locks.ioLock.release()
|
||||
|
||||
runThreads(numThreads, unionThread)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue