mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-07 06:33:06 +03:00
Fix for an Issue #670
This commit is contained in:
parent
fd884ec67b
commit
ef5ce7e66c
|
@ -462,7 +462,16 @@ def _createFilesDir():
|
||||||
conf.filePath = paths.SQLMAP_FILES_PATH % conf.hostname
|
conf.filePath = paths.SQLMAP_FILES_PATH % conf.hostname
|
||||||
|
|
||||||
if not os.path.isdir(conf.filePath):
|
if not os.path.isdir(conf.filePath):
|
||||||
os.makedirs(conf.filePath, 0755)
|
try:
|
||||||
|
os.makedirs(conf.filePath, 0755)
|
||||||
|
except OSError, ex:
|
||||||
|
tempDir = tempfile.mkdtemp(prefix="sqlmapfiles")
|
||||||
|
warnMsg = "unable to create files directory "
|
||||||
|
warnMsg += "'%s' (%s). " % (conf.filePath, ex)
|
||||||
|
warnMsg += "Using temporary directory '%s' instead" % tempDir
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
conf.filePath = tempDir
|
||||||
|
|
||||||
def _createDumpDir():
|
def _createDumpDir():
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user