mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
fix for Issue #170
This commit is contained in:
parent
7f5bc5e3fe
commit
a0ec447b7d
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user