
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Python library that solves reCAPTCHA v2 by replicating the challenge locally and using Wit.ai for audio transcription. Windows-only, requires admin privileges.
pip install captcha-ai-solver
Windows Only - Requires Admin privileges (modifies hosts file when it needs to replicate the captcha environment and spoof the original website domain).
This library inputs captcha parameters and outputs solution tokens. For extracting parameters or applying tokens, see: this guide
from captcha_solver import solve_captcha
# Define captcha parameters
captcha_params = {
"website_url": "https://www.google.com/recaptcha/api2/demo",
"website_key": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
}
# solver configuration
solver_config = {
"wit_api_key": "YOUR_WIT_API_KEY", # NEEDED for recaptcha audio challenges
}
# Solve the captcha
result = solve_captcha(
captcha_type="recaptcha_v2",
captcha_params=captcha_params,
solver_config=solver_config
)
if result["success"]:
print(f"Captcha solved! Token: {result['token'][:30]}...")
# Use the token in your application
else:
print(f"Failed to solve captcha: {result['error']}")
Currently, the library supports:
RecaptchaV2
: Standard reCAPTCHA v2For RecaptchaV2
:
Parameter | Type | Required | Description |
---|---|---|---|
website_url | string | Yes | URL of the website with the captcha |
website_key | string | Yes | reCAPTCHA site key |
Option | Type | Description |
---|---|---|
wit_api_key | string | API key for Wit.ai speech recognition (required for audio challenges) |
download_dir | string | Directory for temporary files (default: "tmp") |
The solve_captcha
function returns a result object with the following properties:
Property | Type | Description |
---|---|---|
success | boolean | Whether the solving was successful |
token | string or null | The solved captcha token if successful, null otherwise |
error | string or null | Error message if unsuccessful, null otherwise |
The library includes an example script that demonstrates how to use it:
python example.py --website "https://example.com" --key "your-recaptcha-key"
The library uses a combination of browser automation and AI-powered audio transcription to solve reCAPTCHA challenges:
This library is intended for legitimate testing, development, and automation purposes only. Please use responsibly and in accordance with the target website's terms of service.
If you want to contribute or modify the library, follow these steps to set up a development environment:
git clone https://github.com/njraladdin/captcha-ai-solver.git
cd captcha-ai-solver
On Windows:
python -m venv venv
venv\Scripts\activate
On macOS/Linux:
python -m venv venv
source venv/bin/activate
python -m pip install -e .
pip install -e ".[dev]"
.env
file with your WIT.ai API key for audio challenges:WIT_API_KEY=your_key_here
FAQs
A powerful AI-based library for solving reCAPTCHA challenges
We found that captcha-ai-solver demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.