mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-24 10:33:47 +03:00
One more update for #5295
This commit is contained in:
parent
6336389322
commit
fdbc323aa6
|
@ -20,7 +20,7 @@ from thirdparty import six
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.7.1.10"
|
VERSION = "1.7.1.11"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -926,8 +926,9 @@ class Connect(object):
|
||||||
errMsg += "function '%s' ('%s')" % (function.__name__, getSafeExString(ex))
|
errMsg += "function '%s' ('%s')" % (function.__name__, getSafeExString(ex))
|
||||||
raise SqlmapGenericException(errMsg)
|
raise SqlmapGenericException(errMsg)
|
||||||
|
|
||||||
if code in conf.abortCode:
|
for _ in (getattr(conn, "redcode", None), code):
|
||||||
errMsg = "aborting due to detected HTTP code '%d'" % code
|
if _ is not None and _ in conf.abortCode:
|
||||||
|
errMsg = "aborting due to detected HTTP code '%d'" % _
|
||||||
singleTimeLogMessage(errMsg, logging.CRITICAL)
|
singleTimeLogMessage(errMsg, logging.CRITICAL)
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user