mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor update for crawler
This commit is contained in:
parent
887109a12d
commit
2bfdac5ebc
|
@ -27,6 +27,7 @@ from thirdparty.oset.pyoset import oset
|
|||
|
||||
def crawl(target):
|
||||
try:
|
||||
visited = set()
|
||||
threadData = getCurrentThreadData()
|
||||
threadData.shared.value = oset()
|
||||
|
||||
|
@ -37,6 +38,10 @@ def crawl(target):
|
|||
with kb.locks.limit:
|
||||
if threadData.shared.unprocessed:
|
||||
current = threadData.shared.unprocessed.pop()
|
||||
if current in visited:
|
||||
continue
|
||||
else:
|
||||
visited.add(current)
|
||||
else:
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user