adding compatibility support for using --crawl and --forms together

This commit is contained in:
Miroslav Stampar
2011-10-29 09:32:20 +00:00
parent ddc4dfe5ff
commit ef987c6954
4 changed files with 16 additions and 9 deletions

View File

@@ -522,7 +522,7 @@ def __setBulkMultipleTargets():
f.close()
def __findPageForms():
if not conf.forms:
if not conf.forms or conf.crawlDepth:
return
if not checkConnection():
@@ -1796,10 +1796,6 @@ def __basicOptionValidation():
errMsg = "switch --forms is compatible only with -u (--url) target switch"
raise sqlmapSyntaxException, errMsg
if conf.forms and conf.crawlDepth:
errMsg = "switch --forms is currently not compatible with --crawl switch"
raise sqlmapSyntaxException, errMsg
if conf.timeSec < 1:
errMsg = "value for --time-sec option must be an integer greater than 0"
raise sqlmapSyntaxException, errMsg