Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd884ec commit ef5ce7eCopy full SHA for ef5ce7e
1 file changed
lib/core/target.py
@@ -462,7 +462,16 @@ def _createFilesDir():
462
conf.filePath = paths.SQLMAP_FILES_PATH % conf.hostname
463
464
if not os.path.isdir(conf.filePath):
465
- os.makedirs(conf.filePath, 0755)
+ try:
466
+ os.makedirs(conf.filePath, 0755)
467
+ except OSError, ex:
468
+ tempDir = tempfile.mkdtemp(prefix="sqlmapfiles")
469
+ warnMsg = "unable to create files directory "
470
+ warnMsg += "'%s' (%s). " % (conf.filePath, ex)
471
+ warnMsg += "Using temporary directory '%s' instead" % tempDir
472
+ logger.warn(warnMsg)
473
+
474
+ conf.filePath = tempDir
475
476
def _createDumpDir():
477
"""
0 commit comments