Duo Command Line App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xBytez fb57239727
Merge pull request #2 from xBytez/feature/quiet-generation
2 years ago
.gitignore Improve gitignore. 3 years ago
README.md Add qr code generator for third party apps. 3 years ago
duo_activate.py Fix filename in argument example. Change URL format to Duo's new QR code format. Update device details to be a bit more descriptive and more recent versions. Fix Python 3 support. Remove functionality to generate tokens on activation. 2 years ago
duo_export.py Add qr code generator for third party apps. 3 years ago
duo_gen.py Don't ouput secret, count by default. Don't prepend token with "Code: " by default. 2 years ago
requirements.txt Pin dependencies to make sure the script stays functional. 2 years ago

README.md

Duo One Time Password Generator

This is a little script I put together after I reverse engineered the Duo 2FA Mobile App and figured out how their auth flow works. This can be ported into probably a useful desktop app or chrome extention and can probably be used to write bots for MIT Services that require auth.

Usage

Install stuff,

pip install -r requirements.txt

Just grab the QR Code URL and copy the string after value

https://api-XXX.duosecurity.com/frame/qr?value={VALUE}

./duo_activate.py {VALUE}

If everything worked you can then generate a code by running:

./duo_gen.py

Warning: These are HOTP tokens and generate codes increments a counter. If you get too far out of sync with the server it will stop accepting your codes.

./duo_export.py

Export the duo hotp secret as a QR code for inclusion in third-party hotp apps like freeotp.