From 6b007ab188e513b1fefe80ad89bc2c085de8e65b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 4 Dec 2012 16:14:14 +0100 Subject: [PATCH] Minor patch for an Issue #274 (just in case to avoid this kind of problems) --- lib/core/option.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index 3224f6edc..c7aa7ed48 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1964,6 +1964,10 @@ def __basicOptionValidation(): errMsg = "switch '--forms' requires usage of option '-u' (--url)" raise sqlmapSyntaxException, errMsg + if conf.requestFile and conf.url: + errMsg = "option '-r' is incompatible with option '-u' (--url)" + raise sqlmapSyntaxException, errMsg + if conf.tor and conf.ignoreProxy: errMsg = "switch '--tor' is incompatible with switch '--ignore-proxy'" raise sqlmapSyntaxException, errMsg