diff --git a/client-py3/full/linux/installer-appimage-template.sh b/client-py3/full/linux/installer-appimage-template.sh index 571ddee86..b4720920a 100644 --- a/client-py3/full/linux/installer-appimage-template.sh +++ b/client-py3/full/linux/installer-appimage-template.sh @@ -9,6 +9,7 @@ fi echo "Installing UDSClient Portable..." cp UDSClient-0.0.0-x86_64.AppImage /usr/bin +chmod 755 /usr/bin/UDSClient-0.0.0-x86_64.AppImage cp UDSClient.desktop /usr/share/applications update-desktop-database diff --git a/client-py3/full/src/uds/tunnel.py b/client-py3/full/src/uds/tunnel.py index 8fc177e7d..82b828e84 100644 --- a/client-py3/full/src/uds/tunnel.py +++ b/client-py3/full/src/uds/tunnel.py @@ -68,7 +68,6 @@ class ForwardServer(socketserver.ThreadingTCPServer): keep_listening: bool current_connections: int status: int - initial_payload: PayLoadType def __init__( self, @@ -78,7 +77,6 @@ class ForwardServer(socketserver.ThreadingTCPServer): local_port: int = 0, check_certificate: bool = True, keep_listening: bool = False, - initial_payload: PayLoadType = None, ) -> None: local_port = local_port or random.randrange(33000, 53000) @@ -94,8 +92,6 @@ class ForwardServer(socketserver.ThreadingTCPServer): self.stop_flag = threading.Event() # False initial self.current_connections = 0 - self.initial_payload = initial_payload - self.status = TUNNEL_LISTENING self.can_stop = False @@ -200,16 +196,6 @@ class Handler(socketserver.BaseRequestHandler): # All is fine, now we can tunnel data - # If we have a payload, send it - if self.server.initial_payload: - to_send, to_receive = self.server.initial_payload - if to_send: # To send - ssl_socket.sendall(to_send) - if to_receive: - temp = ssl_socket.recv(len(to_receive)) - if temp != to_receive: - raise Exception(f'Invalid response: {temp!s} != {to_receive!s}') - self.process(remote=ssl_socket) except Exception as e: logger.error(f'Error connecting to {self.server.remote!s}: {e!s}') @@ -271,7 +257,6 @@ def forward( local_port=local_port, check_certificate=check_certificate, keep_listening=keep_listening, - initial_payload=initial_payload, ) # Starts a new thread threading.Thread(target=_run, args=(fs,)).start()