Menu

RecaptchaV2EnterpriseTask:用代理服务器破解 Google Recaptcha V2 Enterprise 谜题

这种任务用于通过所提供的代理服务器破解 Google Recaptcha Enterprise V2 谜题。

这种任务基本上类似于 RecaptchaV2Task,除了任务用 Enterprise API 破解并分配给 Recaptcha V3 得分最高的工作人员。要详细了解 Recaptcha Enterprise,请访问常见问题解答部分。

Recaptcha V2 funny example
Recaptcha V2 checkbox
Recaptcha V2 Enterprise 谜题示例。看起来与非企业版谜题完全相同。

任务对象

属性类型必须使用用途
type字符串RecaptchaV2EnterpriseTask
websiteURL字符串目标网页的地址。可位于网站中的任何位置,甚至可位于会员区中。我们的工作人员不会转到该位置,而是会模拟其访问操作。
websiteKey字符串Recaptcha 网站密钥。请在文章中了解如何查找网站密钥。
enterprisePayload对象附加参数,应该与网站密钥一同传递给“grecaptcha.enterprise.render”方法。应该搜索的信息的示例:
grecaptcha.enterprise.render("some-div-id", {
    sitekey: "6Lc_aCMTAAAAABx7u2N0D1XnVbI_v6ZdbM6rYf16",
    theme: "dark",
    s: "2JvUXHNTnZl1Jb6WEvbDyBMzrMTR7oQ78QRhBcG07rk9bpaAaE0LRq1ZeP5NYa0N...ugQA"
});
可在此示例中发现参数“s”,此参数没有记载,但显然必须有。要向 API 发送此参数,这样我们会用此参数正确地呈现 Recaptcha 小组件。
apiDomain字符串使用这个参数来发送域名,Recaptcha脚本应该从这个域名提供。只能有两个值中的一个。"www.google.com" 或 "www.recaptcha.net"。除非你明白你在做什么,否则不要使用这个参数。
proxyType字符串代理类型
http - 普通 http/https 代理
socks4 - socks4 代理
socks5 - socks5 代理
proxyAddress字符串ipv4/ipv6 代理服务器 IP 地址。禁止使用主机名或本地网络中的 IP 地址。
proxyPort整数代理服务器端口
proxyLogin字符串用于需要授权(基本授权)的代理服务器的登录名
proxyPassword字符串代理服务器密码
userAgent字符串用于仿真的浏览器用户代理程序。必须使用最新浏览器的签名,否则 Google 会要求“更新浏览器”。
cookies字符串我们应该在 Google 域中使用的附加 Cookie。

请求示例

Python
Javascript
PHP
Java
C#
bash
#pip3 install anticaptchaofficial

from anticaptchaofficial.recaptchav2enterpriseproxyon import *

solver = recaptchaV2EnterpriseProxyon()
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY_HERE")
# solver.set_enterprise_payload({"s": "sometoken"})
solver.set_website_url("https://website.com")
solver.set_website_key("SITE_KEY")
solver.set_proxy_address("PROXY_ADDRESS")
solver.set_proxy_port(1234)
solver.set_proxy_login("proxylogin")
solver.set_proxy_password("proxypassword")
solver.set_user_agent("Mozilla/5.0")
solver.set_cookies("test=true")

# Specify softId to earn 10% commission with your app.
# Get your softId here: https://anti-captcha.com/clients/tools/devcenter
solver.set_soft_id(0)

g_response = solver.solve_and_return_solution()
if g_response != 0:
    print("g-response: "+g_response)
else:
    print("task finished with error "+solver.error_code)

任务破解结果对象

属性类型用途
gRecaptchaResponse字符串与目标网站中的提交窗体发生相互作用所需的标记字符串。

回应示例

{
    "errorId":0,
    "status":"ready",
    "solution":
    {
        "gRecaptchaResponse":"3AHJ_VuvYIBNBW5yyv0zRYJ75VkOKvhKj9_xGBJKnQimF72rfoq3Iy-DyGHMwLAo6a3"
    },
    "cost":"0.001500",
    "ip":"46.98.54.221",
    "createTime":1472205564,
    "endTime":1472205570,
    "solveCount":"0"
}