-
Notifications
You must be signed in to change notification settings - Fork 37
Use Anti-Captcha for Re-Captcha bypassing. #103
Comments
It is already all done. Only thing that is left to do is to POST to Google to get the cookie and being able to use it in future requests, which is a thing that I don't really know how to do yet. This is what I'm doing right now, but Youtube don't gives me the cookie back.
The content of I need to do a POST request with the captcha solution to Youtube. But I can't seem to figure out how to correctly do the request in order to get the cookie from Youtube. Invidious does this here The response I am getting from google after this POST is the following:
As you can see, the Set-Cookie field does NOT contain a cookie. Or, if it does it doesn't seem to me like it does. On the following lines there's a correct Captcha request that I have intercepted using OWASP ZAP tool:
Here you can see that there's a cookie Finally, this is the response that google fives when you solve a captcha sending it by a post request to
|
All invidious does is take the form, put it into a variable by parsing the keys and values, solve the captcha with anti-captcha and then override the NewPipe only stores cookies with the names |
Another thing we might need to handle is https://github.com/iv-org/invidious/blob/812a21bce62e9e94340bd622734483c1cf9399fc/src/invidious/helpers/jobs.cr#L265-L318 |
Also, any reason why we don't use a generic User-Agent such as |
Yeah, that's a good idea. I will change the user agent. I will take a look at how NewPipe does that. But I'm not being able to get the |
@FireMasterK This is the response I'm getting from anti-captcha:
I'm not getting any cookie. Here's the code I am using: https://github.com/ytorg/Yotter/blob/yotter-dev/youtube/util.py#L102-L157 |
Here is the Anti-captcha documentation: https://anticaptcha.atlassian.net/wiki/spaces/API/pages/9666606/NoCaptchaTaskProxyless+Google+Recaptcha+puzzle+solving+without+proxies and an example using PHP: |
You won't get any cookie from anti-captcha, you'll get it from
Look at the Set-Cookie header here. |
Yes... But this is from a request I made solving the captcha myself and using ZAP to intercept it... I should be getting the cookie from anti-captcha, as they do send the cookie from google sites. |
That's not true from what I can see, you can't get the goojf cookie without posting the form to youtube. |
Take a look here at what does Invidious do. |
Ah, I see what you mean, isn't it in the solution JSONObject? Are you saying that it's omitted? 🤔 |
Yes, that's not there. I contacted the support and they said that the cookie is only returned for *.google.com domains.... So I don't see how Invidious is getting that cookie. |
Interesting, does it work without those cookies or does youtube error out? |
I get a response, but I don't think it will let me bypass the captcha using that response. I will try.... |
Recently the instance yotter.xyz has been 'blocked' by Google requiring it to solve a ReCaptcha in order to continue.
To do this we will use Anti-Captcha, just like Invidious and many other projects do.
The text was updated successfully, but these errors were encountered: