mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +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):
|
def crawl(target):
|
||||||
try:
|
try:
|
||||||
|
visited = set()
|
||||||
threadData = getCurrentThreadData()
|
threadData = getCurrentThreadData()
|
||||||
threadData.shared.value = oset()
|
threadData.shared.value = oset()
|
||||||
|
|
||||||
|
@ -37,6 +38,10 @@ def crawl(target):
|
||||||
with kb.locks.limit:
|
with kb.locks.limit:
|
||||||
if threadData.shared.unprocessed:
|
if threadData.shared.unprocessed:
|
||||||
current = threadData.shared.unprocessed.pop()
|
current = threadData.shared.unprocessed.pop()
|
||||||
|
if current in visited:
|
||||||
|
continue
|
||||||
|
else:
|
||||||
|
visited.add(current)
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user