Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@antiadmin/anticaptchaofficial
Advanced tools
Official anti-captcha.com npm package for solving images with text, Recaptcha v2/v3, Funcaptcha and GeeTest.
Anti-captcha is an oldest and cheapest web service dedicated to solving captchas by human workers from around the world. By solving captchas with us you help people in poorest regions of the world to earn money, which not only cover their basic needs, but also gives them ability to financially help their families, study and avoid jobs where they're simply not happy.
To use the service you need to register and topup your balance. Prices start from $0.0005 per image captcha and $0.002 for Recaptcha. That's $0.5 per 1000 for images and $2 for 1000 Recaptchas.
Module installation:
npm -i @antiadmin/anticaptchaofficial
Import and check your balance:
const ac = require("@antiadmin/anticaptchaofficial");
ac.setAPIKey('YOUR_API_KEY');
ac.getBalance()
.then(balance => console.log('my balance is $'+balance))
.catch(error => console.log('received error '+error))
Disable verbose output to console:
ac.shutUp();
Solve image captcha:
const fs = require('fs');
const captcha = fs.readFileSync('captcha.png', { encoding: 'base64' });
ac.solveImage(captcha, true)
.then(text => console.log('captcha text: '+text))
.catch(error => console.log('test received error '+error));
Report last solved image captcha as incorrect (must read this before using):
ac.reportIncorrectImageCaptcha();
Solve Recaptcha V2 without proxy:
ac.settings.recaptchaDataSValue = 'set me for google.com domains';
ac.solveRecaptchaV2Proxyless('http://DOMAIN.COM', 'WEBSITE_KEY')
.then(gresponse => {
console.log('g-response: '+gresponse);
console.log('google cookies:');
console.log(ac.getCookies());
})
.catch(error => console.log('test received error '+error));
Report last solved Recaptcha v2/v3 as incorrect (must read this before using):
ac.reportIncorrectRecaptcha();
Report Recaptcha v3 as correctly solved (more info here before using):
ac.reportCorrectRecaptcha();
Solve Recaptcha V2 with proxy:
ac.solveRecaptchaV2ProxyOn('http://DOMAIN.COM',
'WEBSITE_KEY',
'http', //http, socks4, socks5
'PROXY_IP',
'PROXY_PORT',
'PROXY_LOGIN',
'PROXY_PASSWORD',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116',
'some=cookies')
.then(gresponse => {
console.log('g-response: '+gresponse);
})
.catch(error => console.log('test received error '+error));
Solve Recaptcha V2-invisible (note the 3rd parameter "true"):
ac.solveRecaptchaV2Proxyless('http://DOMAIN.COM', 'WEBSITE_KEY', true)
Solve Recaptcha V3:
ac.solveRecaptchaV3('http://DOMAIN.COM',
'WEBSITE_KEY',
0.3, //minimum score required: 0.3, 0.7 or 0.9
'PAGE_ACTION_CAN_BE_EMPTY')
.then(gresponse => {
console.log('g-response: '+gresponse);
})
.catch(error => console.log('test received error '+error));
Solve Recaptcha V2 Enterprise without proxy:
ac.solveRecaptchaV2EnterpriseProxyless(
'http://DOMAIN.COM',
'WEBSITE_KEY',
{
"s" : "SOME_TOKEN",
"custom_parameter" : "string_number_boolean"
})
.then(gresponse => {
console.log('g-response: '+gresponse);
})
.catch(error => console.log('test received error '+error));
Solve AntiGate Task:
ac.solveAntiGateTask(
'https://anti-captcha.com/tutorials/v2-textarea',
'Demo sign-in at anti-captcha.com',
{
"login": "some login",
"password": "a password"
})
.then(solution => {
console.log('cookies: ', solution.cookies);
console.log('localStorage: ', solution.localStorage);
console.log('url: ', solution.url);
})
.catch(error => console.error('test received error: ', error));
same with a proxy:
ac.solveAntiGateTask(
'https://anti-captcha.com/tutorials/v2-textarea',
'Demo sign-in at anti-captcha.com',
{
"login": "some login",
"password": "a password"
},
'PROXY_IP',
'PROXY_PORT',
'PROXY_LOGIN',
'PROXY_PASSWORD')
.then(solution => {
console.log(solution);
})
.catch(error => console.error('test received error: ', error));
Other available task types with similar method calls:
ac.solveRecaptchaV2EnterpriseProxyOn( ... ); //Recaptcha V2 Enterprise with proxy
ac.solveRecaptchaV3Enterprise( ... ); //Recaptcha V3 Enterprise
ac.solveHCaptchaProxyless( ... ); //hCaptcha without proxy
ac.solveHCaptchaProxyOn( ... ); //hCaptcha with proxy
ac.solveFunCaptchaProxyless( ... ); //FunCaptcha without proxy
ac.solveFunCaptchaProxyOn( ... ); //FunCaptcha with proxy
ac.solveGeeTestProxyless( ... ); //Geetest without proxy
ac.solveGeeTestProxyOn( ... ); //Geetest with proxy
FAQs
Official Anti-Captcha.com npm library
The npm package @antiadmin/anticaptchaofficial receives a total of 12,637 weekly downloads. As such, @antiadmin/anticaptchaofficial popularity was classified as popular.
We found that @antiadmin/anticaptchaofficial demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.