minor fix

This commit is contained in:
Miroslav Stampar 2011-02-17 21:51:40 +00:00
parent 22cd49a217
commit 6cdf08b81c
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ def checkSqlInjection(place, parameter, value):
# Skip test if the user's wants to test only for a specific
# technique
if isinstance(conf.technique, list) and stype not in conf.technique:
if conf.technique and isinstance(conf.technique, list) and stype not in conf.technique:
debugMsg = "skipping test '%s' because the user " % title
debugMsg += "specified to test only for "
debugMsg += "%s" % ",".join(map(lambda x: PAYLOAD.SQLINJECTION[x], conf.technique))

View File

@ -2147,7 +2147,7 @@ def isTechniqueAvailable(technique=None):
technique specified
"""
if isinstance(conf.technique, list) and technique not in conf.technique:
if conf.technique and isinstance(conf.technique, list) and technique not in conf.technique:
return False
else:
return getTechniqueData(technique) is not None