This commit is contained in:
Miroslav Stampar
2019-09-09 13:56:37 +02:00
parent 617c336813
commit 30fba849e2
6 changed files with 15 additions and 4 deletions

View File

@@ -2490,6 +2490,10 @@ def _basicOptionValidation():
errMsg = "option '--csrf-url' requires usage of option '--csrf-token'"
raise SqlmapSyntaxException(errMsg)
if conf.csrfMethod and not conf.csrfToken:
errMsg = "option '--csrf-method' requires usage of option '--csrf-token'"
raise SqlmapSyntaxException(errMsg)
if conf.csrfToken and conf.threads > 1:
errMsg = "option '--csrf-url' is incompatible with option '--threads'"
raise SqlmapSyntaxException(errMsg)