Skip to content

Commit 2038512

Browse files
committed
Fixes #5091
1 parent 184454b commit 2038512

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
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.1"
23+
VERSION = "1.6.5.2"
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)

lib/request/connect.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -922,11 +922,13 @@ class _(dict):
922922

923923
socket.setdefaulttimeout(conf.timeout)
924924

925-
if conf.retryOn and re.search(conf.retryOn, page, re.I):
926-
if threadData.retriesCount < conf.retries:
927-
warnMsg = "forced retry of the request because of undesired page content"
928-
logger.warn(warnMsg)
929-
return Connect._retryProxy(**kwargs)
925+
# Dirty patch for Python3.11.0a7 (e.g. https://github.com/sqlmapproject/sqlmap/issues/5091)
926+
if not sys.version.startswith("3.11."):
927+
if conf.retryOn and re.search(conf.retryOn, page, re.I):
928+
if threadData.retriesCount < conf.retries:
929+
warnMsg = "forced retry of the request because of undesired page content"
930+
logger.warn(warnMsg)
931+
return Connect._retryProxy(**kwargs)
930932

931933
processResponse(page, responseHeaders, code, status)
932934

0 commit comments

Comments
 (0)