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

Skip to content

Commit 8af7d6c

Browse files
committed
minor cosmetic update
1 parent a0ec447 commit 8af7d6c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/controller/controller.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
from lib.core.data import logger
3838
from lib.core.exception import sqlmapNotVulnerableException
3939
from 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
4242
from lib.utils.parenthesis import checkForParenthesis
4343

4444
def __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():

lib/core/target.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

234234
def setupTargetEnv():
235+
__createTargetDirs()
235236
__setRequestParams()
236237
__setOutputResume()

0 commit comments

Comments
 (0)