Skip to content

Commit 6aa4d9b

Browse files
committed
Fixes #5004
1 parent 90eeab6 commit 6aa4d9b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/core/dump.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,15 @@ def dbTableValues(self, tableValues):
410410
try:
411411
dumpDbPath = os.path.join(conf.dumpPath, unsafeSQLIdentificatorNaming(db))
412412
except UnicodeError:
413-
dumpDbPath = os.path.join(conf.dumpPath, normalizeUnicode(unsafeSQLIdentificatorNaming(db)))
413+
try:
414+
dumpDbPath = os.path.join(conf.dumpPath, normalizeUnicode(unsafeSQLIdentificatorNaming(db)))
415+
except (UnicodeError, OSError):
416+
tempDir = tempfile.mkdtemp(prefix="sqlmapdb")
417+
warnMsg = "currently unable to use regular dump directory. "
418+
warnMsg += "Using temporary directory '%s' instead" % tempDir
419+
logger.warn(warnMsg)
420+
421+
dumpDbPath = tempDir
414422

415423
if conf.dumpFormat == DUMP_FORMAT.SQLITE:
416424
replication = Replication(os.path.join(conf.dumpPath, "%s.sqlite3" % unsafeSQLIdentificatorNaming(db)))

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.2.8"
23+
VERSION = "1.6.3.0"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)