mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
adding compatibility support for using --crawl and --forms together
This commit is contained in:
parent
ddc4dfe5ff
commit
ef987c6954
4 changed files with 16 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue