From c73489aff3861f1cac7de41494a296c1095e141a Mon Sep 17 00:00:00 2001 From: stamparm Date: Tue, 16 Apr 2013 14:31:10 +0200 Subject: [PATCH] Adding a couple of new option validation checks --- lib/core/option.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index bdfe29a98..c3911be7d 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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)