From c28d68799f44ac42fc560a62e5cfb08662ce892c Mon Sep 17 00:00:00 2001 From: Jonathan Prince Date: Thu, 18 Jun 2026 18:13:52 +0200 Subject: [PATCH] change tls to use lax tls version and legacy ciphers --- hackterm-core/hackterm_core/proxy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hackterm-core/hackterm_core/proxy.py b/hackterm-core/hackterm_core/proxy.py index 9928111..bcc8de8 100644 --- a/hackterm-core/hackterm_core/proxy.py +++ b/hackterm-core/hackterm_core/proxy.py @@ -92,6 +92,8 @@ def connect_to_server(self) -> None: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if self.use_tls: ctx = ssl._create_unverified_context() + ctx.minimum_version = ssl.TLSVersion.TLSv1 + ctx.set_ciphers("DEFAULT@SECLEVEL=0") sock = ctx.wrap_socket(sock, server_hostname=self.target_addr[0]) sock.connect(self.target_addr) self.server = sock