Giter Club home page Giter Club logo

geetest-slice-captcha-solver's Introduction

GEETEST-SLICE-CAPTCHA-SOLVER

Solver for the geetest sliding captcha, implemented with Python and the OpenCV package.

NOTE: THIS SOLVER HAS BEEN TESTED ON PRODUCTION CAPTCHAS

Captcha Explanation

To pass this captcha, the piece need to be moved to his gap.

Here's an example of the captcha:

Captcha Example

For this solver, we just need the 2 images that form this captcha (piece and background):

Piece Background

You can find these images in the html of the web page. For example:

<canvas class="geetest_canvas_bg geetest_absolute" height="160" width="260"></canvas>
<canvas class="geetest_canvas_slice geetest_absolute" width="260" height="160"></canvas>

Captcha Solution

The solution of this captcha is the distance between the piece at the beginning and the piece's gap. So if the solver matches the gap, it has the solution.

Solver Dependencies

sudo apt-get update -y
sudo apt-get install -y python3-pip python3-dev build-essential libjpeg8-dev zlib1g-dev libglib2.0-0 libsm6 libxext6 libxrender-dev
pip3 install -U pip
pip3 install -r requirements.txt

Example of usage

Open the python console:

python3

Inside the console:

from solver import PuzleSolver
solver = PuzleSolver("example/piece.png", "example/background.png")
solution = solver.get_position()
solution

geetest-slice-captcha-solver's People

Contributors

peduajo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.