diff --git a/lib/core/option.py b/lib/core/option.py index bfdeb613c..a015c4aba 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -394,7 +394,17 @@ def __setCrawler(): return crawler = Crawler() - crawler.getTargetUrls() + depth = 1 + + infoMsg = "setting crawling options" + logger.info(infoMsg) + + message = "please enter maximum depth [Enter for %d (default)] " % depth + choice = readInput(message, default=str(depth)) + if choice and choice.isdigit(): + depth = int(choice) + + crawler.getTargetUrls(depth) def __setGoogleDorking(): """ diff --git a/lib/utils/crawler.py b/lib/utils/crawler.py index e3a899ca3..537cf47c8 100644 --- a/lib/utils/crawler.py +++ b/lib/utils/crawler.py @@ -70,7 +70,7 @@ class Crawler: threadData.shared.deeper = set() threadData.shared.unprocessed = set([conf.url]) - logger.info("starting crawling") + logger.info("starting crawler") for i in xrange(depth): numThreads = min(conf.threads, len(threadData.shared.unprocessed))