Created
May 15, 2016 16:55
-
-
Save oskar456/38f101c506fb83e69b14b22993feeb88 to your computer and use it in GitHub Desktop.
Recover installation QR codes from Google Authenticator App DB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| echo "select original_name, secret, issuer from accounts;" |\ | |
| sqlite3 authenticator.sqlite |\ | |
| sed -rn 's_^([^|]+)\|([^|]+)\|(.+)$_otpauth://totp/\1?secret=\2\&issuer=\3_p' |\ | |
| while read line | |
| do | |
| ttyqr $line | |
| echo $line | |
| echo "" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment