From c90250925b6af272e5ad3e674880823db3afc45e Mon Sep 17 00:00:00 2001 From: Dennis Mueller Date: Fri, 17 Mar 2017 06:34:40 -0700 Subject: [PATCH] Ran into an issue where certain password characters would cause this to fail and expose the passwords in the logs --- reissueKey.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reissueKey.sh b/reissueKey.sh index 7895468..d02e46a 100644 --- a/reissueKey.sh +++ b/reissueKey.sh @@ -92,7 +92,7 @@ if [[ $OS -ge 9 ]]; then log_user 0 spawn fdesetup changerecovery -personal expect \"Enter a password for '/', or the recovery key:\" - send {${userPass}} + send \"${userPass}\" send \r log_user 1 expect eof