Saturday, 15 November 2014

Android Google Authenticator Backup 2FA codes

I have been trying to find a method to recover the 200 accounts I have 2FA configured for. Here is the magic sauce.
This is pretty straight forward on Ubuntu.
$ sudo apt-get install android-tools-adb
$ adb root
or
$ adb shell
$ ./su
$ adb pull /data/data/com.google.android.apps.authenticator2/databases/databases
$ sqlite3 ./databases "select * from accounts" > /Volumes/TRUECRYPT_ENCRYPTED_VOLUME/google_authenticator_backup.txt
view raw gistfile1.txt hosted with ❤ by GitHub
You can now key in the code manually.

No comments:

Post a Comment