Skip to main content

hackcaptcha

Provide api functions for captcha recognition, this repo is created mainly for https://github.com/CharlesPikachu/DecryptLogin
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.

Documents

in Chinese

in English

Support List

Captcha Type Number of supported algorithms Number of supported webapis in Chinese
Slider 1 0 滑块验证码
Digital 0 1 数字验证码
Click 1 0 点击验证码

Install

Pip install

run "pip install hackcaptcha"

Source code install

(1) Offline
Step1: git clone https://github.com/CharlesPikachu/hackcaptcha.git
Step2: cd hackcaptcha -> run "python setup.py install"
(2) Online
run "pip install git+https://github.com/CharlesPikachu/hackcaptcha.git@master"

Quick Start

hack captcha by algorithms

from hackcaptcha.crackers import AlgorithmsCracker

cracker = AlgorithmsCracker()
# slider captcha
infos_return = cracker.slider(imagepath='CAPTCHA IMAGE PATH', algorithm_type='canny')
# digital captcha
# click captcha
infos_return = cracker.click(imagepath='CAPTCHA IMAGE PATH', algorithm_type='zt12306', text_model_path='text.h5', object_model_path='object.h5')

hack captcha by webapis

from hackcaptcha.crackers import WebapisCracker

cracker = WebapisCracker()
# slider captcha
# digital captcha
infos_return = cracker.digital(imagepath='CAPTCHA IMAGE PATH', webapi_type='baidu', app_id='AppID', api_key='API Key', secret_key='Secret Key')
# click captcha

References

[1]. https://github.com/zhaipro/easy12306

More

WeChat Official Accounts

Charles_pikachu
img

Metadata

Release files for hackcaptcha 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hackcaptcha 0.0.1
File Size Uploaded
hackcaptcha-0.0.1.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hackcaptcha 0.0.1
File Interpreter ABI Platform
hackcaptcha-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / hackcaptcha-0.0.1.tar.gz

Download URL hackcaptcha-0.0.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
02a93d8ec376b812cfe463b65bb969123107718e2f21f5999e4151f197f9ba65
BLAKE2b-256 checksum
How to use checksums
ac910f2bc5ec061e8f78cc8d3a421bd52352230403703892d5478136afa5d691
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

Release files / hackcaptcha-0.0.1-py3-none-any.whl

Download URL hackcaptcha-0.0.1-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c641f6d34f75820e7bc83ec9514cf28233b04e06251a3c5c1c25ff159fd72ebc
BLAKE2b-256 checksum
How to use checksums
643571d4dede77806ab2dc69d50ce4eee28c134fec21632304251a3c3a3dd801
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page