File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,15 @@ def dbTableValues(self, tableValues):
410
410
try :
411
411
dumpDbPath = os .path .join (conf .dumpPath , unsafeSQLIdentificatorNaming (db ))
412
412
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
414
422
415
423
if conf .dumpFormat == DUMP_FORMAT .SQLITE :
416
424
replication = Replication (os .path .join (conf .dumpPath , "%s.sqlite3" % unsafeSQLIdentificatorNaming (db )))
Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.6.2.8 "
23
+ VERSION = "1.6.3.0 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments