From 3bfecc3123eb2b7802a9253e019bf3fdcfb757f0 Mon Sep 17 00:00:00 2001 From: TechHog <77560013+TechHog8984@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:14:47 -0500 Subject: [PATCH] wrap password in quotes a password containing certain characters causes sh to throw an error. this includes quotes themselves and thus further sanitization should be done --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 68204c7..d780bd8 100644 --- a/main.py +++ b/main.py @@ -590,7 +590,7 @@ class Login(Gtk.Window):# #f.close() if os.path.isdir(f'{ os.environ["HOME"] }/.adi'): rmtree(f'{ os.environ["HOME"] }/.adi') - InsAltStoreCMD = f"""{export_anisette} ; {(AltServer)} -u {UDID} -a {apple_id} -p {password} {PATH} > {("$HOME/.local/share/althea/log.txt")}""" + InsAltStoreCMD = f"""{export_anisette} ; {(AltServer)} -u {UDID} -a {apple_id} -p \"{password}\" {PATH} > {("$HOME/.local/share/althea/log.txt")}""" InsAltStore = subprocess.Popen( InsAltStoreCMD, stdin=subprocess.PIPE,