Skip to main content

reCAPTCHA v2 Image Solver using YOLO and Selenium

Project description

reCAPTCHA v2 Image Solver

Simple Python tool to automatically solve Google's reCAPTCHA v2 "select all squares" challenges using Selenium + YOLO.

https://github.com/user-attachments/assets/22308be7-3a90-4757-8799-b47008b32bf0

How it works

  • Detects objects (cars, buses, crosswalks, etc.) in captcha images
  • Clicks the correct tiles automatically
  • Handles 3x3, 4x4, static and dynamic challenges

1. Set up a virtual environment (recommended)

python -m venv venv

# Activate it
# On Linux / macOS
source venv/bin/activate

# On Windows
venv\Scripts\activate

2. Installation

pip install git+https://github.com/mahdi-marjani/recaptcha-bypass.git

3. Usage

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
from recaptcha_bypass import RecaptchaSolver

driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
driver.get("https://www.google.com/recaptcha/api2/demo")

solver = RecaptchaSolver(driver)
solver.solve()  # That's it

input("Press Enter to close...")
driver.quit()

Works with Firefox too — see src/recaptcha_bypass/main.py for examples.

Enjoy! 🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

capx-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capx-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file capx-0.1.0.tar.gz.

File metadata

  • Download URL: capx-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for capx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ffdc69cb36eb903c3531786807802f0fec29701b12e21e377b5363d69403204f
MD5 7fa0dbe2db703cba11bd7ccb51de3eac
BLAKE2b-256 5dc6fc41da1d57f0a0c572861552d025c5d5472e135ad2c810573ef173f17682

See more details on using hashes here.

File details

Details for the file capx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: capx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for capx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed43bb5fbbf20e6ba019e0b3b19360ce87338e6b4ee46e332760a7d70ad5f4b1
MD5 00b35e5e823ead2bd72ada409e993697
BLAKE2b-256 44ff2179d6be4636271c4260c8cc4ae5c8697ccf5d7d983c2d229c8cef1a86a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page