mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
adding compatibility support for using --crawl and --forms together
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user