News for hackers. Stuff that matters.
Re:Tell HN: It is impossible to disable Google 2FA using bac... by jvanderbot on Thursday January 19, 2023 @03:43PM (#34445350)
for the curious:

function 2fa(){

          local sec=$(pass show $1.secret)

          local code=$(oathtool -b --totp "$sec")

          echo $code | xsel -ib

          echo "Copied $code"
}

then call it as `2fa <account>`, and make sure you store each <account>'s secret as `pass insert <account>.secret -e`.

refs: https://www.cyberciti.biz/faq/use-oathtool-linux-command-lin...

There are no comments on this comment yet.