From df58bcaf956b4af59433c83f3aee82d99b495cb2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 18 Feb 2011 14:27:02 +0000 Subject: [PATCH] minor improvement --- lib/core/option.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 40360fd86..ce3173a17 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -578,15 +578,10 @@ def __setOS(): raise sqlmapUnsupportedDBMSException, errMsg def __setTechnique(): - if not isinstance(conf.technique, int): - return - - techniques = [] - while conf.technique > 0: - techniques.append(conf.technique % 10) - conf.technique /= 10 - - conf.technique = techniques + if not conf.technique or not isinstance(conf.technique, int): + conf.technique = [] + else: + conf.technique = filter(lambda x: x in PAYLOAD.SQLINJECTION, [int(c) for c in str(conf.technique)]) def __setDBMS(): """