From a0df36beda4db3bca1359f7c380fa511080c70a2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 17 Nov 2010 15:33:07 +0000 Subject: [PATCH] when in multi target mode this should be done (another bug was reported by ToR for using "old" data - kb was not properly cleared) --- lib/core/target.py | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/lib/core/target.py b/lib/core/target.py index 5bde0cea3..92e0d8f93 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -25,6 +25,7 @@ from lib.core.enums import PLACE from lib.core.exception import sqlmapFilePathException from lib.core.exception import sqlmapGenericException from lib.core.exception import sqlmapSyntaxException +from lib.core.option import __setKnowledgeBaseAttributes from lib.core.session import resumeConfKb from lib.core.xmldump import dumper as xmldumper from lib.request.connect import Connect as Request @@ -252,27 +253,7 @@ def initTargetEnv(): conf.parameters = {} conf.sessionFile = None - kb.authHeader = None - kb.dbms = None - kb.dbmsDetected = False - kb.dbmsVersion = [ "Unknown" ] - kb.dynamicMarkings = [] - kb.errorTest = None - kb.htmlFp = [] - kb.lastErrorPage = None - kb.injParameter = None - kb.injPlace = None - kb.injType = None - kb.nullConnection = None - kb.pageStable = None - kb.parenthesis = None - kb.paramMatchRatio = {} - kb.proxyAuthHeader = None - kb.stackedTest = None - kb.timeTest = None - kb.unionComment = "" - kb.unionCount = None - kb.unionPosition = None + __setKnowledgeBaseAttributes() def setupTargetEnv(): __createTargetDirs()