Last active
January 27, 2022 21:11
-
-
Save DavidMoraisFerreira/6534af3ad7132565dc9d2c414ec8fc64 to your computer and use it in GitHub Desktop.
Extract OTP codes and visualise them as QR codes from an encrypted FreeOTP ADB export
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/zsh | |
adb start-server | |
adb backup -f android-org.fedorahosted.freeotp.adb org.fedorahosted.freeotp | |
git clone https://github.com/nelenkov/android-backup-extractor.git | |
cd android-backup-extractor | |
./gradlew | |
export $ABE_PASSWD=<yourPasswordHereWithoutBrackets> | |
java -jar build/libs/abe-all.jar unpack android-org.fedorahosted.freeotp.adb android-org.fedorahosted.freeotp.tar | |
cd .. | |
git clone https://github.com/viljoviitanen/freeotp-export.git | |
cd freeotp-export | |
open export-xml.html # In your browser | |
# (1) Select your tar file, (2) open your new OTP App and (3) scan the QR codes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment