Skip to content

Turns a sqlite db from a TFA app (Google Authenticator) and extracts QR codes from it for easy importing!

License

Notifications You must be signed in to change notification settings

solarkennedy/tfa_auth_dump

Repository files navigation

tfa_auth_dump

tfa_auth_dump is a command line utility to take a Two-Factor-Auth application database and dump it into QR codes you can re-import into another phone.

This is useful for:

  • Migrating to a new phone
  • Copying codes from one phne to a backup phone
  • Printing and saving the QR codes in a safe place? (not everyone supports one-time codes)

Screenshot

tfa_auth_dump_screenshot

Installation

Assuming you have your GOPATH setup and stuff.

go get github.com/solarkennedy/tfa_auth_dump

How to Get Your Database

Google Authenticator

scp root@android:/data/data/com.google.android.apps.authenticator2/databases/databases /tmp/android_ga.db
tfa_auth_dump /tmp/android_ga.db

or

make adb

Duo Security

New Style

scp root@android:/data/data/com.duosecurity.duomobile/files/duokit/accounts.json /tmp/duo_accounts.json
tfa_auth_dump /tmp/duo_accounts.json

or

adb root
adb pull /data/data/com.duosecurity.duomobile/files/duokit/accounts.json /tmp/duo_accounts.json
tfa_auth_dump /tmp/duo_accounts.json

Old Style

scp root@android:/data/data/com.duosecurity.duomobile/databases/databases /tmp/duo.db
tfa_auth_dump /tmp/duo.db

About

Turns a sqlite db from a TFA app (Google Authenticator) and extracts QR codes from it for easy importing!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published