Skip to content

Conversation

@dmmueller
Copy link

…to fail and expose the passwords in the logs.

…to fail and expose the passwords in the logs
@Callisbot
Copy link

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."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants