Skip to content

A small utility to help migrate your 2FA database from one device to another

License

Notifications You must be signed in to change notification settings

danielxt7/2fa_migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2fa_migrator

A small utility I wrote to help me migrate my Android 2FA accounts DB (from Google Authenticator) to iOS.

Dependencies

  1. pull command requires a rooted Android device
  2. pip install -r requirements.txt in your virtualenv before running
  3. Currently supported database formats: Singular Authenticator, Google Authenticator

Usage

Usage: 2fa_migrator.py [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  generate  Generate QR Codes for 2FA database entries
  pull      Pull 2FA database file from your device  

Example

(2famigrator)~/p/2fa_migrator ❯❯❯ ./2fa_migrator.py pull --type GA --dest ga_db.sqlite
pulling db of type 'GA' => ga_db.sqlite
executing 'adb pull /data/data/com.google.android.apps.authenticator2/databases/databases ga_db.sqlite', output:
548 KB/s (6144 bytes in 0.010s)


done.

Now you should have ga_db.sqlite in your CWD, use the generate command to make QR codes out of it:

(2famigrator)~/p/2fa_migrator ❯❯❯ ./2fa_migrator.py generate --type GA --db ga_db.sqlite                                                                    
writing QR Code for 'Google' => Google.png
writing QR Code for 'Facebook' => Facebook.png
writing QR Code for 'Slack' => Slack.png
...

Open *.png and start scanning on your device! :)

About

A small utility to help migrate your 2FA database from one device to another

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages