claabs / epicgames-freegames-node

Automatically login and find available free games the Epic Games Store. Sends you a prepopulated checkout link so you can complete the checkout after logging in. Supports multiple accounts, login sessions, and scheduled runs.
https://hub.docker.com/r/charlocharlie/epicgames-freegames
MIT License
1.39k stars 92 forks source link

New account can't login (Too many login attempts) Captcha loop? #38

Closed causefx closed 4 years ago

causefx commented 4 years ago

For some reason a new account can't login... I know the credentials are correct as I have gone over there a few times already.

Does the new acct maybe have to have a payment method prior to setup?

Logs:

Setting timezone: America/Phoenix
Setting cron schedule as 0 12 * * *
Incoming env vars:
RUN_ON_STARTUP: true
CRON_SCHEDULE: 
RUN_ONCE: 
Getting settings from JSON: /usr/app/config/config.json
Setting config variables
Run on startup: true
Run once: false

> epicgames-freegames-node@2.0.0 start /usr/app
> node dist/src/index.js

[2020-10-05 21:33:53.510 -0700] INFO  (32 on epicgames-causefx): Checking free games for newacctemail
[2020-10-05 21:33:53.511 -0700] DEBUG (32 on epicgames-causefx): Setting SID
    user: "newacctemail"
[2020-10-05 21:33:53.511 -0700] DEBUG (32 on epicgames-causefx): Refreshing CSRF
    user: "newacctemail"
[2020-10-05 21:33:54.157 -0700] DEBUG (32 on epicgames-causefx): Could not refresh credentials. Logging in fresh.
    user: "newacctemail"
[2020-10-05 21:33:54.493 -0700] DEBUG (32 on epicgames-causefx): Attempting login
    user: "newacctemail"
    email: "newacctemail"
    captcha: ""
    attempt: 0
[2020-10-05 21:33:54.493 -0700] DEBUG (32 on epicgames-causefx): Refreshing CSRF
    user: "newacctemail"
[2020-10-05 21:33:55.166 -0700] DEBUG (32 on epicgames-causefx): Captcha required
    user: "newacctemail"
[2020-10-05 21:33:55.168 -0700] DEBUG (32 on epicgames-causefx): Go to https://captcha.myDomain.com?id=e1522c56-0934-49dc-be57-5bfb927b5627&pkey=37D033EB-6489-3763-2AE1-A228C04103F5 and solve the captcha
[2020-10-05 21:34:25.175 -0700] DEBUG (32 on epicgames-causefx): incoming POST body
    body: {
      "sessionData": "8145f7bf3d0753559.3446647302|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=51|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com",
      "id": "e1522c56-0934-49dc-be57-5bfb927b5627"
    }
[2020-10-05 21:34:25.180 -0700] DEBUG (32 on epicgames-causefx): Attempting login
    user: "newacctemail"
    email: "newacctemail"
    captcha: "8145f7bf3d0753559.3446647302|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=51|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com"
    attempt: 1
[2020-10-05 21:34:25.181 -0700] DEBUG (32 on epicgames-causefx): Refreshing CSRF
    user: "newacctemail"
[2020-10-05 21:34:26.713 -0700] DEBUG (32 on epicgames-causefx): Captcha required
    user: "newacctemail"
[2020-10-05 21:34:26.714 -0700] DEBUG (32 on epicgames-causefx): Go to https://captcha.myDomain.com?id=44796ae9-f543-4a1a-9f28-f078a96c7aa0&pkey=37D033EB-6489-3763-2AE1-A228C04103F5 and solve the captcha
[2020-10-05 21:34:27.965 -0700] DEBUG (32 on epicgames-causefx): Email sent.
    from: "myFromEmailAddress"
    to: "myToEmailAddress"
[2020-10-05 21:34:27.966 -0700] INFO  (32 on epicgames-causefx): Action requested. Waiting for Captcha to be solved
    id: "44796ae9-f543-4a1a-9f28-f078a96c7aa0"
[2020-10-05 21:34:55.357 -0700] DEBUG (32 on epicgames-causefx): incoming POST body
    body: {
      "sessionData": "725f7bf3eeb233a5.9824983102|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=82|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com",
      "id": "44796ae9-f543-4a1a-9f28-f078a96c7aa0"
    }
