Skip to content

Commit b6b51be

Browse files
committed
1 parent 672abe8 commit b6b51be

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

lib/core/target.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -647,25 +647,25 @@ def _createTargetDirs():
647647

648648
conf.outputPath = os.path.join(getUnicode(paths.SQLMAP_OUTPUT_PATH), normalizeUnicode(getUnicode(conf.hostname)))
649649

650-
if not os.path.isdir(conf.outputPath):
651-
try:
650+
try:
651+
if not os.path.isdir(conf.outputPath):
652652
os.makedirs(conf.outputPath, 0755)
653-
except (OSError, IOError), ex:
654-
try:
655-
tempDir = tempfile.mkdtemp(prefix="sqlmapoutput")
656-
except Exception, _:
657-
errMsg = "unable to write to the temporary directory ('%s'). " % _
658-
errMsg += "Please make sure that your disk is not full and "
659-
errMsg += "that you have sufficient write permissions to "
660-
errMsg += "create temporary files and/or directories"
661-
raise SqlmapSystemException(errMsg)
653+
except (OSError, IOError, TypeError), ex:
654+
try:
655+
tempDir = tempfile.mkdtemp(prefix="sqlmapoutput")
656+
except Exception, _:
657+
errMsg = "unable to write to the temporary directory ('%s'). " % _
658+
errMsg += "Please make sure that your disk is not full and "
659+
errMsg += "that you have sufficient write permissions to "
660+
errMsg += "create temporary files and/or directories"
661+
raise SqlmapSystemException(errMsg)
662662

663-
warnMsg = "unable to create output directory "
664-
warnMsg += "'%s' (%s). " % (conf.outputPath, getUnicode(ex))
665-
warnMsg += "Using temporary directory '%s' instead" % getUnicode(tempDir)
666-
logger.warn(warnMsg)
663+
warnMsg = "unable to create output directory "
664+
warnMsg += "'%s' (%s). " % (conf.outputPath, getUnicode(ex))
665+
warnMsg += "Using temporary directory '%s' instead" % getUnicode(tempDir)
666+
logger.warn(warnMsg)
667667

668-
conf.outputPath = tempDir
668+
conf.outputPath = tempDir
669669

670670
try:
671671
with codecs.open(os.path.join(conf.outputPath, "target.txt"), "w+", UNICODE_ENCODING) as f:

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ fbf750dc617c3549ee423d6c2334ba4d lib/core/option.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
e8e3bd1b64f3a44ae9ff1793e5aadfaf lib/core/settings.py
49+
560d3c0717bd0d50c4a48f6eae4073e9 lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
52-
85e3a98bc9ba62125baa13e864f37a3f lib/core/target.py
52+
4a6ecdd8a6e44bb4737bd9bc7f9b5743 lib/core/target.py
5353
8970b88627902239d695280b1160e16c lib/core/testing.py
5454
40881e63d516d8304fc19971049cded0 lib/core/threads.py
5555
ad74fc58fc7214802fd27067bce18dd2 lib/core/unescaper.py

0 commit comments

Comments
 (0)