Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
2captcha-api
Advanced tools
Post a captcha to the 2Captcha service, then polls until the captcha is decoded.
npm install 2captcha
Set up your api key:
var solver = require('2captcha');
solver.setApiKey('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
Decode from a url, with a 10 seconds polling interval: (default = 2000ms)
solver.decodeUrl(url, {pollingInterval: 10000}, function(err, result, invalid) {
console.log(result.text);
});
Decode reCaptcha, with a 10 seconds polling interval: (default = 2000ms)
solver.decodeReCaptcha(captcha, pageUrl, {pollingInterval: 10000}, function(err, result, invalid) {
console.log(result.text);
});
Decode from a url retrying 5 times if invalid is called (default = 3)
solver.decodeUrl(url, {retries: 5}, function(err, result, invalid) {
if(!checkIfCaptchaIsValid(result.text)){
return invalid();
}
});
FAQs
A wrapper for the 2Captcha API
The npm package 2captcha-api receives a total of 102 weekly downloads. As such, 2captcha-api popularity was classified as not popular.
We found that 2captcha-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.