File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737from lib .core .data import logger
3838from lib .core .exception import sqlmapNotVulnerableException
3939from lib .core .session import setInjection
40- from lib .core .target import createTargetDirs
41- from lib .core .target import initTargetEnv , setupTargetEnv
40+ from lib .core .target import initTargetEnv
41+ from lib .core .target import setupTargetEnv
4242from lib .utils .parenthesis import checkForParenthesis
4343
4444def __selectInjection (injData ):
@@ -136,7 +136,6 @@ def start():
136136
137137 initTargetEnv ()
138138 parseTargetUrl ()
139- createTargetDirs ()
140139 setupTargetEnv ()
141140
142141 if not checkConnection () or not checkString () or not checkRegexp ():
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def __createDumpDir():
194194 if not os .path .isdir (conf .dumpPath ):
195195 os .makedirs (conf .dumpPath , 0755 )
196196
197- def createTargetDirs ():
197+ def __createTargetDirs ():
198198 """
199199 Create the output directory.
200200 """
@@ -232,5 +232,6 @@ def initTargetEnv():
232232 kb .unionPosition = None
233233
234234def setupTargetEnv ():
235+ __createTargetDirs ()
235236 __setRequestParams ()
236237 __setOutputResume ()
You can’t perform that action at this time.
0 commit comments