Code Monkey home page Code Monkey logo

google-authenticator-exporter's Introduction

Google Authenticator secret extractor

Note: This project and I are in no way affiliated with Google.

This lets you decode the URI generated by Google Authenticator.

Example

Guide

Prerequisites:

Getting the secret keys:

  1. Open the Google Authenticator app.
  2. Click Settings (three dots, top right), and Transfer accounts.
  3. Select Export accounts.
  4. Authenticate, if prompted.
  5. Select the accounts you want to export (default is all).
  6. Click Next, and capture a picture of the QR code.
    • Note: Screenshots are disabled by the app. Use your laptop webcam, a digital camera or another phone.
  7. Click Next, and repeat step 6 for all QR codes shown (if you have many accounts).
  8. Decode the QR codes to obtain the otpauth-migration://offline?data=... URI.
  9. Clone/Download this repository.
  10. Run npm install.
  11. For generating json runnpm run start, for generating qr-codes run npm run start:qrcode.
  12. Enter the URI when prompted
  13. If you chose json and you want to save the output, enter y and accounts.json

Use a docker image

Prerequisites:

Build the docker image locally:

docker build . --tag google-authenticator-exporter:0.0.1

Decode an obtained QR code URI:

  1. Run the docker container locally:
docker run -it --rm google-authenticator-exporter:0.0.1
  1. Enter the URI when prompted
  2. Since you haven't mounted a volume, you cannot save the output using the above command, so leave the next questions empty (hit Enter).
  3. The output to json will be printed out to terminal.

References

I found the protobuff code in https://github.com/beemdevelopment/Aegis/pull/406/files. The opensource Google Authenticator does not seem to have this yet (5th May 2020): google/google-authenticator-android#118.

A QR scanner app for Android that works is https://play.google.com/store/apps/details?id=com.google.zxing.client.android.

The Base32 format is specified in https://tools.ietf.org/html/rfc3548. There are multiple ways to implement Base32.

License: MIT, BUT this uses GNU GPL 3 code as a dependency (https://github.com/alexbakker/Aegis/blob/56bde0e19b51568a7050f6cb56085a1bb38c5a9e/app/src/main/proto/google_auth.proto) (https://github.com/alexbakker/Aegis/blob/56bde0e19b51568a7050f6cb56085a1bb38c5a9e/LICENSE)

google-authenticator-exporter's People

Contributors

krissrex avatar trulsstenrud avatar dependabot[bot] avatar deepdesai003 avatar georgeyord avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.