Skip to content

Commit fdbc323

Browse files
committed
One more update for #5295
1 parent 6336389 commit fdbc323

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
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.7.1.10"
23+
VERSION = "1.7.1.11"
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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -926,10 +926,11 @@ class _(dict):
926926
errMsg += "function '%s' ('%s')" % (function.__name__, getSafeExString(ex))
927927
raise SqlmapGenericException(errMsg)
928928

929-
if code in conf.abortCode:
930-
errMsg = "aborting due to detected HTTP code '%d'" % code
931-
singleTimeLogMessage(errMsg, logging.CRITICAL)
932-
raise SystemExit
929+
for _ in (getattr(conn, "redcode", None), code):
930+
if _ is not None and _ in conf.abortCode:
931+
errMsg = "aborting due to detected HTTP code '%d'" % _
932+
singleTimeLogMessage(errMsg, logging.CRITICAL)
933+
raise SystemExit
933934

934935
threadData.lastPage = page
935936
threadData.lastCode = code

0 commit comments

Comments
 (0)