charlesbel / Microsoft-Rewards-Farmer

A simple bot that uses selenium to farm Microsoft Rewards written in Python
MIT License
978 stars 261 forks source link

[BUG] Stuck on "2FA" need help. #410

Open Reaperxreside opened 10 months ago

Reaperxreside commented 10 months ago

Before submitting a bug report...

Title

Describe the bug

Dont know how to disable this 2fa, when clicking enter it does nothing. need help

Copy and paste your error

2023-11-30 11:57:07,287 [ERROR] [LOGIN] 2FA required ! 2023-11-30 11:57:07,296 [INFO] [LOGIN] Press enter when confirmed...

Screenshots

image

Value of dashboard variable

dk what this is

cyberpods commented 10 months ago

I'm having the same issue, After authenticating and pressing enter it still just sits.

klept0 commented 10 months ago

check my repo and see if my fork works for you

N0TKZ commented 9 months ago

execute the command with -v and you can complete the "2FA" on the browser

Reaperxreside commented 9 months ago

execute the command with -v and you can complete the "2FA" on the browser

how do i do this?

aliasfoxkde commented 9 months ago

@Reaperxreside When launching the app, use the -v/--visible switch to show the automated selenium browser (default mode is headless). You will be presented by the login page, complete the steps to login (can present several options). Now that you authenticated the "device" which is unique to the selenium session and User Agent it uses, you should be good to go back to headless (default) mode (it might permanently remember the device, last for 90 days, or prompt again for 2FA depending on if you flag your account, etc.).

python main.py -v

Disclaimer: You might risk your account being flagged by using headless mode (I'm not yet sure how true this is), so it's up to you which method you want to use.