Derpitron / Discord-OTP-Forcer

Selenium based discord OTP forcer
GNU Affero General Public License v3.0
43 stars 12 forks source link

[Bug]: script is ineffective after 10 min of working in login/normal modes #117

Closed jurbek closed 2 weeks ago

jurbek commented 1 month ago

Description

I tested the script on the account I've got Authenticator app for. I filled in the correct code after 5/10/15 min from the start of script execution and found out that if the script is running for more than 10 min, it will always say 'Invalid two-factor code' even if you filled in the correct code from your Authenticator app.

As mentioned here (https://github.com/Derpitron/Discord-OTP-Forcer/issues/58), the program is supposed to re-run once it hits 300 sec mark but that doesn't happen in login/normal mode anymore.

Question: what would happen if the TOTP code actually worked while I'm afk. Will the script still be running and reset the successful log-in after 300 sec?

Thanks!

Minimal Reproduction

  1. Run the script for >10 min in login/normal mode
  2. Put the correct TOTP code

Error

"Invalid two-factor code"

Operating System Version

Win10

Python Version

Python 3.10

Program Version

latest

Any other information or context?

No response

Derpitron commented 1 month ago

I'm not able to reproduce this at all. I've been running for over 10 minutes, and there is no error at all.

Do you do anything else while the program is running? E.g lock your PC?

jurbek commented 1 month ago

The error is "Invalid two-factor code" while the code is actually valid and correct (because it's from Authenticator app)

As I told, I tested the script with the account I've got access to

image

Nope, I don't lock my PC, just using it in a regular way ofc

So is your program able to re-run each 10 min?

Derpitron commented 1 month ago

Invalid two-factor code, while the code in the screenshot was actually correct?

jurbek commented 1 month ago

Yeah!

Derpitron commented 1 month ago

As I'm not able to reproduce this bug myself I can't test or implement this.

It might be better if you created a cronjob to run/kill the program every 10 minutes.