GeekedTest Documentation

repository·main·Indexed 20 days ago

https://github.com/xkiian/geekedtest

A Geetest v4 captcha solver designed to automate the retrieval of captcha solution tokens. Supports risk types including slide, gobang, icon, and ai. Provides the Geeked class to solve captchas using a captcha_id and risk_type, returning a dictionary containing the pass_token and other solution details.

Tokens
711
Snippets
2
Records
5
Agent score
21%

What's inside GeekedTest

  1. Obtain Captcha ID and Risk Type

    main

    To use the solver, you must extract the captcha_id and risk_type from your browser's network traffic while interacting with a Geetest captcha:

    1. Open DevTools (Ctrl + Shift + I) and go to the Network tab.
    2. Perform the captcha interaction on the webpage.
    3. Filter network requests for the term verify.
    4. Locate the GET request.
    5. Inspect the request parameters to find and copy the captcha_id and risk_type values.
  2. Troubleshoot solver failures

    main

    If the solver stops working, it is likely due to changes in the internal constants used for signing. You may need to update the following constants in sign.py:

    • self.mapping
    • abo
    • device_id (usually empty)

    To obtain updated values, run the provided deobfuscate.py script.

  3. Use the Geeked solver to solve Geetest v4 captchas

    main

    Import the Geeked class from the geeked module. Instantiate it by passing your extracted captcha_id and the corresponding risk_type. Call the .solve() method to retrieve the solution.

    The .solve() method returns a dictionary containing the following keys:

    • captcha_id
    • lot_number
    • pass_token
    • gen_time
    • captcha_output
    from geeked import Geeked
    
    # Replace with your own captcha_id
    captcha_id = "54088bb07d2df3c46b79f80300b0abbe"
    
    # Instantiate the solver with captcha_id and risk_type
    geeked = Geeked(captcha_id, risk_type="slide")
    
    # Solve the captcha
    sec_code = geeked.solve()
    
    # Output the solution
    print(sec_code)
  4. Solve Geetest v4 captchas with the Geeked class

    main

    The Geeked class is the primary interface for solving Geetest v4 captchas. To use it, instantiate the class with your captcha_id and the risk_type (e.g., 'slide' or 'ai'). You can optionally provide a proxy and set verify to False to bypass SSL verification. Calling the .solve() method initiates the solving process and returns the sec_code required to bypass the captcha.

    from geeked import Geeked
    
    # Configuration
    captcha_id = "6ba6b71b4f3958a1c69ad839ba47836b"
    risk_type = "slide"
    proxy = "http://127.0.0.1:8050"
    
    # Instantiate the solver
    geeked = Geeked(captcha_id, risk_type, proxy=proxy, verify=False)
    
    # Solve and get the sec_code
    sec_code = geeked.solve()
    print(sec_code)