News for hackers. Stuff that matters.
Re:How does Google Authenticator work? by loloquwowndueo on Friday August 27, 2021 @02:48PM (#28331569)
There’s even a program called oathtool which you can use to generate TOTP and HOTP (counter-based and much more prone to skew) codes. You just need the random seed that’s generated when you create a device. I’m not sure how easy it is to extract from the qrcode that web services generate, though. Some identity providers will show the raw random seed.
Re:How does Google Authenticator work? by composer on Friday August 27, 2021 @03:32PM (#28332043)

    oathtool -w1 --base32 --totp $secret
Add a space before the command depending on your shell. Some shells will keep your secret out of history logs.
Re:How does Google Authenticator work? by jmcphers on Friday August 27, 2021 @02:54PM (#28331642)
It's pretty easy to extract! zbarimg -q -raw <png> will do it.

http://manpages.ubuntu.com/manpages/bionic/man1/zbarimg.1.ht...

Re:How does Google Authenticator work? by Jtsummers on Friday August 27, 2021 @02:53PM (#28331628)
https://github.com/google/google-authenticator/wiki/Key-Uri-...

That's the format that gets encoded into the QR code. If you can decode the QR code you can get the secret key easily.

Re:How does Google Authenticator work? by hannob on Friday August 27, 2021 @02:55PM (#28331648)
AFAIR there isn't much to "extract", you simply use any application that can decode the QR code and you get the key which is encoded as a sequence of letters and numbers.