mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Implements option --csrf-data (#5199)
This commit is contained in:
parent
d7ee423fc5
commit
aa9cc3987e
6 changed files with 13 additions and 2 deletions
|
|
@ -2733,6 +2733,10 @@ def _basicOptionValidation():
|
|||
errMsg = "option '--csrf-method' requires usage of option '--csrf-token'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.csrfData and not conf.csrfToken:
|
||||
errMsg = "option '--csrf-data' 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue