Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a0ec447

Browse files
committed
fix for Issue #170
1 parent 7f5bc5e commit a0ec447

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/controller/controller.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from lib.core.exception import sqlmapNotVulnerableException
3939
from lib.core.session import setInjection
4040
from lib.core.target import createTargetDirs
41-
from lib.core.target import initTargetEnv
41+
from lib.core.target import initTargetEnv, setupTargetEnv
4242
from lib.utils.parenthesis import checkForParenthesis
4343

4444
def __selectInjection(injData):
@@ -133,10 +133,11 @@ def start():
133133

134134
logMsg = "testing url %s" % targetUrl
135135
logger.info(logMsg)
136-
136+
137+
initTargetEnv()
137138
parseTargetUrl()
138139
createTargetDirs()
139-
initTargetEnv()
140+
setupTargetEnv()
140141

141142
if not checkConnection() or not checkString() or not checkRegexp():
142143
continue

lib/core/target.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ def initTargetEnv():
218218
"""
219219

220220
if conf.multipleTargets:
221+
conf.paramDict = {}
222+
conf.parameters = {}
221223
kb.dbms = None
222224
kb.dbmsDetected = False
223225
kb.dbmsVersion = None
@@ -229,5 +231,6 @@ def initTargetEnv():
229231
kb.unionCount = None
230232
kb.unionPosition = None
231233

234+
def setupTargetEnv():
232235
__setRequestParams()
233236
__setOutputResume()

0 commit comments

Comments
 (0)