Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo...
by aftbit on Friday October 18, 2024 @11:38AM
(#41880414)
I do something like this surprisingly often when dealing with iDRAC/IPMI/etc:
[ Parent
| on HN ]
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo...
by rkeene2 on Friday October 18, 2024 @11:44AM
(#41880479)
When I was doing that a lot I just patched my VNC client to send the keys for the data in the clipboard on "paste" so I could use its native "paste" command
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo...
by didsomeonesay on Friday October 18, 2024 @12:02PM
(#41880654)
.. and now the password is stored unencrypted in your bash history.
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo...
by mmh0000 on Friday October 18, 2024 @12:20PM
(#41880861)
Use 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
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo...
by aftbit on Friday October 18, 2024 @12:17PM
(#41880819)
That'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)"
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo...
by bombela on Saturday October 19, 2024 @01:06PM
(#41889003)
Prefix any command with a space and bash won't append to the history.