Skip to content

Commit be98781

Browse files
committed
Patch for #5073
1 parent fb3f428 commit be98781

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.4.4"
23+
VERSION = "1.6.4.5"
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
@@ -338,6 +338,12 @@ def main():
338338
logger.critical(errMsg)
339339
raise SystemExit
340340

341+
elif "invalid maximum character passed to PyUnicode_New" in excMsg and re.search(r"\A3\.[34]", sys.version) is not None:
342+
errMsg = "please upgrade the Python version (>= 3.5) "
343+
errMsg += "(Reference: 'https://bugs.python.org/issue18183')"
344+
logger.critical(errMsg)
345+
raise SystemExit
346+
341347
elif all(_ in excMsg for _ in ("scramble_caching_sha2", "TypeError")):
342348
errMsg = "please downgrade the 'PyMySQL' package (=< 0.8.1) "
343349
errMsg += "(Reference: 'https://github.com/PyMySQL/PyMySQL/issues/700')"

0 commit comments

Comments
 (0)