Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epic-games: docker: captcha before it claims the game #183

Open
Darkkingwill opened this issue Aug 18, 2023 · 198 comments
Open

epic-games: docker: captcha before it claims the game #183

Darkkingwill opened this issue Aug 18, 2023 · 198 comments

Comments

@Darkkingwill
Copy link

Darkkingwill commented Aug 18, 2023

Hello. im getting a captcha right before it claims the game. Its says one more step. Im using an unraid docker if that helps

@guipace
Copy link

guipace commented Aug 18, 2023

+1 on this issue

@vogler
Copy link
Owner

vogler commented Aug 18, 2023

I don't get any. What's your setup? Shared IP via CGNAT? Do you get captcha challenges in your local browser as well?

@maxp1110
Copy link

Since I solve the captcha-problem during login, I also get a hcaptcha-challenge everytime it tries to claim the game. Have to log into noVNC to solve. No problems when doing it on my desktop maschine.
Vodafone Cable as ISP.

@DevXen
Copy link

DevXen commented Aug 18, 2023

Yeah I get this issue too with the unraid docker. But this has one happened for the past week or two.

@Darkkingwill
Copy link
Author

i was looking through the logs and it told me untrusted ip too many login attempts. i had to get another ip address. I ended up running the container through a vpn and i will test it next time theres free games

@Cexitime
Copy link

Hi, been having this issue as well, I can click the captures in the vnc window to solve them temporarily, This is the logs when the issue occurs, not sure why its complaining about too many login attempts, its literally this container that logs in and it does so successfully every time. Not behind CGNAT on IPv4 only, no IPv6 Available for me yet.

I'll refresh my IP later and check again next time a game is released. Forgot to mention im running this in a docker container on Unraid

19/08/2023 11:49:24 am
Current free game: Black Book
19/08/2023 11:49:24 am
Not in library yet! Click GET.
19/08/2023 11:49:38 am
Got hcaptcha challenge! Lost trust due to too many login attempts? You can solve the captcha in the browser or get a new IP address.
19/08/2023 11:49:55 am
Claimed successfully!
19/08/2023 11:50:03 am
Current free game: Dodo Peak
19/08/2023 11:50:03 am
Not in library yet! Click GET.
19/08/2023 11:50:15 am
Got hcaptcha challenge! Lost trust due to too many login attempts? You can solve the captcha in the browser or get a new IP address.
19/08/2023 11:50:30 am
Claimed successfully!

@vogler
Copy link
Owner

vogler commented Aug 19, 2023

Ok, just to confirm: everyone that has the issue is using Unraid?
Please try if you have the issue using the docker run ... command on a different machine in your local network.

@vogler
Copy link
Owner

vogler commented Aug 19, 2023

Are you using this template: https://github.com/Nackophilz/unraid_templates/blob/main/free-games-claimer/free-games-claimer.xml?
There seems nothing wrong with it, so it must be something about Unraid.
It's weird, but there have been other issues dependent on the host OS: #149 (HAOS), #173 (Arch).

@Cexitime
Copy link

Are you using this template: https://github.com/Nackophilz/unraid_templates/blob/main/free-games-claimer/free-games-claimer.xml? There seems nothing wrong with it, so it must be something about Unraid. It's weird, but there have been other issues dependent on the host OS: #149 (HAOS), #173 (Arch).

I am using that template, it is the one available on the community apps plugin for Unraid.

@maxp1110
Copy link

No, I am not using unraid. Proxmox Server with a docker lxc image from tteck (proxmox helper scripts). Inside the lxc, I run your docker run command.
Best

@yoshimo
Copy link

yoshimo commented Aug 19, 2023

I use a Pi4 with UmbrelOS and run the docker container linked on this repos main page directly
I get the captcha even when i renewed my ip adresses right before starting the docker container.

@DevXen
Copy link

DevXen commented Aug 19, 2023

Screenshot_20230819_102818_Spark
Here's an email I'm getting every day. But cause of the capcha after you click get the games.

I haven't claimed them yet. And can this weekend to try anything you may want. I can vpn to my server the rest of the week but I can't move the window to click on or do anything with the webgui.

@yoshimo
Copy link

