mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Small patch for existing option validation
This commit is contained in:
parent
77c96de4ea
commit
4ded9a9966
|
@ -2261,6 +2261,14 @@ def _basicOptionValidation():
|
||||||
errMsg = "option '--crawl-exclude' requires usage of switch '--crawl'"
|
errMsg = "option '--crawl-exclude' requires usage of switch '--crawl'"
|
||||||
raise SqlmapSyntaxException(errMsg)
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
|
if conf.safePost and not conf.safeUrl:
|
||||||
|
errMsg = "option '--safe-post' requires usage of option '--safe-url'"
|
||||||
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
|
if conf.safeFreq and not conf.safeUrl:
|
||||||
|
errMsg = "option '--safe-freq' requires usage of option '--safe-url'"
|
||||||
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
||||||
if conf.csrfUrl and not conf.csrfToken:
|
if conf.csrfUrl and not conf.csrfToken:
|
||||||
errMsg = "option '--csrf-url' requires usage of option '--csrf-token'"
|
errMsg = "option '--csrf-url' requires usage of option '--csrf-token'"
|
||||||
raise SqlmapSyntaxException(errMsg)
|
raise SqlmapSyntaxException(errMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user