Minor update

This commit is contained in:
Miroslav Štampar committed 2026-11-04 10:20:01 +01:00
1 parent b333a14d8b
commit f65de0e890
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.11.4"
VERSION = "1.10.11.5"
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)
+1 -1
View File
@@ -606,7 +606,7 @@ class Connect(object):
try:
ws.settimeout(WEBSOCKET_INITIAL_TIMEOUT if kb.webSocketRecvCount is None else timeout)
wsHeaders = tuple("%s: %s" % (getUnicode(key), getUnicode(value)) for key, value in headers.items() if getUnicode(key).upper() != HTTP_HEADER.HOST.upper())
ws.connect(url, header=wsHeaders, cookie=cookie, host_header=getHeader(headers, HTTP_HEADER.HOST) if customWsHost else None)
ws.connect(url, header=wsHeaders, cookie=cookie, hostHeader=getHeader(headers, HTTP_HEADER.HOST) if customWsHost else None)
ws.send(urldecode(post or ""))
_page = []
+3 -3
View File
@@ -61,7 +61,7 @@ class WebSocket(object):
if self.sock is not None:
self.sock.settimeout(timeout)
def connect(self, url, header=None, cookie=None, host_header=None):
def connect(self, url, header=None, cookie=None, hostHeader=None):
parts = _urllib.parse.urlsplit(url)
secure = parts.scheme == "wss"
host = parts.hostname
@@ -78,8 +78,8 @@ class WebSocket(object):
hostport = "[%s]" % host if ":" in host else host # bracket IPv6 literals
if port != (443 if secure else 80): # Note: only the scheme's own default port gets omitted
hostport = "%s:%d" % (hostport, port)
if host_header is not None:
hostport = getText(host_header)
if hostHeader is not None:
hostport = getText(hostHeader)
key = getText(base64.b64encode(os.urandom(16)))
lines = ["GET %s HTTP/1.1" % resource,