From 68828d68a5ae70f98de6af0c440532f23bf1076e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 7 Apr 2011 10:37:48 +0000 Subject: [PATCH] removed integers from --technique --- lib/core/option.py | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 54078cad9..c0cfe9514 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -612,23 +612,17 @@ def __setTechnique(): if conf.tech and isinstance(conf.tech, basestring): selTechniques = [] - # e.g.: BEUST - if not conf.tech.isdigit(): - for letter in conf.tech.upper(): - if letter not in validLetters: - errMsg = "value for --technique must be a string composed " - errMsg += "by the letters %s. Refer to the " % ",".join(validLetters) - errMsg += "user's manual for details" - raise sqlmapSyntaxException, errMsg + for letter in conf.tech.upper(): + if letter not in validLetters: + errMsg = "value for --technique must be a string composed " + errMsg += "by the letters %s. Refer to the " % ",".join(validLetters) + errMsg += "user's manual for details" + raise sqlmapSyntaxException, errMsg - for validTech, validInt in validTechniques: - if letter == validTech[0]: - selTechniques.append(validInt) - break - - # e.g.: 12345 - else: - selTechniques = filter(lambda x: x in PAYLOAD.SQLINJECTION, [int(c) for c in str(conf.tech)]) + for validTech, validInt in validTechniques: + if letter == validTech[0]: + selTechniques.append(validInt) + break conf.tech = selTechniques