@@ -413,21 +413,11 @@ def __setRequestFromFile():
413413 __feedTargetsDict (conf .requestFile , addedTargetUrls )
414414
415415def __setCrawler ():
416- if not conf .crawl :
416+ if not conf .crawlDepth :
417417 return
418418
419419 crawler = Crawler ()
420- depth = 1
421-
422- infoMsg = "setting crawling options"
423- logger .info (infoMsg )
424-
425- message = "please enter maximum depth [Enter for %d (default)] " % depth
426- choice = readInput (message , default = str (depth ))
427- if choice and choice .isdigit ():
428- depth = int (choice )
429-
430- crawler .getTargetUrls (depth )
420+ crawler .getTargetUrls ()
431421
432422def __setGoogleDorking ():
433423 """
@@ -1319,7 +1309,7 @@ def __cleanupOptions():
13191309 if conf .tmpPath :
13201310 conf .tmpPath = ntToPosixSlashes (normalizePath (conf .tmpPath ))
13211311
1322- if conf .googleDork or conf .logFile or conf .bulkFile or conf .forms or conf .crawl :
1312+ if conf .googleDork or conf .logFile or conf .bulkFile or conf .forms or conf .crawlDepth :
13231313 conf .multipleTargets = True
13241314
13251315 if conf .optimize :
@@ -1786,7 +1776,7 @@ def __basicOptionValidation():
17861776 errMsg = "switch --forms is compatible only with -u (--url) target switch"
17871777 raise sqlmapSyntaxException , errMsg
17881778
1789- if conf .forms and conf .crawl :
1779+ if conf .forms and conf .crawlDepth :
17901780 errMsg = "switch --forms is currently not compatible with --crawl switch"
17911781 raise sqlmapSyntaxException , errMsg
17921782
0 commit comments