mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-24 09:15:29 +01:00
Adding a couple of new option validation checks
This commit is contained in:
parent
7204ec5616
commit
c73489aff3
1 changed files with 8 additions and 0 deletions
|
|
@ -2047,6 +2047,14 @@ def _basicOptionValidation():
|
|||
errMsg = "option '-r' is incompatible with option '-u' ('--url')"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.direct and conf.proxy:
|
||||
errMsg = "option '-d' is incompatible with option '--proxy'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.direct and conf.tor:
|
||||
errMsg = "option '-d' is incompatible with switch '--tor'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.tor and conf.ignoreProxy:
|
||||
errMsg = "switch '--tor' is incompatible with switch '--ignore-proxy'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue