diff --git a/lib/core/common.py b/lib/core/common.py index 09c4704e0..48bc4492c 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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): """ diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 87d3baa13..77aa57dab 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -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)