Skip to content

Commit c4c1571

Browse files
committed
Making sqlmap compatible with PyPy/PyPy3
1 parent da86486 commit c4c1571

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

lib/core/bigarray.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
from lib.core.settings import BIGARRAY_CHUNK_SIZE
2323
from lib.core.settings import BIGARRAY_COMPRESS_LEVEL
2424

25-
DEFAULT_SIZE_OF = sys.getsizeof(object())
25+
try:
26+
DEFAULT_SIZE_OF = sys.getsizeof(object())
27+
except TypeError:
28+
DEFAULT_SIZE_OF = 16
2629

2730
def _size_of(instance):
2831
"""

lib/core/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,7 @@ def isMultiThreadMode():
22702270
"""
22712271
Checks if running in multi-thread(ing) mode
22722272
2273+
>>> import time
22732274
>>> isMultiThreadMode()
22742275
False
22752276
>>> _ = lambda: time.sleep(0.1)

lib/core/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty.six import unichr as _unichr
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.5.5.7"
22+
VERSION = "1.5.5.8"
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/utils/hash.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def crypt_generic_passwd(password, salt, **kwargs):
351351
'rl.3StKT.4T8M'
352352
"""
353353

354-
return crypt(password, salt)
354+
return getText(crypt(password, salt))
355355

356356
def unix_md5_passwd(password, salt, magic="$1$", **kwargs):
357357
"""

0 commit comments

Comments
 (0)