18 ms·
.. and now the password is stored unencrypted in your bash history.
by didsomeonesay 2y ago
.. and now the password is stored unencrypted in your bash history.
- aftbit 2y agoThat's a feature, not a bug. :P Alright if you prefer: read PW; sleep 3; xdotool type "$PW" Or if it's already on your clipboard: sleep 3; xdotool type "$(xclip -o)"
- mmh0000 2y agoUse the `read` method the other poster said, or ensure HISTCONTROL is set and then prepend a space to commands that contain secrets. $ export HISTCONTROL=ignoreboth $ echo 'supersecret' | whatever
- bombela 2y agoPrefix any command with a space and bash won't append to the history.