FileVault2_Scripts icon indicating copy to clipboard operation
FileVault2_Scripts copied to clipboard

Ran into an issue where certain password characters would cause this …

Open dmmueller opened this issue 8 years ago • 1 comments

…to fail and expose the passwords in the logs.

dmmueller avatar Mar 17 '17 13:03 dmmueller

The issue is that send will read the ${userPass} variable as a flag if it begins with certain characters. I managed to fix this by adding -- before the variable.

send -- \"${userPass}\"

Quote from the expect man page: "The -- flag forces the next argument to be interpreted as a string rather than a flag."

Callisbot avatar Jul 15 '21 20:07 Callisbot