如何绕过 atbCAPTCHA 验证码
代码示例
方法: createTask
API端点:https://api.2captcha.com/createTask
AtbCaptchaTaskProxyless
{ "clientKey": "YOUR_API_KEY", "task": { "type":"AtbCaptchaTaskProxyless", "appId":"af23e041b22d000a11e22a230fa8991c", "apiServer":"https://cap.aisecurius.com", "websiteURL":"https://www.example.com/" } }
AtbCaptchaTask
{ "clientKey": "YOUR_API_KEY", "task": { "type":"AtbCaptchaTask", "appId":"af23e041b22d000a11e22a230fa8991c", "apiServer":"https://cap.aisecurius.com", "websiteURL":"https://www.example.com/", "proxyType": "http", "proxyAddress": "1.2.3.4", "proxyPort": "8080", "proxyLogin": "user23", "proxyPassword": "p4$w0rd" } }
回應範例
{ "errorId": 0, "status": "ready", "solution": { "token": "sl191suxzluwxxh6f:" }, "cost": "0.00299", "ip": "1.2.3.4", "createTime": 1692863536, "endTime": 1692863556, "solveCount": 1 }
使用令牌
在 captcha 初始化过程中,令牌会传递给 "success "属性中定义的回调函数。该函数通常用于向网站后台发出请求,由网站后台对令牌进行验证。您可以将令牌作为参数传递给回调函数,或者使用令牌向后台发出请求。
const myCallbackFunction = (token) { // verify the token } var myCaptcha = as.Captcha(document.getElementById('demo'), { appId: 'af23e041b22d000a11e22a230fa8991c', success: myCallbackFunction })