如何手动调用(查找)ReCaptcha回调函数? [英] How to manually call (find) the ReCaptcha Callback function?

查看:584
本文介绍了如何手动调用(查找)ReCaptcha回调函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试验证验证码,并决定使用流行的2captcha服务。他们的方法是向他们发送recaptcha值(google recaptcha key& site thread),然后他们解决它并将我应该发送给google的完成值发回给我,以检查验证码是否已经解决。

I'm currently experimenting with captcha solving, and have decided to use the popular 2captcha service to do so. Their approach is to send them the recaptcha values (google recaptcha key & site thread), then they solve it and send me back the finished value that is supposed to be sent to google to check that the captcha have been solved.

我坚持到最后一步;使用返回的求解值并将其发送到谷歌。作为文档 https://2captcha.com/2captcha-api#callback 解释,我发现没有提交按钮因此需要自己找到recaptcha回调函数,所以我可以调用它。但是我很难找到这个功能,因为一切都看似混淆了。我探索了他们找到回调函数的所有方法但却无法这样做。我认为最接近的是找到混淆的recaptcha-en.js(位于来源> webworker.js> www.gstatic.com> recaptcha / api2 / v1519325468512 https://pastebin.com/VgtJUftm ,其中包含一些回调搜索词,但由于混淆我没有知道该怎么称呼。没有运气就试过一些反混淆工具。

I'm stuck on the last step; using the returned solved value and send it to google. As the docs https://2captcha.com/2captcha-api#callback explain, I find no "submit" button hence need to find the recaptcha callback function myself, so I can call it. I do however have a hard time finding the function since everything seems obfuscated. I explored all their methods to find a callback function but have been unable to do so. The closest I think I've been is finding the obfuscated recaptcha-en.js (located at sources>webworker.js>www.gstatic.com>recaptcha/api2/v1519325468512) https://pastebin.com/VgtJUftm which contains some callback searchwords, though due the obfuscation I don't know what to call. Tried some deobfuscation tools without luck.

所以;当我的网站上没有托管recaptcha时,如何找到并触发ReCaptcha Callback功能?在此先感谢

So; how do I find and fire the ReCaptcha Callback function, when the recaptcha isn't hosted on my own website? Thanks in advance

推荐答案

管理解决我的问题,成功解决验证码,虽然我没有设法找到如何调用recaptcha回调函数。在我将返回的captcha solve-value插入到我的g-recaptcha-response字段后,我只是使用javascript来提交此处描述的表单 http://www.deathbycaptcha.com/user/api/newtokenrecaptcha#how-use-token

Managed to solve my problem, successfully solving captchas, though I did not manage to ever find out how to call the recaptcha callback function. After I had inserted the returned captcha solve-value into my "g-recaptcha-response" field, I simply used javascript to submit the form as described here http://www.deathbycaptcha.com/user/api/newtokenrecaptcha#how-use-token.

Selenium with Java:

Selenium with Java:

    JavascriptExecutor js = (JavascriptExecutor) driver;
System.out.println("Executing js set-recaptcha-response script");
js.executeScript("document.getElementById(\"g-recaptcha-response\").innerHTML=\"" + responseToken + "\";");
System.out.println("Executing js submit-form script");
js.executeScript("document.getElementsByName('post')[0].submit();");

这篇关于如何手动调用(查找)ReCaptcha回调函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