[2020-10-05 21:34:55.359 -0700] DEBUG (32 on epicgames-causefx): Attempting login
    user: "newacctemail"
    email: "newacctemail"
    captcha: "725f7bf3eeb233a5.9824983102|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=82|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com"
    attempt: 2
[2020-10-05 21:34:55.360 -0700] DEBUG (32 on epicgames-causefx): Refreshing CSRF
    user: "newacctemail"
[2020-10-05 21:34:56.896 -0700] DEBUG (32 on epicgames-causefx): Captcha required
    user: "newacctemail"
[2020-10-05 21:34:56.897 -0700] DEBUG (32 on epicgames-causefx): Go to https://captcha.myDomain.com?id=d86168e2-4876-464f-93e0-0d2f47705385&pkey=37D033EB-6489-3763-2AE1-A228C04103F5 and solve the captcha
[2020-10-05 21:34:58.214 -0700] DEBUG (32 on epicgames-causefx): Email sent.
    from: "myFromEmailAddress"
    to: "myToEmailAddress"
[2020-10-05 21:34:58.214 -0700] INFO  (32 on epicgames-causefx): Action requested. Waiting for Captcha to be solved
    id: "d86168e2-4876-464f-93e0-0d2f47705385"
[2020-10-05 21:35:15.045 -0700] DEBUG (32 on epicgames-causefx): incoming POST body
    body: {
      "sessionData": "1055f7bf40291eff1.8005694202|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=86|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com",
      "id": "d86168e2-4876-464f-93e0-0d2f47705385"
    }
[2020-10-05 21:35:15.046 -0700] DEBUG (32 on epicgames-causefx): Attempting login
    user: "newacctemail"
    email: "newacctemail"
    captcha: "1055f7bf40291eff1.8005694202|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=86|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com"
    attempt: 3
[2020-10-05 21:35:15.047 -0700] DEBUG (32 on epicgames-causefx): Refreshing CSRF
    user: "newacctemail"
[2020-10-05 21:35:16.272 -0700] DEBUG (32 on epicgames-causefx): Captcha required
    user: "newacctemail"
[2020-10-05 21:35:16.272 -0700] DEBUG (32 on epicgames-causefx): Go to https://captcha.myDomain.com?id=135251ae-fa37-4a4e-9461-540a72c939e8&pkey=37D033EB-6489-3763-2AE1-A228C04103F5 and solve the captcha
[2020-10-05 21:35:17.696 -0700] DEBUG (32 on epicgames-causefx): Email sent.
    from: "myFromEmailAddress"
    to: "myToEmailAddress"
[2020-10-05 21:35:17.697 -0700] INFO  (32 on epicgames-causefx): Action requested. Waiting for Captcha to be solved
    id: "135251ae-fa37-4a4e-9461-540a72c939e8"
[2020-10-05 21:35:18.362 -0700] DEBUG (32 on epicgames-causefx): incoming POST body
    body: {
      "sessionData": "4505f7bf406012cd1.2820457202|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=86|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com",
      "id": "135251ae-fa37-4a4e-9461-540a72c939e8"
    }
[2020-10-05 21:35:18.363 -0700] DEBUG (32 on epicgames-causefx): Attempting login
    user: "newacctemail"
    email: "newacctemail"
    captcha: "4505f7bf406012cd1.2820457202|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=86|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com"
    attempt: 4
[2020-10-05 21:35:18.363 -0700] DEBUG (32 on epicgames-causefx): Refreshing CSRF
    user: "newacctemail"
[2020-10-05 21:35:19.651 -0700] DEBUG (32 on epicgames-causefx): Captcha required
    user: "newacctemail"
[2020-10-05 21:35:19.652 -0700] DEBUG (32 on epicgames-causefx): Go to https://captcha.myDomain.com?id=6ae0e61e-c63e-47d5-86c5-95e5a61bd4d7&pkey=37D033EB-6489-3763-2AE1-A228C04103F5 and solve the captcha
[2020-10-05 21:35:20.922 -0700] DEBUG (32 on epicgames-causefx): Email sent.
    from: "myFromEmailAddress"
    to: "myToEmailAddress"
[2020-10-05 21:35:20.923 -0700] INFO  (32 on epicgames-causefx): Action requested. Waiting for Captcha to be solved
    id: "6ae0e61e-c63e-47d5-86c5-95e5a61bd4d7"
