如果网站速度慢,请使用网站链接 2captcha.cn

GeeTest CAPTCHA V4 演示

本页介绍如何显示 GeeTest CAPTCHA V4 以及 GeeTest CAPTCHA V4 验证的工作原理。 GeeTest V4验证码需要移动拼图碎片或按顺序选取数字进行破解。

GeeTest V4加载中。。。。。。
GeeTest CAPTCHA V4的徽标

在许多情况下,GeeTest CAPTCHA V4会妨碍无障碍访问,使用户感到沮丧,限制对公开信息的访问,使应用程序和网站的测试变得困难。使用 GeeTest CAPTCHA V4 解算器可自动绕过这些障碍。

如何破解GeeTest v4

  1. 在浏览器中打开开发者控制台,找到加载GeeTest v4脚本的script元素,您需要从脚本src属性中抓取captcha_id的参数值。

    页面script元素示例:

    <script  src="https://gcaptcha4.geetest.com/load?captcha_id=e392e1d7fd421dc63325744d5a2b9c73&amp;challenge=36056b4d-7453-4153-aaa7-67ac27ccae9c&amp;client_type=web&amp;lang=en&amp;callback=geetest_1679073111173"></script>
  2. 发送captcha_idpageurl到2Captcha API

    使用SDK(推荐):

    PHP

    // https://github.com/2captcha/2captcha-php
    
    require(__DIR__ . '/../src/autoloader.php');
    
    $solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
    
    try {
        $result = $solver->geetest_v4([
          'captchaId' => '42977dc9-a215-4b09-aa14-945ef310d829',
          'url'       => 'https://2captcha.com/demo/geetest-v4',
      ]);
    } catch (\Exception $e) {
        die($e->getMessage());
    }
    
    die('Captcha solved: ' . $result->code);

    Python

    # https://github.com/2captcha/2captcha-python
    
    import sys
    import os
    import requests
    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.geetest_v4(captcha_id='42977dc9-a215-4b09-aa14-945ef310d829',
                                   url='https://2captcha.com/demo/geetest-v4')
    
    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.GeeTestV4;
    
    public class GeeTestV4Example  {
        public static void main(String[] args) {
            TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY");
            GeeTestV4 captcha = new GeeTestV4();
            captcha.setCaptchaId("42977dc9-a215-4b09-aa14-945ef310d829");
            captcha.setUrl("https://2captcha.com/demo/geetest-v4");
            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 GeeTestV4Example
        {
            public void Main()
            {
                TwoCaptcha solver = new TwoCaptcha("YOUR_API_KEY");
                GeeTestV4 captcha = new GeeTestV4();
                captcha.SetCaptchaId("42977dc9-a215-4b09-aa14-945ef310d829");
                captcha.SetUrl("https://2captcha.com/demo/geetest-v4");
                try
                {
                    solver.Solve(captcha).Wait();
                    Console.WriteLine("Captcha solved: " + captcha.Code);
                }
                catch (AggregateException e)
                {
                    Console.WriteLine("Error occurred: " + e.InnerExceptions.First().Message);
                }
            }
        }
    }

    Go

    // https://github.com/2captcha/2captcha-go
    
    package main
    
    import (
        "fmt"
        "log"
        "github.com/2captcha/2captcha-go"
    )
    
    func main() {
        client := api2captcha.NewClient("API_KEY")
        captcha := api2captcha.GeeTestV4{
            CaptchaId: "42977dc9-a215-4b09-aa14-945ef310d829",
            Url: "https://2captcha.com/demo/geetest-v4",
        }
        code, err := client.Solve(captcha.ToRequest())
        if err != nil {
            log.Fatal(err);
        }
        fmt.Println("code "+code)
    }

    Ruby

    # https://github.com/2captcha/2captcha-ruby
    require 'api_2captcha'
    
    client =  Api2Captcha.new("YOUR_API_KEY")
    
    result = client.geetest_v4({
      captcha_id: '42977dc9-a215-4b09-aa14-945ef310d829',
      pageurl: 'https://2captcha.com/demo/geetest-v4'
    })

    手动操作:

    1. 向我们的API URL:https://2captcha.com/in.php提交HTTP GET或POST请求,方式设置为geetest_v4,提供在上一步请求中找到的值作为相应请求参数的值,并提供整页URL作为pageurl值。

      请求URL示例:
      https://2captcha.com/in.php?key=1abc234de56fab7c89012d34e56fa7b8&method=geetest_v4&captcha_id=42977dc9-a215-4b09-aa14-945ef310d829&&pageurl=http://2captcha.com/demo/geetest-v4

    2. 如果一切正常,服务器将返回您的captch ID:

      OK|2122988149
      否则服务器将返回错误代码.

    3. 15-20秒后发送GET请求以获取结果:

      GET https://2captcha.com/res.php?key=YOUR_API_KEY&action=get&id=2122988149
      如果验证码已破解,服务器将响应答案。

      如果captcha未破解,服务器将返回CAPCHA_NOT_READY结果。在5秒内重复您的请求。如果出现问题,服务器将返回错误代码.

  3. 如果验证码已破解,服务器将以JSON返回响应。 响应包含五个值:captcha_idlot_numberpass_tokengen_timecaptcha_output:

    {
    "captcha_id":"e392e1d7fd421dc63325744d5a2b9c73",
    "lot_number":"81c1ed8e35be4f67a00bf30b578e873a",
    "pass_token":"0b088f4a5c742a912c0cfa2f98cd8e4fb4bd6a0c9389272ea5beac93f632d4e9",
    "gen_time":"1687352616",
    "captcha_output":"fN36ufW6cQN-UMXTCVLbps254G0c0ZnGN5368O2A5_SaEYV9-8U0kUUT-Of9xrdwrV6xLd8XZLJSs6jiWdyZaVBcG0kIoKkl6Bq4IKg0mlQ-zmEgqq1jSwPIEl34mhUMCq3Xmfj2E-H4_kyh-UjSkPSMMTumf97Fe7PFhZJJfui-731XLBFR7WwJsY8S9BXNKtMzQDp7zUWDZjxGxWyC8n1G3Q5jk7oV4ez9zcmF6PymY_sHj3kFyCoa8q9o8FTp"
    }
  4. 在目标网站上使用返回的值,和手动破解captcha时使用值的方法相同。 表单可能会包含一组隐藏的输入或一个JavaScript回调。或者您可以简单地构建一个包含所需数据的HTTP请求。

  5. 点击"检查"按钮提交表格。