From 2e017eee9989c2932a8baff3fa23a93e8ea16936 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 10 Aug 2018 14:16:27 +0200 Subject: [PATCH] Fixes #3203 --- lib/core/settings.py | 2 +- lib/core/target.py | 2 +- txt/checksum.md5 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index ffce4051c..54f12963c 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.2.8.6" +VERSION = "1.2.8.7" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/core/target.py b/lib/core/target.py index bceafe5c8..43e153e1e 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -674,7 +674,7 @@ def _createTargetDirs(): conf.outputPath = getUnicode(conf.outputPath) try: - with codecs.open(os.path.join(conf.outputPath, "target.txt"), "w+", UNICODE_ENCODING) as f: + with openFile(os.path.join(conf.outputPath, "target.txt"), "w+") as f: f.write(kb.originalUrls.get(conf.url) or conf.url or conf.hostname) f.write(" (%s)" % (HTTPMETHOD.POST if conf.data else HTTPMETHOD.GET)) f.write(" # %s" % getUnicode(subprocess.list2cmdline(sys.argv), encoding=sys.stdin.encoding)) diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 4673e63ee..e9894a307 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -48,10 +48,10 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py 0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py a7db43859b61569b601b97f187dd31c5 lib/core/revision.py fcb74fcc9577523524659ec49e2e964b lib/core/session.py -a4ded87968a06825056f25955c009db6 lib/core/settings.py +0a3b05220e19a5d4d0b1fe1fc1295c79 lib/core/settings.py dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py -12bed9603b6fba3e5ffda11d584bc449 lib/core/target.py +5b7ff6f49ff3af62f8c12f74b6d49dd2 lib/core/target.py 72d499ca8d792e90a1ebfb2ad2341a51 lib/core/testing.py e896992e4db26605ab1e73615b1f9434 lib/core/threads.py c40758411bb0bd68764d78e0bb72bd0f lib/core/unescaper.py