Little precaution

This commit is contained in:
Bernardo Damele 2010-12-09 14:06:43 +00:00
parent 9230877d98
commit df5f6bc1b7

View File

@ -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]