vogler / free-games-claimer

Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG.
GNU Affero General Public License v3.0
2.21k stars 139 forks source link

Use nocaptchaai.com for hcaptcha challenges? #179

Closed gabbelitoV2 closed 10 months ago

gabbelitoV2 commented 11 months ago

I have found an hcaptcha solver that is free you get 200 a day then after 24 hours you get 200 new ones https://nocaptchaai.com/ you could put it in the code

vogler commented 11 months ago

There's code for using https://www.nopecha.com: https://github.com/vogler/free-games-claimer/blob/b5ead8ea21129830596f7058775c97e9832813e9/epic-games.js#L20-L21

However, you shouldn't get any captcha challenge. It'd be better to find out the reason why you get them (too many failed logins per IP?), rather than trying to work around it.

gabbelitoV2 commented 11 months ago

okay

how do you get it in the code

vogler commented 11 months ago

You should be able to just add any extension when the browser is open (e.g. when waiting for login).

gabbelitoV2 commented 11 months ago

image that's what I did but it doesn't solve the hcaptcha

vogler commented 11 months ago

If you want to do it like that, you need to add back the nopecha directory which was removed in this commit.

gabbelitoV2 commented 11 months ago

have done it

gabbelitoV2 commented 11 months ago

can you not put in https://nocaptchaai.com for me it says I have vpn on NopeCHA even though I don't

gabbelitoV2 commented 11 months ago

the other works https://nocaptchaai.com/

vogler commented 11 months ago

Playwright doesn't support loading extensions in Firefox: https://github.com/microsoft/playwright/issues/7297

Was there a problem with just manually adding the extension in the browser? As long as you don't delete data/browser it should keep working.

If you want to integrate it in the code, you can:

  1. change the browser back to Chromium and load the extension (probably a lot of work and you'll get more captcha challenges)
  2. try one of the workarounds in https://github.com/microsoft/playwright/issues/7297 for loading the extension in Firefox

However, I'd recommend looking into why you are getting a captcha challenge in the first place. Do you share your IP (CGNAT etc.)? Do you get captcha challenges in your normal browser?

yoshimo commented 11 months ago

If the connection offers both Ipv4 and v6 do you use the v6 one? Many isps share one v4 adress for multiple users by default.

vogler commented 11 months ago

Whatever Firefox will do, I guess it should prefer IPv6. You can check https://ipv6-test.com, but it's not very reliable for me.