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
This commit is contained in:
TechHog
2024-11-04 23:14:47 -05:00
committed by GitHub
parent 9c3df58d92
commit 3bfecc3123
+1 -1
View File
@@ -590,7 +590,7 @@ class Login(Gtk.Window):#
#f.close() #f.close()
if os.path.isdir(f'{ os.environ["HOME"] }/.adi'): if os.path.isdir(f'{ os.environ["HOME"] }/.adi'):
rmtree(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( InsAltStore = subprocess.Popen(
InsAltStoreCMD, InsAltStoreCMD,
stdin=subprocess.PIPE, stdin=subprocess.PIPE,