mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
some more cleanup
This commit is contained in:
parent
d5e80089ff
commit
facce2c0df
3 changed files with 22 additions and 31 deletions
|
|
@ -283,13 +283,11 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
threadData = getCurrentThreadData()
|
||||
|
||||
while kb.threadContinue:
|
||||
kb.locks.limits.acquire()
|
||||
try:
|
||||
num = threadData.shared.limits.next()
|
||||
except StopIteration:
|
||||
break
|
||||
finally:
|
||||
kb.locks.limits.release()
|
||||
with kb.locks.limits:
|
||||
try:
|
||||
num = threadData.shared.limits.next()
|
||||
except StopIteration:
|
||||
break
|
||||
|
||||
if Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.SYBASE):
|
||||
field = expressionFieldsList[0]
|
||||
|
|
@ -309,10 +307,9 @@ def unionUse(expression, unpack=True, dump=False):
|
|||
items = parseUnionPage(output)
|
||||
if isNoneValue(items):
|
||||
continue
|
||||
kb.locks.value.acquire()
|
||||
for item in arrayizeValue(items):
|
||||
threadData.shared.value.append(item)
|
||||
kb.locks.value.release()
|
||||
with kb.locks.value:
|
||||
for item in arrayizeValue(items):
|
||||
threadData.shared.value.append(item)
|
||||
else:
|
||||
items = output.replace(kb.chars.start, "").replace(kb.chars.stop, "").split(kb.chars.delimiter)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue