Skip to content

Instantly share code, notes, and snippets.

View seth2810's full-sized avatar
🏄‍♂️
Gliding through the code

Roman Gafurov seth2810

🏄‍♂️
Gliding through the code
View GitHub Profile
@seth2810
seth2810 / google-authenticator.sh
Created December 24, 2020 16:46 — forked from Malvineous/google-authenticator.sh
Shell script to generate Google Authenticator codes
#!/bin/sh
# This is the path to the Google Authenticator app file. It's typically located
# in /data under Android. Copy it to your PC in a safe location and specify the
# path to it here.
DB="/path/to/com.google.android.apps.authenticator/databases/databases"
sqlite3 "$DB" 'SELECT email,secret FROM accounts;' | while read A
do
NAME=`echo "$A" | cut -d '|' -f 1`