mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-18 20:13:34 +03:00
minor fix
This commit is contained in:
parent
22cd49a217
commit
6cdf08b81c
|
@ -93,7 +93,7 @@ def checkSqlInjection(place, parameter, value):
|
||||||
|
|
||||||
# Skip test if the user's wants to test only for a specific
|
# Skip test if the user's wants to test only for a specific
|
||||||
# technique
|
# 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 = "skipping test '%s' because the user " % title
|
||||||
debugMsg += "specified to test only for "
|
debugMsg += "specified to test only for "
|
||||||
debugMsg += "%s" % ",".join(map(lambda x: PAYLOAD.SQLINJECTION[x], conf.technique))
|
debugMsg += "%s" % ",".join(map(lambda x: PAYLOAD.SQLINJECTION[x], conf.technique))
|
||||||
|
|
|
@ -2147,7 +2147,7 @@ def isTechniqueAvailable(technique=None):
|
||||||
technique specified
|
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
|
return False
|
||||||
else:
|
else:
|
||||||
return getTechniqueData(technique) is not None
|
return getTechniqueData(technique) is not None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user