Skip to main content

reCAPTCHA v2 Image Solver using YOLO and Selenium

Project description

reCAPTCHA v2 Image Solver

Simple Python tool that auto-solves Google's reCAPTCHA v2 "select all squares" puzzles using Selenium + YOLO.

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

How it works

  • Spots objects (cars, buses, crosswalks, etc.) in the images
  • Clicks the right tiles for you
  • Works with 3x3, 4x4, static, and dynamic challenges

1. virtual environment (optional but recommended)

python -m venv venv
# Linux/macOS
source venv/bin/activate
# Windows
venv\Scripts\activate

2. Install

pip install capx

(For the latest dev version straight from GitHub:)

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

3. Quick example

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()  # Done!

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

Also works with Firefox – check src/recaptcha_bypass/main.py for examples.

Have fun! 🚀

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.1.tar.gz (7.9 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.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: capx-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 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.1.tar.gz
Algorithm Hash digest
SHA256 af69177aac52b74a1fea0019777f3184478b37d2770bab8ed7809dfc6fc34e1d
MD5 c20a122f9dedcae70dd84f06cafd460c
BLAKE2b-256 811b1bb731b07440c1e7000d4832e448d635b628c2bd46a07af69ca9ca222546

See more details on using hashes here.

File details

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

File metadata

  • Download URL: capx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd5d175c69a180bd052410f1f0785176a1dc4749d237b6a4c676d333b3efd36
MD5 7edc2c7eea8006b2359dd445372f3d64
BLAKE2b-256 b5277f6039f18d528260d0a5b321930c1037dc481b762643d7e0db3409109274

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