This project aims at providing a single executable program to extract the OTP accounts from the QR code image exported from Google Authenticator, inspired by extract_otp_secret_keys written in Python.
Download the execuable binary from Releases, and run the executable binary with -i
option.
For example, download the executable binary google_authenticator_extractor-x86_64-apple-darwin
for Mac OSX, and run the following command in terminal:
chmod a+x google_authenticator_extractor-x86_64-apple-darwin
./google_authenticator_extractor-x86_64-apple-darwin -i /path/to/qrcode-image
Note: OSX may prevent it from running with the message
“google_authenticator_extractor-x86_64-apple-darwin” cannot be opened because the developer cannot be verified.
. You need to go toSystem Preferences
-Security & Privacy
-General
to allow it.
The output looks like as below:
[{"name":"******","secret":"**********","issuer":"******"},{"name":"*****","secret":"************","issuer":""}]
Rust is the programming language of the project, Install Rust by following the instructions in the official doument.
Install protobuf with Homebrew:
brew install protobuf
Build the project
./build.sh
Install protobuf with apt-get
:
sudo apt-get update
sudo apt-get install -y protobuf-compiler
Build the project:
./build.sh
Build the docker image with the Dockerfile
:
docker build . -t google_authenticator_extractor
Run the docker image and with command bash
, then you'll be in the docker container.
docker run -v ./:/app --rm -it google_authenticator_extractor bash
The Github actions defined steps cross compilation, which are running on CI as well. Currently the following cross compilations are supported.
x86_64-pc-windows-gnu
on Mac OSX.x86_64-unknown-linux-gnu
on Mac OSX.x86_64-pc-windows-gnuu
on Ubuntu.Check the Github Workflow for more details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型