Skip to content

Commit 9dc1344

Browse files
committed
Patch for #5102
1 parent e8e7d66 commit 9dc1344

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.5.3"
23+
VERSION = "1.6.5.4"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

sqlmap.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,12 @@ def main():
369369
logger.critical(errMsg)
370370
raise SystemExit
371371

372+
elif "AttributeError: unable to access item" in excMsg and re.search(r"3\.11\.\d+a", sys.version):
373+
errMsg = "there is a known issue when sqlmap is run with ALPHA versions of Python 3.11. "
374+
errMsg += "Please downgrade to some stable Python version"
375+
logger.critical(errMsg)
376+
raise SystemExit
377+
372378
elif all(_ in excMsg for _ in ("Resource temporarily unavailable", "os.fork()", "dictionaryAttack")):
373379
errMsg = "there has been a problem while running the multiprocessing hash cracking. "
374380
errMsg += "Please rerun with option '--threads=1'"

0 commit comments

Comments
 (0)