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

Not working if cloudflare captcha comes instead of automatically bot detection. #7

Open
vikasg603 opened this issue Jun 28, 2024 · 4 comments

Comments

@vikasg603
Copy link

Hey, this inject.js seems like to has stopped working in cases where Cloudflare displays a captcha.
Like when your IP is partially blocked.

The possible way to reproduce this is by using an bright data US proxy or better try with 10 different proxy IPs, You will be able to reproduce this whenever cloudflare displays an captcha.

This works perfectly in the case when captcha is not there.

@s43
Copy link

s43 commented Aug 12, 2024

In case anyone has come across this issue, the captcha appears anytime you are running puppeteer using devTools on, as the challenge page uses the "debugger;" trick to block scripts from being fully executed.

I turned the devtools off, and the example works perfectly.

@tuananh2911
Copy link

tuananh2911 commented Sep 16, 2024

Trong trường hợp bất kỳ ai gặp phải vấn đề này, captcha sẽ xuất hiện bất cứ khi nào bạn chạy puppeteer bằng devTools, vì trang thử thách sử dụng thủ thuật "debugger;" để chặn các tập lệnh không được thực thi đầy đủ.

Tôi đã tắt devtools và ví dụ này hoạt động hoàn hảo.

I set devTool = false but it not working.
It show error {
sitekey: '0x4AAAAAAADnPIDROrmt1Wwj',
pageurl: 'https://2captcha.com/demo/cloudflare-turnstile-challenge',
data: '8c40338dec334745',
pagedata: '3gAFo2l2Mbg4UTh1RksrcGtYUVRQLzdOOEhlU3ZBPT2jaXYyuHZtOVBqeng4QjhrVzRpd2NFdVF2dEE9PaFk2gGYdzZrWmFSejNpcnUxYndMZEJrRTd4RVpFd2JxYW5LLzE3VHVNTzA4K0dZc2hQK3c1UWprZkphOGZMSnJjZEdRcElTWFJFeHFWZGFNcE96OHNsWWV2NkpnUlpLRVVHNlRzZHBhYUhMZ0JZR1AyeGlGT1J1NE42cDJiYzZ2QjF0b09sVDlVeVBNMzVnYTJ4WVdIMTFVWEJ6SXRLMnIwcm9ZODdhTk9ISjlTeFIwTmR4WGpWZ2ozR2x5Zlo1Z1gvd0w3RlVmSDFzZElQMFo5MkwyVEpOMXVWQ3BUK0p3U3A4TC8zM0k5ZWtQZ2orbFZRRUlxTEx5ckhDb0pFTEc0WHdaS0JSREhFSk5QUjZmZHEwUTdaL0U2MjdZWE1BaDUvdFdCb3lmd3BPdGJzQWtlVGQzZUxvbXRxc3ZHeXRZeXpDb3h5ZHdMM3FXWlZjV0ZsYmZmTDJ3RXNaWDkxZmdpVmpEN01jc3hlZlhna0FMSmJ2YWsyNjRYY0JuZWhFc2hNR1BiV2o4UVpRWTRPaUt5cTdESG1jbnMyQT09oW3ZLHMxWTlRVnpZWjBUQjRJeEx3SkQvQlJRWFJ0bUIxUXNjNTlFeEVNS2Rsbms9oXS0TVRjeU5qUTRNamd6T1M0M05qVT0=',
action: 'managed',
userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36',
json: 1
}
Solving the captcha...
ERROR_WRONG_USER_KEY

@vikasg603
Copy link
Author

Trong trường hợp bất kỳ ai gặp phải vấn đề này, captcha sẽ xuất hiện bất cứ khi nào bạn chạy puppeteer bằng devTools, vì trang thử thách sử dụng thủ thuật "debugger;" để chặn các tập lệnh không được thực thi đầy đủ.
Tôi đã tắt devtools và ví dụ này hoạt động hoàn hảo.

