A way to extract Authy TOTP tokens using a rooted Android device. Read the full blog post on: https://markuta.com/export-authy-backups/
Use Python 3.12
or above. I also recommend using a virtual environment with venv
to keep things organised.
python3 -m venv .venv
source .venv/bin/activate
pip3 install frida pyotp qrcode
Ensure your rooted Android device is connected via USB and the Frida server is running as root.
python3 authy-offline.py
Output:
- Generates TOTP QR codes
- Generates a aegis_plain JSON file called
exported.json
- Generates a XML file called
exported_authy.xml
with the raw Authy database
NOTE: To ensure the safety of your TOTP tokens, make sure to delete these exports after use!