diff --git a/lib/utils/crawler.py b/lib/utils/crawler.py index b8241bb46..383688219 100644 --- a/lib/utils/crawler.py +++ b/lib/utils/crawler.py @@ -102,7 +102,10 @@ class Crawler: logger.info("searching for links with depth %d" % (i + 1)) runThreads(numThreads, crawlThread) clearConsoleLine(True) - threadData.shared.unprocessed = set(threadData.shared.deeper) + if threadData.shared.deeper: + threadData.shared.unprocessed = set(threadData.shared.deeper) + else: + break except KeyboardInterrupt: warnMsg = "user aborted during crawling. sqlmap "