yoshimo commented Aug 19, 2023

I tried a few times to solve the captchas and it still occurs on the next try

@pechex
Copy link

pechex commented Aug 19, 2023

Same issue on rpi4 running DietPi

@UltraHQ
Copy link

UltraHQ commented Aug 19, 2023

Running on rpi4 raspios docker, same issue
edit: having this issue since I installed it, so since at least a month

Captcha does not occur on my desktop pc though

@vogler
Copy link
Owner

vogler commented Aug 20, 2023

Here's an email I'm getting every day.

@DevXen I thought about that problem before. In cases like this, it might be good to have the option to only send notifications when the status changed.

@yoshimo
Copy link

yoshimo commented Aug 20, 2023

But if you run it standalone without supervision you won't notice if the store changes and the tool breaks. You should notify either way.

@vogler
Copy link
Owner

vogler commented Aug 20, 2023

You would. It would just not send the same message multiple times.

@vogler
Copy link
Owner

vogler commented Aug 20, 2023

It's a bit of detective work to figure out what may be the reason.

Many of you mentioned rpi4. Maybe your setups are too slow since captcha services do computations in JS and check the performance. Did someone with a rpi4 try running it without docker?
You can always run it for free in the cloud: https://github.com/vogler/free-games-claimer/wiki/Host-and-run-free-games-claimer-in-the-cloud-periodically

I made a spreadsheet where you can put in your data: https://docs.google.com/spreadsheets/d/1ulC4E59Hs7aDvpgN-D_QFT3lEmf_j88zY9TMve6faQ4/edit?usp=sharing

  • captcha fgc: no / login / claim / both
  • catpcha other: do you get a challenge on the host / other computer in your network?
  • docker/VM: no / docker version / podman / proxmox / lxc / VM...

Make sure that you run the latest version and keep your data/browser (having to login every time may also increase the risk of getting a captcha challenge).

@minkshaman
Copy link

added mine for you

@Nackophilz
Copy link

The same goes for me: for some time now, I've been having constant hcaptchas ^^'.

I use my template for unraid of course haha

I don't think it's related to Unraid or anything, but maybe it's just the method that ended up being flagged?

@KarlLee830
Copy link

I also encountered the same problem, also using unraid docker

@yoshimo
Copy link

yoshimo commented Aug 20, 2023

It feels like the browser is a lot slower in the docker container compared to the computer, although i think a raspberry with 4x1,8ghz and 4gb ram shouldn't be too slow. It worked fine a few weeks before.

@Lavoslav
Copy link

Docker in UnRaid, template from community apps,
captcha just before claim on both games
added in spreadsheet

@DGMayor
Copy link

DGMayor commented Aug 21, 2023

added to spreadsheet. I just set this up about two weeks ago, and Epic has been giving me captcha since the start, unfortunately.

@DevXen
Copy link

DevXen commented Aug 25, 2023

So I wanted to add it's not an IP based limit. I just connected to my home server vpn and claimed the game on my phone just fine with no captcha.

@nodiaque
Copy link

I have 3 docker and 2 out of 3 does it. It started out of nowhere.

@Slothoncrack
Copy link

I also have this problem, every time. A few weeks ago it used to work fine. Running on Raspi 4 4GB, docker crontab.

@BetterToAutomateTheWorld

Hi, i'm experiencing the same issue, does anybody fixed it ? Or have workaround tips

@DGMayor
Copy link

DGMayor commented Aug 24, 2024

Apparently all these failed captchas took their toll. Just received an email:

**You’re receiving this email because we noticed suspicious activity on your Epic Games account. Most often, the cause of this type of activity is the result of using the same password on multiple websites, use of a weak password, or phishing.

To keep your account safe, we’ve initiated a password reset, so you’ll need to change the password before logging in again. Below you’ll find helpful tips to ensure your account remains secure!

| Use this link to reset your password:**

@Julian1984
Copy link

Julian1984 commented Sep 6, 2024

Having the same issue (couldn’t get a OK from the captcha) using a W11 VM over Proxmox, when claiming the game.
Login resolved via setting an existing cookie from a non virtualize computer. As said, a full W11, with dedicated graphics card, and so on…

