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]