News for hackers. Stuff that matters.
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by mr_mitm on Friday October 18, 2024 @10:06AM (#41879604)
Well, I do it a lot. I do consulting in IT security and go through the onboarding process of a different company 15 times a year. My customers and co-workers are often security conscious and sometimes give me passwords like RC-A"c\EJe,0l@q. I prefer the US layout but live in Germany, so there is often a mismatch between my physical keyboard and the system I'm typing on, which causes me great frustration. Typing in the LUKS password of a VMware machine via vSphere web console does not allow copy/paste, neither does logging in to a physical device provided by the customer.

I realize I'm far from a typical use case, which is why I'm so glad when people consider password ergonomics. It makes life easier for me and does not make it harder for anyone else.

Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by mmh0000 on Friday October 18, 2024 @12:17PM (#41880815)
This is an easily solved problem through both software and hardware. If you are frequently typing complex passwords, consider some alternatives:

Software typing of password:

Linux - ydotool / xdotool. Win/Mac have similar tools:

  $ sleep 5 ; xdotool type 'RC-A"c\EJe,0l@q'
>> physical device provided by the customer.

Hardware : Rubber Ducky - https://shop.hak5.org/products/usb-rubber-ducky

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:

    sleep 3; xdotool type "abc123"
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.
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by gruturo on Monday October 21, 2024 @08:11AM (#41903285)
Careful that's only true if you set HISTCONTROL to "ignorespace" or "ignoreboth".
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by bombela on Monday October 21, 2024 @02:26PM (#41906913)
Which seems the default in my anecdotal experience on debian/Ubuntu.

It is also the default on fish shell in the same anecdotal experience.

Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by umanwizard on Friday October 18, 2024 @12:51PM (#41881198)
I would simply save that into 1password and never have to type it or remember it ever again.

In your obscure set of requirements (no paste?), yes you might have to copy it again, but at least you don't have to remember it.

Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by butlike on Friday October 18, 2024 @01:11PM (#41881400)
1?Z-2>@.#x3O0_l^,fNO%0o

Your comment was interesting to me, so I was trying to come up with the most "ergonomically unsound" password. How did I do?

Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by ziddoap on Friday October 18, 2024 @01:50PM (#41881787)
Add a double space somewhere, and append single space to the end just to be safe.
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by mr_mitm on Friday October 18, 2024 @03:30PM (#41882671)
Maybe there is a single space at the end. No way to know. Well done, GP.
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by encom on Friday October 18, 2024 @01:52PM (#41881806)
Just have Keepass pick from the extended ASCII set

    Å`÷½¸Å^çÏ+Í?«~Ðñø'`¾
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by svieira on Friday October 18, 2024 @03:53PM (#41882879)
I see you, and I raise you

    ĮǶľƶₔâ¾ijĤĬď©‘¦ı‰ęž‰śij²ÔķՎĜ́北¹«ƶ’–­ħ›ĸ«
Re:Ricky Mondello » Apple Passwords' Generated Strong Passwo... by EasyMark on Saturday October 19, 2024 @12:33AM (#41885658)
well I want to have some chance at typing it in if I absolutely must...