fix for Issue #170

This commit is contained in:
Miroslav Stampar 2010-03-15 11:33:34 +00:00
parent 7f5bc5e3fe
commit a0ec447b7d
2 changed files with 7 additions and 3 deletions

View File

@ -38,7 +38,7 @@ from lib.core.data import logger
from lib.core.exception import sqlmapNotVulnerableException
from lib.core.session import setInjection
from lib.core.target import createTargetDirs
from lib.core.target import initTargetEnv
from lib.core.target import initTargetEnv, setupTargetEnv
from lib.utils.parenthesis import checkForParenthesis
def __selectInjection(injData):
@ -133,10 +133,11 @@ def start():
logMsg = "testing url %s" % targetUrl
logger.info(logMsg)
initTargetEnv()
parseTargetUrl()
createTargetDirs()
initTargetEnv()
setupTargetEnv()
if not checkConnection() or not checkString() or not checkRegexp():
continue

View File

@ -218,6 +218,8 @@ def initTargetEnv():
"""
if conf.multipleTargets:
conf.paramDict = {}
conf.parameters = {}
kb.dbms = None
kb.dbmsDetected = False
kb.dbmsVersion = None
@ -229,5 +231,6 @@ def initTargetEnv():
kb.unionCount = None
kb.unionPosition = None
def setupTargetEnv():
__setRequestParams()
__setOutputResume()