mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Making sqlmap compatible with PyPy/PyPy3
This commit is contained in:
parent
da86486cd9
commit
c4c1571902
|
@ -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
|
||||
|
||||
try:
|
||||
DEFAULT_SIZE_OF = sys.getsizeof(object())
|
||||
except TypeError:
|
||||
DEFAULT_SIZE_OF = 16
|
||||
|
||||
def _size_of(instance):
|
||||
"""
|
||||
|
|
|
@ -2270,6 +2270,7 @@ def isMultiThreadMode():
|
|||
"""
|
||||
Checks if running in multi-thread(ing) mode
|
||||
|
||||
>>> import time
|
||||
>>> isMultiThreadMode()
|
||||
False
|
||||
>>> _ = lambda: time.sleep(0.1)
|
||||
|
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
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)
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user