Handle unknown WebSocket status codes

This commit is contained in:
Your Name 2026-06-02 13:37:29 +02:00
parent c07b15666c
commit 36c55a33fb
3 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.6.2"
VERSION = "1.10.6.3"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
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)

View file

@ -540,7 +540,7 @@ class Connect(object):
ws.close()
code = ws.status
status = _http_client.responses[code]
status = _http_client.responses.get(code, "")
class _(dict):
pass