Giter Club home page Giter Club logo

captcha-harvester's Introduction

Manual Captcha Harvester

Description

This simple script allows the user to manually harvest captchas and request them from the local server when needed. The token management is handled entirely by the server.

Requirements

  • Python 3+ The following modules must also be installed and can be with pip e.g. pip install colorama
  • colorama
  • termcolor
  • flask

Instructions

  • The most important step is to know how to edit your hosts file. You can find out how to do this with a simple google search. You will need to add an entry to your hosts file like so 127.0.0.1 harvester.DOMAIN-HERE - replacing DOMAIN-HERE with the domain you are harvesting for e.g. supremenewyork.com or adidas.com or sneakersnstuff.com
  • Open config.json in an editor such as atom or sublime and make the necessary changes to the file. Making sure the domain is entered without the www and the sitekey is correct and the latest one available
  • cd into the directory of the repository
  • python main.py to run the script

To request tokens from the server, you must send a GET request to http://harvester.DOMAIN-HERE:5000/api/token. The token that is set to expire next will be returned in json format. If there is a valid token available:

{"success": true, "error": null, "result": "TOKEN-HERE"}

Or if there are no tokens available:

{"success": false, "error": "ERROR-HERE", "result": null}

Note: An alternative to this is to use the built-in python function sendToken from your own script which will only return when there is a token available. Using requests is generally much cleaner and therefore a better option.

FAQ

  • The captcha solving page will not load... attempt to reload it manually and check you edited your hosts file correctly

captcha-harvester's People

Contributors

ryan9918 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

captcha-harvester's Issues

Missing browser executable location for Windows

Starting from line 29 in browser.py:

browser_command = []
    if system == 'Darwin':
        browser_command.append(f"open -a '{app}' -n --args")
        if not restart:
            browser_command.append(
                f'--user-data-dir=/tmp/havester/{str(uuid4())}')
        else:
            os.system(f'killall "{app}"')
    elif system == 'Windows':
        if not restart:
            browser_command.append(
                f"--user-data-dir={os.path.join(os.environ['TEMP'], 'harvester', str(uuid4()))}")
        else:
            os.system(f'TASKKILL /IM {browser}.exe /F')
    else:
        raise RuntimeError(
            'Automatic broswer functinality only avalible on MacOS and Windows for now')

Missing the initial argument referencing the browser executable location for Windows.
Adding the line below right under elif system == 'Windows': was a quick fix.

browser_command.append(f"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")

Enterprise Captcha

Hi there, I would like to know how can we deal with enterprise captcha? I tried adding the enterprise script and remove the normal captcha script in index.html but it is not working, the captcha solving box does not show up.

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.