From 2c01fc56e6d94413d31b7a42376a36ba70de22ce Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 4 Apr 2011 09:19:43 +0000 Subject: [PATCH] minor update regarding misusage of --proxy and --ignore-proxy switches --- lib/core/option.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index f0153899e..3e26881d5 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1484,6 +1484,10 @@ def __basicOptionValidation(): errMsg = "switch --forms requires usage of -u (--url) switch" raise sqlmapSyntaxException, errMsg + if conf.proxy and conf.ignoreProxy: + errMsg = "switch --proxy is incompatible with switch --ignore-proxy" + raise sqlmapSyntaxException, errMsg + if conf.forms and (conf.list or conf.direct or conf.requestFile or conf.googleDork): errMsg = "switch --forms is compatible only with -u (--url) target switch" raise sqlmapSyntaxException, errMsg