From 1eb6d3670534cfbd0befa326a3c583f5b3dfee19 Mon Sep 17 00:00:00 2001 From: MadcowOG Date: Tue, 28 Jun 2022 17:15:04 -0700 Subject: [PATCH] Fixed issue with password parsing. When parsing control.conf or password file, a newline character is picked up causing Authentication Errors. --- app/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/request.py b/app/request.py index 188efa6..5bab1ac 100644 --- a/app/request.py +++ b/app/request.py @@ -56,7 +56,7 @@ def send_tor_signal(signal: Signal) -> bool: # Scan for the last line of the file. for line in conf: pass - secret = line + secret = line.strip('\n') authenticate_password(c, password=secret) else: cookie_path = '/var/lib/tor/control_auth_cookie'