Skip to main content

An asynchronized Python library to automate solving ReCAPTCHA v2 by audio/images

Project description

https://travis-ci.org/mikeyy/nonoCAPTCHA.svg?branch=master PyPI PyPI - Python Version PyPI - License PyPI - Status

GoodByeCaptcha

An async Python library to automate solving ReCAPTCHA v2 by images/audio using Mozilla’s DeepSpeech, PocketSphinx, Microsoft Azure’s, Google Speech and Amazon’s Transcribe Speech-to-Text API. Also image recognition to detect the object suggested in the captcha. Built with Pyppeteer for Chrome automation framework and similarities to Puppeteer, PyDub for easily converting MP3 files into WAV, aiohttp for async minimalistic web-server, and Python’s built-in AsyncIO for convenience.

Disclaimer

This project is for educational and research purposes only. Any actions and/or activities related to the material contained on this GitHub Repository is solely your responsibility. The misuse of the information in this GitHub Repository can result in criminal charges brought against the persons in question. The author will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this GitHub Repository to break the law.

Public

This script was first featured on Reddit at /r/Python - see here for the thread. I’ve finally decided to release the script.

Preview

Check out 1-minute presentation of the script in action, with only 8 threads!

nonoCAPTCHA preview

Compatibility

Linux, macOS, and Windows!

Requirements

Python 3.7.0, FFmpeg, a Microsoft Azure account for Bing Speech API access, an Amazon Web Services account for Transcribe and S3 access, Wit.AI, and for Pocketsphinx you’ll need pulseaudio, swig, libasound2-dev, and libpulse-dev under Ubuntu.

Installation

$ pip install goodbyecaptcha

Deploy

rm -R dist/ && rm -R build/ && rm -R goodbyecaptcha.egg-info/ && python3.7 setup.py sdist && python3.7 setup.py sdist bdist_wheel && python3.7 -m twine check dist/* && python3.7 -m twine upload --skip-existing dist/* --verbose

Configuration

Please edit goodbyecaptcha.example.yaml and save as goodbyecaptcha.yaml

Usage

If you want to use it in your own script

from goodbyecaptcha.solver import Solver

pageurl = "https://www.google.com/recaptcha/api2/demo"
sitekey = "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"

proxy = "127.0.0.1:1000"
auth_details = {"username": "user", "password": "pass"}
args = ["--timeout 5"]
options = {"ignoreHTTPSErrors": True, "method": 'images', "args": args}
client = Solver(
    # With Proxy
    pageurl, sitekey, options=options, proxy=proxy, proxy_auth=auth_details
    # Without Proxy
    # pageurl, sitekey, options=options
)

solution = client.loop.run_until_complete(client.start())
if solution:
    print(solution)

Donations

The use of proxies are required for my continuous updates and fixes on nonoCAPTCHA and GoodByeCaptcha. Any donations would be a great help in allowing me to purchase these proxies, that are clearly expensive. If anyone is willing to share their proxies, I wouldn’t hesitate to accept the offer.

Bitcoin: 1BfWQWAZBsSKCNQZgsq2vwaKxYvkrhb14u

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

goodbyecaptcha-2.2.1.tar.gz (62.1 kB view details)

Uploaded Source

Built Distribution

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

goodbyecaptcha-2.2.1-py3-none-any.whl (76.3 kB view details)

Uploaded Python 3

File details

Details for the file goodbyecaptcha-2.2.1.tar.gz.

File metadata

  • Download URL: goodbyecaptcha-2.2.1.tar.gz
  • Upload date:
  • Size: 62.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for goodbyecaptcha-2.2.1.tar.gz
Algorithm Hash digest
SHA256 2fca5ea101167b9c0fddd6fa5d9eeff2375cb784db0cb7ecd7ea7b1d8455ebbf
MD5 78525f52d0d75b66c3bef94e1d6a2b51
BLAKE2b-256 4923b6bbbdc831d72d49d618eb5001dd3026f788cf755c709df1a6982722ed6d

See more details on using hashes here.

File details

Details for the file goodbyecaptcha-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: goodbyecaptcha-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 76.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5

File hashes

Hashes for goodbyecaptcha-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dba7942a1538ae0ed72ffc0b6b10e549b21456bd92f5018066ea91ad3217cd4
MD5 bb3cfc208f94d185813334c030508ae6
BLAKE2b-256 bcf0ac4e3e252fbd41dfe2fa5f5b4b60edb29cac653b71eea3d7a0a20419dabf

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