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

didnt work with harvester #25

Open
mrqaidi opened this issue Oct 16, 2020 · 5 comments
Open

didnt work with harvester #25

mrqaidi opened this issue Oct 16, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@mrqaidi
Copy link

mrqaidi commented Oct 16, 2020

Describe the bug
solving captcha with CaptchaHarvester didnt work

To Reproduce

curl --location --request POST 'http://serverip:8191/v1' \
--header 'Content-Type: application/json' \
--data-raw '{
  "cmd": "request.get",
  "url":"https://www.primewire.li/?&links=With+Links&type=movie&t=y&ts=y&c=e&page=1",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.0 Safari/537.36",
  "maxTimeout": 60000,
  "headers": {
    "X-Test": "Testing 123..."
  }
}'

Expected behavior
2020-10-16T20:56:49.852Z DEBUG REQ-1 { headers: [Function] }
2020-10-16T20:56:49.857Z DEBUG REQ-1 Navegating to... https://www.primewire.li/?&links=With+Links&type=movie&t=y&ts=y&c=e&page=1
2020-10-16T20:56:49.877Z DEBUG REQ-1 {
headers: {
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.0 Safari/537.36',
'X-Test': 'Testing 123...'
}
}

2020-10-16T20:56:50.411Z INFO REQ-1 Cloudflare detected
2020-10-16T20:56:50.418Z DEBUG REQ-1 No '.ray_id' challenge element detected.
2020-10-16T20:56:50.419Z DEBUG REQ-1 No '.attack-box' challenge element detected.
2020-10-16T20:56:50.722Z INFO REQ-1 captcha type:hCaptcha
2020-10-16T20:56:50.723Z INFO REQ-1 Waiting to recive captcha token to bypass challenge...
TypeError: Cannot read property 'statusCode' of undefined
    at solve (/home/mvideos/tools/CloudProxy/src/captcha/harvester.ts:27:22)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
2020-10-16T20:56:53.823Z ERROR REQ-1 Cannot read property 'statusCode' of undefined

Screenshots
N/A

@mrqaidi mrqaidi added the bug Something isn't working label Oct 16, 2020
@NoahCardoza
Copy link
Owner

What did you set the ENV variable too? I'm pretty sure I switched some stuff up, so I think this needs to be fixed, but I"m just wondering what you passed?

@mrqaidi
Copy link
Author

mrqaidi commented Oct 16, 2020

What did you set the ENV variable too? I'm pretty sure I switched some stuff up, so I think this needs to be fixed, but I"m just wondering what you passed?

i set these env
export HARVESTER_ENDPOINT=http://serverip:5000/token
export CAPTCHA_SOLVER=harvester

@NoahCardoza
Copy link
Owner

Did you literally write serverip?

The docs are out of date, but you should set it like this:

export HARVESTER_ENDPOINT=https://127.0.0.1:5000/<domain>/token
export CAPTCHA_SOLVER=harvester

Let me know if that works for you 👍

@NoahCardoza
Copy link
Owner

Any update @mrqaidi?

@ulysserevient
Copy link

ulysserevient commented Jun 1, 2021

Hi,
I encounter same error

2021-06-01T07:46:17.671Z INFO REQ-1 Cloudflare detected
2021-06-01T07:46:17.679Z DEBUG REQ-1 No '#trk_jschal_js' challenge element detected.
2021-06-01T07:46:17.681Z DEBUG REQ-1 No '.ray_id' challenge element detected.
2021-06-01T07:46:17.684Z DEBUG REQ-1 No '.attack-box' challenge element detected.
2021-06-01T07:46:17.780Z INFO REQ-1 Waiting to receive captcha token to bypass challenge...
2021-06-01T07:46:20.943Z ERROR REQ-1 TypeError: Cannot read property 'statusCode' of undefined
at solve (/home/node/cloudproxy/dist/captcha/harvester.js:17:28)
at processTicksAndRejections (node:internal/process/task_queues:93:5)
at async resolveChallenge (/home/node/cloudproxy/dist/routes.js:147:35)
at async browserRequest (/home/node/cloudproxy/dist/routes.js:286:22)
at async request.get (/home/node/cloudproxy/dist/routes.js:326:9)
at async Object.Router [as default] (/home/node/cloudproxy/dist/routes.js:347:16)
2021-06-01T07:46:20.944Z ERROR REQ-1 Unable to process browser request

Here are my env:

CAPTCHA_SOLVER=harvester
HARVESTER_ENDPOINT=https://127.0.0.1:5000/token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants