-1

I have several bots that read data for offices in order to obtain potential customers and one of the sites I use to do this requires authentication where you need the login + password of the user who is accessing and an authentication code from google authenticator. However, this code is generated in a google app for android (Google Authenticator) and I need to extract this code and use it in the backend of another application.

Currently I can get this token using a bot that takes a screenshot of the screen and extracts the token using OCR, but this is very costly and takes a long time because it is an action that sometimes requires several authentications for each search.

I need a way to make this extraction simpler. I did some digging and only found stuff related to Oauth2 authentication that doesn't work for me. Does anyone have a light?

PS: The token is generated on my smartphone with my credentials. Forgive the lack of information, there is no illegality.

  • 2
    What you're doing sounds dodgey. You might be breaking licence agreements or worse. Nevertheless, you can do this progammatically with "Otp.NET". – Enigmativity Aug 28 '23 at 16:17
  • actually it doesn't hurt because 2-factor authentication is to prevent third parties from stealing or acquiring your credentials for other purposes, in this case the credentials are mine, I use them as needed, I'm not breaking any rules that are in my knowledge, but thanks for letting me know, I'll check the security terms to make sure I'm doing the right thing. – Lucas Sousa Aug 28 '23 at 18:18

0 Answers0