在许多情况下,reCAPTCHA v3会妨碍无障碍访问,使用户感到沮丧,限制对公开信息的访问,使应用程序和网站的测试变得困难。使用 reCAPTCHA v3 解算器可自动绕过这些障碍。
reCAPTCHA v3 演示
本页介绍如何显示 reCAPTCHA v3 以及 reCAPTCHA v3 验证的工作原理。 reCAPTCHA v3是Google推出的最新型验证码。由于没有验证码挑战,所以用户也无需交互,但需进行"人性化”评级——打分。
如何破解reCAPTCHA v3
探索网站的源代码并搜索
grecaptcha.execute调用。 调用可能在网站代码中的任何地方,在页面<script>元素内或包含的javascript文件内。 例如,在我们的演示页面源代码中,您将找到:window.grecaptcha.ready(function() { grecaptcha.execute( '6LfB5_IbAAAAAMCtsjEHEHKqcB9iQocwwxTiihJu', {action: 'demo_action'}, ).then(function(token) { if (window.verifyRecaptcha) { window.verifyRecaptcha(token); } }); });
在那里您可以找到使用我们的API破解captcha所需的所有值。 您也可以看到.then() 方式调用 - 这是在生成令牌后处理令牌的代码。 您需要调用相同的代码并传递从我们的API收到的令牌。
发送
sitekey、pageurl和action值到我们的API.使用SDK(推荐):
PHP
// https://github.com/2captcha/2captcha-php require(__DIR__ . '/../src/autoloader.php'); $solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY'); try { $result = $solver->recaptcha([ 'sitekey' => '6LfB5_IbAAAAAMCtsjEHEHKqcB9iQocwwxTiihJu', 'url' => 'https://2captcha.cn/demo/recaptcha-v3', 'version' => 'v3', 'action' => 'demo_action', 'score' => 0.9, ]); } catch (\Exception $e) { die($e->getMessage()); } die('Captcha solved: ' . $result->code);Python
# https://github.com/2captcha/2captcha-python import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from twocaptcha import TwoCaptcha api_key = os.getenv('APIKEY_2CAPTCHA', 'YOUR_API_KEY') solver = TwoCaptcha(api_key) try: result = solver.recaptcha( sitekey='6LfB5_IbAAAAAMCtsjEHEHKqcB9iQocwwxTiihJu', url='https://2captcha.cn/demo/recaptcha-v3', version='v3', action='demo_action', score=0.9 ) except Exception as e: sys.exit(e) else: sys.exit('solved: ' + str(result))Java
// https://github.com/2captcha/2captcha-java package examples; import com.twocaptcha.TwoCaptcha; import com.twocaptcha.captcha.reCAPTCHA; public class reCAPTCHAV2Example { public static void main(String[] args) { TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY"); ReCaptcha captcha = new ReCaptcha(); captcha.setSiteKey("6LfB5_IbAAAAAMCtsjEHEHKqcB9iQocwwxTiihJu"); captcha.setUrl("https://2captcha.cn/demo/recaptcha-v3"); captcha.setVersion("v3"); captcha.setAction("demo_action"); captcha.setScore(0.9); try { solver.solve(captcha); System.out.println("Captcha solved: " + captcha.getCode()); } catch (Exception e) { System.out.println("Error occurred: " + e.getMessage()); } } }C#
// https://github.com/2captcha/2captcha-csharp using System; using System.Linq; using TwoCaptcha.Captcha; namespace TwoCaptcha.Examples { public class reCAPTCHAV2Example { public void Main() { TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY"); ReCaptcha captcha = new ReCaptcha(); captcha.SetSiteKey("6LfB5_IbAAAAAMCtsjEHEHKqcB9iQocwwxTiihJu"); captcha.SetUrl("https://2captcha.cn/demo/recaptcha-v3"); captcha.SetVersion("v3"); captcha.SetAction("demo_action"); captcha.SetScore(0.9); try { solver.Solve(captcha).Wait(); Console.WriteLine("Captcha solved: " + captcha.Code); } catch (AggregateException e) { Console.WriteLine("Error occurred: " + e.InnerExceptions.First().Message); } } } }