@jordyamc
Copy link

Doing some testing I got to pass the cloudflare captcha using puppeteer-real-browser, puppeteer API is different from playwright so a lot needs to be migrated, but at least the simple test I did trying to log in was successful

@slimshizn
Copy link

Doing some testing I got to pass the cloudflare captcha using puppeteer-real-browser, puppeteer API is different from playwright so a lot needs to be migrated, but at least the simple test I did trying to log in was successful

Any chance you can make a pr? Maybe we can finally nip this in the bud.

@CoreyD97
Copy link

CoreyD97 commented Sep 24, 2024

I did some extra testing on this last night, running the script on a Proxmox host. Re-enabling webgl and disabling the webgl.vendor stealth evasion allowed me to claim games with SHOW=1 but not headless.

I also commented out the userAgent and locale overrides too. I imagine locale could have contributed for me, since it would expect en-GB but received en-US.

@FroggMaster
Copy link

FroggMaster commented Sep 26, 2024

Having the same issue (couldn’t get a OK from the captcha) using a W11 VM over Proxmox, when claiming the game. Login resolved via setting an existing cookie from a non virtualize computer. As said, a full W11, with dedicated graphics card, and so on…

Can you elaborate on how you did this? Seems like a reasonable enough workaround in the meantime.

@FroggMaster
Copy link

I've copied the userAgent string from my personal Windows/Firefox install. I replaced the string that is currently present in epic-games.js

userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0', // see replace of Headless in util.newStealthContext. TODO Windows UA enough to avoid 'device not supported'? update if browser is updated?

After changing this I have been able to successfully claim games without any captcha when I was previously being requested to manually solve a captcha for every single claim on Epic Games; The new userAgent string I'm using only differs in version being slightly more up to date than the one that is configured by default in the code.

@W1ldAustin
Copy link

Can you elaborate on how you did this? Seems like a reasonable enough workaround in the meantime.

I apologize, I missed the notification about this. It was working but was causing my IP to get blocked after a day and only 1 run, no matter how many times I changed the IP, it would get blocked, so it ended up not working fully.

@jlopezr
Copy link

jlopezr commented Oct 11, 2024 via email

@FroggMaster
Copy link

FroggMaster commented Oct 13, 2024

What about using a user agents library like https://www.npmjs.com/package/user-agents in the line that you are commenting on? El vie, 11 oct 2024 a las 1:44, Frog @.>) escribió:

I've copied the userAgent string from my personal Windows/Firefox install. I replaced the string that is currently present in epic-games.js

userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0', // see replace of Headless in util.newStealthContext. TODO Windows UA enough to avoid 'device not supported'? update if browser is updated?
After changing this I have been able to successfully claim games without any captcha when I was previously being requested to manually solve a captcha for every single claim on Epic Games; The new userAgent string I'm using only differs in version being slightly more up to date than the one that is configured by default in the code. — Reply to this email directly, view it on GitHub <#183 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFCRSMGC7YK33W4GRTEVYDZ24GMNAVCNFSM6AAAAAA3UZON72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWGIZTIOBVHA . You are receiving this because you are subscribed to this thread.Message ID: @.>

That's not a bad idea; I wrote some personal additions to pull a userAgent from https://www.useragents.me/#latest-windows-desktop-useragents I'm still doing a little bit of testing right now but using the latest userAgent has been working for me so far. I'm hesitant to say it's working consistently just yet, but I'll report back once I've had more opportunity to test more claim attempts.

Update:
Eventually, detection reoccurred so just the User Agent is not the problem.

@ds-sebastian
Copy link

Could Flaresolverr be useful? Probably only for Cloudflare captchas

@EfficiencyVI
Copy link

I was unable to solve the login captcha so I linked my steam account and logged in with it in the Firefox instance. Now I'm logged in and don't get a captcha anymore. So maybe that is a possible workaround.

@h4de5
Copy link

h4de5 commented Oct 19, 2024

just tested this as well. logged in to epic locally. connected it to steam. than opened the docker container, logged in to steam and used the login via steam button in the epic login form. there no captcha was shown and it could continue "buying" the games

@stayupthetree
Copy link