I set devTool = false but it not working. It show error { sitekey: '0x4AAAAAAADnPIDROrmt1Wwj', pageurl: 'https://2captcha.com/demo/cloudflare-turnstile-challenge', data: '8c40338dec334745', pagedata: '3gAFo2l2Mbg4UTh1RksrcGtYUVRQLzdOOEhlU3ZBPT2jaXYyuHZtOVBqeng4QjhrVzRpd2NFdVF2dEE9PaFk2gGYdzZrWmFSejNpcnUxYndMZEJrRTd4RVpFd2JxYW5LLzE3VHVNTzA4K0dZc2hQK3c1UWprZkphOGZMSnJjZEdRcElTWFJFeHFWZGFNcE96OHNsWWV2NkpnUlpLRVVHNlRzZHBhYUhMZ0JZR1AyeGlGT1J1NE42cDJiYzZ2QjF0b09sVDlVeVBNMzVnYTJ4WVdIMTFVWEJ6SXRLMnIwcm9ZODdhTk9ISjlTeFIwTmR4WGpWZ2ozR2x5Zlo1Z1gvd0w3RlVmSDFzZElQMFo5MkwyVEpOMXVWQ3BUK0p3U3A4TC8zM0k5ZWtQZ2orbFZRRUlxTEx5ckhDb0pFTEc0WHdaS0JSREhFSk5QUjZmZHEwUTdaL0U2MjdZWE1BaDUvdFdCb3lmd3BPdGJzQWtlVGQzZUxvbXRxc3ZHeXRZeXpDb3h5ZHdMM3FXWlZjV0ZsYmZmTDJ3RXNaWDkxZmdpVmpEN01jc3hlZlhna0FMSmJ2YWsyNjRYY0JuZWhFc2hNR1BiV2o4UVpRWTRPaUt5cTdESG1jbnMyQT09oW3ZLHMxWTlRVnpZWjBUQjRJeEx3SkQvQlJRWFJ0bUIxUXNjNTlFeEVNS2Rsbms9oXS0TVRjeU5qUTRNamd6T1M0M05qVT0=', action: 'managed', userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36', json: 1 } Solving the captcha... ERROR_WRONG_USER_KEY

Never share your 2captcha key publicly.

@s43
Copy link

s43 commented Sep 16, 2024

Trong trường hợp bất kỳ ai gặp phải vấn đề này, captcha sẽ xuất hiện bất cứ khi nào bạn chạy puppeteer bằng devTools, vì trang thử thách sử dụng thủ thuật "debugger;" để chặn các tập lệnh không được thực thi đầy đủ.
Tôi đã tắt devtools và ví dụ này hoạt động hoàn hảo.

I set devTool = false but it not working. It show error { sitekey: '0x4AAAAAAADnPIDROrmt1Wwj', pageurl: 'https://2captcha.com/demo/cloudflare-turnstile-challenge', data: '8c40338dec334745', pagedata: '3gAFo2l2Mbg4UTh1RksrcGtYUVRQLzdOOEhlU3ZBPT2jaXYyuHZtOVBqeng4QjhrVzRpd2NFdVF2dEE9PaFk2gGYdzZrWmFSejNpcnUxYndMZEJrRTd4RVpFd2JxYW5LLzE3VHVNTzA4K0dZc2hQK3c1UWprZkphOGZMSnJjZEdRcElTWFJFeHFWZGFNcE96OHNsWWV2NkpnUlpLRVVHNlRzZHBhYUhMZ0JZR1AyeGlGT1J1NE42cDJiYzZ2QjF0b09sVDlVeVBNMzVnYTJ4WVdIMTFVWEJ6SXRLMnIwcm9ZODdhTk9ISjlTeFIwTmR4WGpWZ2ozR2x5Zlo1Z1gvd0w3RlVmSDFzZElQMFo5MkwyVEpOMXVWQ3BUK0p3U3A4TC8zM0k5ZWtQZ2orbFZRRUlxTEx5ckhDb0pFTEc0WHdaS0JSREhFSk5QUjZmZHEwUTdaL0U2MjdZWE1BaDUvdFdCb3lmd3BPdGJzQWtlVGQzZUxvbXRxc3ZHeXRZeXpDb3h5ZHdMM3FXWlZjV0ZsYmZmTDJ3RXNaWDkxZmdpVmpEN01jc3hlZlhna0FMSmJ2YWsyNjRYY0JuZWhFc2hNR1BiV2o4UVpRWTRPaUt5cTdESG1jbnMyQT09oW3ZLHMxWTlRVnpZWjBUQjRJeEx3SkQvQlJRWFJ0bUIxUXNjNTlFeEVNS2Rsbms9oXS0TVRjeU5qUTRNamd6T1M0M05qVT0=', action: 'managed', userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36', json: 1 } Solving the captcha... ERROR_WRONG_USER_KEY

I think that is a different error, double check your key and see if it’s valid

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

No branches or pull requests

3 participants