Menu

在表单上用回调绕过Recaptcha。教程 2.


你将会学到什么

  • 你将学习如何用NodeJS脚本提交带有Recaptcha的这个表单。
  • 了解隐藏文本区和回调方法的区别。
  • 了解如何正确地搜索 Javascript“grecaptcha.render”调用。
Source code

这个视频强调了与以前的教程不同的方法。我们没有将g-response标记粘贴到表单的textarea中,而是调用了 "checkCaptcha "函数,该函数可以在页面源代码中找到。

console.log('setting recaptcha g-response ...');
await tab.evaluate((token) => {
  checkCaptcha(token);
}, token);

也不需要按任何提交按钮,因为提交是在解决了Recaptcha之后自动发生的。

console.log('submitting form .. ');
await Promise.all([
  tab.click('#contentbox > form > div > div.tac.padding20px > button'),
  tab.waitForNavigation({ waitUntil: "networkidle0" })
]);

在接下来的教程中,你将学习如何用Recaptcha绕过一个表单,其中回调函数没有与gresponse.render调用分开,其主体是加密的。

Github

https://github.com/anti-captcha/solving-captcha-concepts/blob/master/tutorial2.js