Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32bcca0

Browse files
committed
Basic options check for Issue #2
1 parent 7fc9e82 commit 32bcca0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,6 +2179,14 @@ def _basicOptionValidation():
21792179
errMsg = "switch '--forms' requires usage of option '-u' ('--url'), '-g', '-m' or '-x'"
21802180
raise SqlmapSyntaxException(errMsg)
21812181

2182+
if conf.csrfUrl and not conf.csrfToken:
2183+
errMsg = "option '--csrf-url' requires usage of option '--csrf-token'"
2184+
raise SqlmapSyntaxException(errMsg)
2185+
2186+
if conf.csrfToken and conf.threads:
2187+
errMsg = "option '--csrf-url' is incompatible with option '--threads'"
2188+
raise SqlmapSyntaxException(errMsg)
2189+
21822190
if conf.requestFile and conf.url and conf.url != DUMMY_URL:
21832191
errMsg = "option '-r' is incompatible with option '-u' ('--url')"
21842192
raise SqlmapSyntaxException(errMsg)

0 commit comments

Comments
 (0)