Skip to content

Commit acc7b16

Browse files
committed
Fixes #5428
1 parent 48c967c commit acc7b16

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
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.5.4"
23+
VERSION = "1.7.6.0"
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,14 +814,19 @@ class _(dict):
814814
debugMsg = "got HTTP error code: %d ('%s')" % (code, status)
815815
logger.debug(debugMsg)
816816

817-
except (_urllib.error.URLError, socket.error, socket.timeout, _http_client.HTTPException, struct.error, binascii.Error, ProxyError, SqlmapCompressionException, WebSocketException, TypeError, ValueError, OverflowError, AttributeError, OSError, AssertionError):
817+
except (_urllib.error.URLError, socket.error, socket.timeout, _http_client.HTTPException, struct.error, binascii.Error, ProxyError, SqlmapCompressionException, WebSocketException, TypeError, ValueError, OverflowError, AttributeError, OSError, AssertionError, KeyError):
818818
tbMsg = traceback.format_exc()
819819

820820
if conf.debug:
821821
dataToStdout(tbMsg)
822822

823823
if checking:
824824
return None, None, None
825+
elif "KeyError:" in tbMsg:
826+
if "content-length" in tbMsg:
827+
return None, None, None
828+
else:
829+
raise
825830
elif "AttributeError:" in tbMsg:
826831
if "WSAECONNREFUSED" in tbMsg:
827832
return None, None, None

0 commit comments

Comments
 (0)