From 6402d2ec57599647eea3d50e3e0f0d3985cd038c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 28 Feb 2018 09:44:45 +0100 Subject: [PATCH] Fixes #2952 --- lib/core/settings.py | 2 +- lib/utils/hash.py | 3 +++ txt/checksum.md5 | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index d764185be..452e5f585 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.2.21" +VERSION = "1.2.2.22" 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/utils/hash.py b/lib/utils/hash.py index bafe2a801..7548c29fd 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -16,6 +16,9 @@ try: # problems on FreeBSD (Reference: http://www.eggheadcafe.com/microsoft/Python/35880259/multiprocessing-on-freebsd.aspx) _ = multiprocessing.Queue() + + # problems with ctypes (Reference: https://github.com/sqlmapproject/sqlmap/issues/2952) + _ = multiprocessing.Value('i') except (ImportError, OSError): pass else: diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 92d4192fa..6ca78d766 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -46,7 +46,7 @@ ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py 0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py a7db43859b61569b601b97f187dd31c5 lib/core/revision.py fcb74fcc9577523524659ec49e2e964b lib/core/session.py -781efdc7fb3d938985783a00d9932616 lib/core/settings.py +5c87716f367de486b4e26974517f95cb lib/core/settings.py d0adc28a38e43a787df4471f7f027413 lib/core/shell.py 63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py 505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py @@ -105,7 +105,7 @@ a34c4fd2e7d78c5dfdd9eeccb079fb1c lib/utils/crawler.py a6d6888e14a7c11f0884c8cc18489caa lib/utils/getch.py 7af29f61302c8693cd6436d4b69e22d3 lib/utils/har.py 9bd8fbfb9c25ee685c97b260331e7165 lib/utils/hashdb.py -29dee8f54cfb39feb0545d237542f866 lib/utils/hash.py +56b62f4d8811f42b45b5f2f8e6e0a99e lib/utils/hash.py 145120b21fcfca843d5e2c8b0562e4db lib/utils/htmlentities.py 1e5532ede194ac9c083891c2f02bca93 lib/utils/__init__.py 010d8327239d33af4ce9f25683cfc012 lib/utils/pivotdumptable.py