duo-bypass icon indicating copy to clipboard operation
duo-bypass copied to clipboard

feature: duo_activate.py read text from qr.png

Open karo-solutions opened this issue 2 years ago • 0 comments

Hi,

This PR simplifies the duo_activate.py for the user by automatically reading the QR code in the image qr.png. The QR code png can either be directly copied from the browser ("Save Image As...") or by creating a screenshot.

If the QR code is not recognized by cv2 or the file does not exist, the user will be asked for the QR code text value.

This PR also includes:

  • Write to duotoken.hotp fix: https://github.com/revalo/duo-bypass/pull/4
  • Added pyqrcode to requirements.txt

Thank you very much for your work!

karo-solutions avatar Apr 19 '22 15:04 karo-solutions