From df5f6bc1b7f4f371fa9700d912627623df9fb968 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 9 Dec 2010 14:06:43 +0000 Subject: [PATCH] Little precaution --- 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 5f788fa19..c520af1d4 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -103,7 +103,8 @@ def checkSqlInjection(place, parameter, value): # Skip test if the user's wants to test only for a specific # technique - if isinstance(conf.technique, int) and stype != conf.technique: + if conf.technique and isinstance(conf.technique, int) and stype != conf.technique: + print "conf.technique:", conf.technique debugMsg = "skipping test '%s' because the user " % title debugMsg += "specified to test only for " debugMsg += "%s" % PAYLOAD.SQLINJECTION[conf.technique]