now --technique is appliable also after the injections have been identified

This commit is contained in:
Miroslav Stampar 2011-01-24 16:47:24 +00:00
parent c188996627
commit 6cc69f5e16
2 changed files with 5 additions and 3 deletions

View File

@ -1846,8 +1846,10 @@ def isTechniqueAvailable(technique=None):
Returns True if there is injection data which sqlmap could use for
technique specified
"""
return getTechniqueData(technique) is not None
if conf.technique and technique != conf.technique:
return False
else:
return getTechniqueData(technique) is not None
def initTechnique(technique=None):
"""

View File

@ -526,7 +526,7 @@ def cmdLineParser():
default=False, help=SUPPRESS_HELP)
parser.add_option("--technique", dest="technique", type="int",
default=False, help=SUPPRESS_HELP)
default=0, help=SUPPRESS_HELP)
parser.add_option_group(target)
parser.add_option_group(request)