[2020-10-05 21:35:21.604 -0700] DEBUG (32 on epicgames-causefx): incoming POST body
    body: {
      "sessionData": "4185f7bf4092d3d18.3892724102|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=1|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com",
      "id": "6ae0e61e-c63e-47d5-86c5-95e5a61bd4d7"
    }
[2020-10-05 21:35:21.606 -0700] DEBUG (32 on epicgames-causefx): Attempting login
    user: "newacctemail"
    email: "newacctemail"
    captcha: "4185f7bf4092d3d18.3892724102|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=1|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com"
    attempt: 5
[2020-10-05 21:35:21.607 -0700] DEBUG (32 on epicgames-causefx): Refreshing CSRF
    user: "newacctemail"
[2020-10-05 21:35:23.030 -0700] DEBUG (32 on epicgames-causefx): Captcha required
    user: "newacctemail"
[2020-10-05 21:35:23.030 -0700] DEBUG (32 on epicgames-causefx): Go to https://captcha.myDomain.com?id=35dab0d1-dfdc-44f1-8256-9c5671bf784a&pkey=37D033EB-6489-3763-2AE1-A228C04103F5 and solve the captcha
[2020-10-05 21:35:24.265 -0700] DEBUG (32 on epicgames-causefx): Email sent.
    from: "myFromEmailAddress"
    to: "myToEmailAddress"
[2020-10-05 21:35:24.266 -0700] INFO  (32 on epicgames-causefx): Action requested. Waiting for Captcha to be solved
    id: "35dab0d1-dfdc-44f1-8256-9c5671bf784a"
[2020-10-05 21:35:25.253 -0700] DEBUG (32 on epicgames-causefx): incoming POST body
    body: {
      "sessionData": "2955f7bf40cd5d1c3.1779741402|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=100|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com",
      "id": "35dab0d1-dfdc-44f1-8256-9c5671bf784a"
    }
[2020-10-05 21:35:25.255 -0700] DEBUG (32 on epicgames-causefx): Attempting login
    user: "newacctemail"
    email: "newacctemail"
    captcha: "2955f7bf40cd5d1c3.1779741402|r=us-west-2|metabgclr=%23202020|maintxtclr=%23808080|mainbgclr=%23202020%3B|guitextcolor=%23808080|metaiconclr=%238a8a8a|meta_height=384|meta_width=340|meta=11|pk=37D033EB-6489-3763-2AE1-A228C04103F5|at=40|sup=1|rid=100|ag=101|cdn_url=https://cdn.arkoselabs.com/fc|lurl=https://audio-us-west-2.arkoselabs.com|surl=https://epic-games-api.arkoselabs.com"
    attempt: 6
[2020-10-05 21:35:25.256 -0700] DEBUG (32 on epicgames-causefx): Refreshing CSRF
    user: "newacctemail"
[2020-10-05 21:35:25.596 -0700] ERROR (32 on epicgames-causefx): Too many login attempts
    Error: Too many login attempts
        at Login.login (/usr/app/src/login.ts:91:13)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at Login.login (/usr/app/src/login.ts:118:11)
        at Login.login (/usr/app/src/login.ts:118:11)
        at Login.login (/usr/app/src/login.ts:118:11)
        at Login.login (/usr/app/src/login.ts:118:11)
        at Login.login (/usr/app/src/login.ts:118:11)
        at Login.login (/usr/app/src/login.ts:118:11)
        at Login.fullLogin (/usr/app/src/login.ts:178:7)
        at /usr/app/src/index.ts:19:7
claabs commented 4 years ago

After a load of digging, I finally found the change.

  1. Before login, the reputation call returns a blob.
  2. This blob needs to be sent to the captcha UI and added to the Arkose XHR request

The blob can be added to the URL as another param. I'll add this fix tomorrow.

causefx commented 4 years ago

thanks and sorry Charlie. :)

Sent from my iPhone

On Oct 6, 2020, at 9:23 PM, Charlie Laabs notifications@github.com wrote:

 After a load of digging, I finally found the change.

Before login, the reputation call returns a blob. This blob needs to be sent to the captcha UI and added to the Arkose XHR request The blob can be added to the URL as another param. I'll add this fix tomorrow.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

claabs commented 4 years ago

No need to be sorry. My account usually just remembers login, so I don't encounter these login issues on my own.

Luckily, I had an alternate version of the Arkose captcha page already implemented, so I was able to use that which more closely models Epic Game's login page and easily supports the reputation blob data.