From c9cac957bb423d17593cf24e92877260dd4d35c9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 29 Mar 2012 09:56:09 +0000 Subject: [PATCH] adding one more case for false positive check (Generic tests without any DBMS knowledge) --- lib/controller/checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index c47f7a2f7..d5d03434c 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -533,7 +533,8 @@ def checkFalsePositives(injection): retVal = injection if len(injection.data) == 1 and any(map(lambda x: x in injection.data, [PAYLOAD.TECHNIQUE.BOOLEAN, PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED]))\ - or len(injection.data) == 2 and all(map(lambda x: x in injection.data, [PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED])): + or len(injection.data) == 2 and all(map(lambda x: x in injection.data, [PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED]))\ + or len(injection.data) == 1 and 'Generic' in injection.data.values()[0].title and not Backend.getDbms(): pushValue(kb.injection) infoMsg = "checking if the injection point on %s " % injection.place