From e8e9b9558fed87a61be5d1975cff4fb69e8e79cc Mon Sep 17 00:00:00 2001 From: iiLaurens Date: Sun, 5 Jan 2020 23:37:13 +0100 Subject: [PATCH] Use binary username and password in sendLogin --- txsocksx/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/txsocksx/client.py b/txsocksx/client.py index ab3eaaf..96a9a95 100644 --- a/txsocksx/client.py +++ b/txsocksx/client.py @@ -92,8 +92,8 @@ def sendAuthMethods(self, methods): def sendLogin(self, username, password): self.transport.write( b'\x01' - + to_binary(chr(len(username))) + username - + to_binary(chr(len(password))) + password) + + to_binary(chr(len(username))) + to_binary(username) + + to_binary(chr(len(password))) + to_binary(password)) def sendRequest(self, command, host, port): data = struct.pack('!BBB', c.VER_SOCKS5, command, c.RSV)