Skip to content

Commit 6df7787

Browse files
committed
Update related to the #6161
1 parent 6e06114 commit 6df7787

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

‎lib/core/common.py‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4108,6 +4108,19 @@ def getDaysFromLastUpdate():
41084108

41094109
return int(time.time() - os.path.getmtime(paths.SQLMAP_SETTINGS_PATH)) // (3600 * 24)
41104110

4111+
def jitEnabled():
4112+
"""
4113+
Returns True if the experimental JIT compiler is active (Python >= 3.13)
4114+
4115+
>>> jitEnabled() in (True, False)
4116+
True
4117+
"""
4118+
4119+
try:
4120+
return bool(sys._jit.is_enabled())
4121+
except:
4122+
return os.getenv("PYTHON_JIT") == '1'
4123+
41114124
def unhandledExceptionMessage():
41124125
"""
41134126
Returns detailed message about occurred unhandled exception
@@ -4128,7 +4141,8 @@ def unhandledExceptionMessage():
41284141
errMsg += "reproduce the bug. Developers will try to reproduce the bug, fix it accordingly "
41294142
errMsg += "and get back to you\n"
41304143
errMsg += "Running version: %s%s\n" % (VERSION_STRING[VERSION_STRING.find('/') + 1:], (" (%s)" % revision) if revision else "")
4131-
errMsg += "Python version: %s\n" % PYVERSION
4144+
# Note: experimental JIT (Python >= 3.13) has been behind a whole class of reports where an unrelated object ends up bound to a name
4145+
errMsg += "Python version: %s%s\n" % (PYVERSION, " (JIT)" if jitEnabled() else "")
41324146
errMsg += "Operating system: %s\n" % platform.platform()
41334147
errMsg += "Command line: %s\n" % re.sub(r".+?\bsqlmap\.py\b", "sqlmap.py", getUnicode(" ".join(sys.argv), encoding=getattr(sys.stdin, "encoding", None)))
41344148
errMsg += "Technique: %s\n" % (enumValueToNameLookup(PAYLOAD.TECHNIQUE, getTechnique()) if getTechnique() is not None else ("DIRECT" if conf.get("direct") else None))

‎lib/core/settings.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty import six
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.10.10.20"
22+
VERSION = "1.10.10.21"
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)

0 commit comments

Comments
 (0)