--technique can now be something like 123 which includes both techniques 1, 2 and 3

This commit is contained in:
Miroslav Stampar
2011-02-17 21:39:16 +00:00
parent 7ebc1ab90a
commit 22cd49a217
4 changed files with 13 additions and 11 deletions

View File

@@ -581,10 +581,12 @@ def __setTechnique():
if not isinstance(conf.technique, int):
return
if conf.technique < 0 or conf.technique > 5:
errMsg = "the value of --technique must be an integer "
errMsg += "between 0 and 5"
raise sqlmapSyntaxException, errMsg
techniques = []
while conf.technique > 0:
techniques.append(conf.technique % 10)
conf.technique /= 10
conf.technique = techniques
def __setDBMS():
"""