just tested this as well. logged in to epic locally. connected it to steam. than opened the docker container, logged in to steam and used the login via steam button in the epic login form. there no captcha was shown and it could continue "buying" the games

This works until checkout, it wants captcha then

@wjbeckett
Copy link

yep, I get that too. 😞

@Jason-Coyne
Copy link

Any hope for this issue?

@CoreyD97
Copy link

Just had a thought, maybe it could be detecting display driver usage? It would explain a lot

@Fmstrat
Copy link

Fmstrat commented Dec 29, 2024

Has anyone considered running this in something like webbian yet? That way it shows up as running in Linux with an X session with a standard geometry such as 1920x1080 (but with menu bars/etc). Caveat, I built webbian for exactly this type of thing. If no-ones tried a method like this, I will let everyone know how it goes.

Not sure if that would show up any different from xvfb, though.

@CoreyD97
Copy link

If you can get a nice implementation working using Webbian I'd love to give it a try. Currently I'm using a full-fat VM with X Server just to get the captcha working. It'd be nice to have something more lightweight.

@Fmstrat
Copy link

Fmstrat commented Dec 29, 2024

If you can get a nice implementation working using Webbian I'd love to give it a try. Currently I'm using a full-fat VM with X Server just to get the captcha working. It'd be nice to have something more lightweight.

It wouldn't be lighter unfortunately, just different. Webbian uses a fill X11 session with xfce running. I'm just curious if doing that vs focusing in on the Firefox instance with x11vnc would change things.

EDIT: Oh, I see what you mean now. Yes, lighter than that.

@Fmstrat
Copy link

Fmstrat commented Dec 29, 2024

@vogler When using webbian, I get a CAPTCHA when first logging in, but am able to "get" free items and go through the cart with no CAPTCHA after that. So it's possible the x11vnc session is reporting something through in fingerprinting that the xfce session can hide.

How I tested:

docker run --rm -ti --name webbian -e GEOMETRY=1280x720 -e PASSWORD=password -p 127.0.0.1:4900:4900 nowsci/webbian:latest

This brings up a VNC session of a full xfce session you can connect to at http://localhost:4900.

In that session, I can start Firefox, login to Epicgames.com, and from there continue to "get" free games without CAPTCHA.

My thought is that swapping from xvfb + x11vnc to xfce with a startup of firefox could do the trick. Feel free to grab anything from Webbian's Dockerfile or scripts if it's helpful, of course.

@Fmstrat
Copy link

Fmstrat commented Dec 29, 2024

@CoreyD97 Given what I found above, you could be a good test candidate by trying it out, by using the BOOT_SCRIPT to clone this repo, install node, and do the npm install, then X11_SCRIPT to run the node epic.js.

This would be a lot lighter weight than running a VM, and a good indication beyond me (n of one who is also a new user) that this might be feasible.

NOTE: Be sure to map the /root directory with a volume for persistence if you're using the above command vs the directions for Webbian. You could also skip the script steps and just do it in the shell once in the VNC session if you're just testing things out.

@DreiPixel
Copy link

DreiPixel commented Dec 30, 2024

@Fmstrat i tested the method with webbian. i tested this on a raspberry pi 5
I had to build a new webbian image since the container on docker hub is only amd64 and not arm.
with the X11 script i did the whole setup stuff and it managed to login into my epic account. i got a captcha though that i had to manually solve and got another captcha when it went to claim the free game.
still better than the docker image we currently have since i couldn't even login into epic with that.

@christiaandouma
Copy link

Isnt epicgaminng using Cloudflare? Maybe https://github.com/FlareSolverr/FlareSolverr works?

@CoreyD97
Copy link

It might be using Cloudflare for other things, but doesn't seem to use it for Captcha. The Captcha they're using is hCaptcha, so flaresolver won't be of any use here

@Lua12138
Copy link

Lua12138 commented Jan 1, 2025

I have the same issue with Synology DS1821+, it works on AMD Ryzen V1500

@ViperRNMC
Copy link

Same issue here with docker on macOS.

@Ru4rc
Copy link

Ru4rc commented Jan 3, 2025

Same issue here, using Unraid on a N100 machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests