Skip to main content

Provide api functions for captcha recognition.

Project description

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

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

hackcaptcha-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

hackcaptcha-0.0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file hackcaptcha-0.0.1.tar.gz.

File metadata

  • Download URL: hackcaptcha-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for hackcaptcha-0.0.1.tar.gz
Algorithm Hash digest
SHA256 02a93d8ec376b812cfe463b65bb969123107718e2f21f5999e4151f197f9ba65
MD5 55a86dfb347e1e8924ccf9e4010e0807
BLAKE2b-256 ac910f2bc5ec061e8f78cc8d3a421bd52352230403703892d5478136afa5d691

See more details on using hashes here.

File details

Details for the file hackcaptcha-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: hackcaptcha-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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/44.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for hackcaptcha-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c641f6d34f75820e7bc83ec9514cf28233b04e06251a3c5c1c25ff159fd72ebc
MD5 78a20653bcb721017284f20cccf99360
BLAKE2b-256 643571d4dede77806ab2dc69d50ce4eee28c134fec21632304251a3c3a3dd801

See more details on using hashes here.

Supported by

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