diff --git a/lib/core/bigarray.py b/lib/core/bigarray.py index da01be481..a5711105a 100644 --- a/lib/core/bigarray.py +++ b/lib/core/bigarray.py @@ -22,7 +22,10 @@ from lib.core.exception import SqlmapSystemException from lib.core.settings import BIGARRAY_CHUNK_SIZE from lib.core.settings import BIGARRAY_COMPRESS_LEVEL -DEFAULT_SIZE_OF = sys.getsizeof(object()) +try: + DEFAULT_SIZE_OF = sys.getsizeof(object()) +except TypeError: + DEFAULT_SIZE_OF = 16 def _size_of(instance): """ diff --git a/lib/core/common.py b/lib/core/common.py index bd9c6bdef..ae95a90cc 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2270,6 +2270,7 @@ def isMultiThreadMode(): """ Checks if running in multi-thread(ing) mode + >>> import time >>> isMultiThreadMode() False >>> _ = lambda: time.sleep(0.1) diff --git a/lib/core/settings.py b/lib/core/settings.py index d41bbf999..3f4632671 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.5.5.7" +VERSION = "1.5.5.8" 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 a7a5614bf..38b853063 100644 --- a/lib/utils/hash.py +++ b/lib/utils/hash.py @@ -351,7 +351,7 @@ def crypt_generic_passwd(password, salt, **kwargs): 'rl.3StKT.4T8M' """ - return crypt(password, salt) + return getText(crypt(password, salt)) def unix_md5_passwd(password, salt, magic="$1$", **kwargs): """