Skip to main content

An asynchronized Python library to automate solving ReCAPTCHA v2 by audio

Project description

An async Python library to automate solving ReCAPTCHA v2 by audio using Mozilla’s DeepSpeech, PocketSphinx, Microsoft Azure’s and Amazon’s Transcribe Speech-to-Text API. Built with Pyppeteer for it’s Chrome automation framework and similarities to Puppeteer, PyDub for easily converting MP3 files into WAV, aiohttp for it’s 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 this 1-minute presentation of the script in action, with only 8 threads!

nonoCAPTCHA preview

nonoCAPTCHA preview

Compatibility

Linux, macOS, and Windows!

Requirements

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

Installation

$ pip install nonocaptcha

Configuration

Please edit config.example.py and save as config.py

Usage

If you would like to use it in your own script

import asyncio
from nonocaptcha import settings
from nonocaptcha.solver import Solver

pageurl = settings["run"]["pageurl"]
sitekey = settings["run"]["sitekey"]

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

solution = asyncio.get_event_loop().run_until_complete(client.start())
if solution:
     print(solution)

Or use the included async script app.py/run.py

Edit variable count for amount of threads to use

$ python examples/run.py

Use the included mini-server and access http://localhost:5000/get?pageurl=PAGEURL&sitekey=SITEKEY

Replace PAGEURL and SITEKEY with the websites ReCAPTCHA details.

$ python examples/app.py

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

nonocaptcha-1.7.4.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

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

nonocaptcha-1.7.4-py3-none-any.whl (57.8 kB view details)

Uploaded Python 3

File details

Details for the file nonocaptcha-1.7.4.tar.gz.

File metadata

  • Download URL: nonocaptcha-1.7.4.tar.gz
  • Upload date:
  • Size: 56.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nonocaptcha-1.7.4.tar.gz
Algorithm Hash digest
SHA256 0d2cc25a8245d795eb4887e65bb37c6ff0e09e650b71f7dfbdc8b84792f7f7d1
MD5 052f81bd2d04990e94cbc1b96018a71a
BLAKE2b-256 7713e63683001fea47a28f7ed4498614ceb14587938ba6e34f30a302584af35b

See more details on using hashes here.

File details

Details for the file nonocaptcha-1.7.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nonocaptcha-1.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c882bf1df7ade0aaa67dfb58805c72bd8f41c4f131df091aad30e9204843f59d
MD5 63ab79a0b6b0424a08c8d998e9c4fc97
BLAKE2b-256 ec47b8d3d16153999141ddc157a68a089c868888db790bf14a29d2f3bfb3ca9c

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