mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 19:33:48 +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.exception import sqlmapNotVulnerableException
|
||||||
from lib.core.session import setInjection
|
from lib.core.session import setInjection
|
||||||
from lib.core.target import createTargetDirs
|
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
|
from lib.utils.parenthesis import checkForParenthesis
|
||||||
|
|
||||||
def __selectInjection(injData):
|
def __selectInjection(injData):
|
||||||
|
@ -134,9 +134,10 @@ def start():
|
||||||
logMsg = "testing url %s" % targetUrl
|
logMsg = "testing url %s" % targetUrl
|
||||||
logger.info(logMsg)
|
logger.info(logMsg)
|
||||||
|
|
||||||
|
initTargetEnv()
|
||||||
parseTargetUrl()
|
parseTargetUrl()
|
||||||
createTargetDirs()
|
createTargetDirs()
|
||||||
initTargetEnv()
|
setupTargetEnv()
|
||||||
|
|
||||||
if not checkConnection() or not checkString() or not checkRegexp():
|
if not checkConnection() or not checkString() or not checkRegexp():
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -218,6 +218,8 @@ def initTargetEnv():
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if conf.multipleTargets:
|
if conf.multipleTargets:
|
||||||
|
conf.paramDict = {}
|
||||||
|
conf.parameters = {}
|
||||||
kb.dbms = None
|
kb.dbms = None
|
||||||
kb.dbmsDetected = False
|
kb.dbmsDetected = False
|
||||||
kb.dbmsVersion = None
|
kb.dbmsVersion = None
|
||||||
|
@ -229,5 +231,6 @@ def initTargetEnv():
|
||||||
kb.unionCount = None
|
kb.unionCount = None
|
||||||
kb.unionPosition = None
|
kb.unionPosition = None
|
||||||
|
|
||||||
|
def setupTargetEnv():
|
||||||
__setRequestParams()
|
__setRequestParams()
|
||||||
__setOutputResume()
|
__setOutputResume()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user