From c76d740a25de59fddf8955369e79ed8e77621e16 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 29 Nov 2010 15:21:56 +0000 Subject: [PATCH] just a precaution --- lib/controller/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index 391fbf72f..b0abb460d 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -357,7 +357,8 @@ def start(): warnMsg += "injectable" logger.warn(warnMsg) - if len(kb.injections) == 0 and not kb.injection.place and not kb.injection.parameter: + if (len(kb.injections) == 0 or len(kb.injections) == 1 and kb.injections[0].parameter is None) \ + and not kb.injection.place and not kb.injection.parameter: errMsg = "all parameters are not injectable, try " errMsg += "a higher --level" raise sqlmapNotVulnerableException, errMsg