GithubHelp home page GithubHelp logo

anthrax3 / tbbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shenberg/tbbot

0.0 1.0 0.0 144 KB

Registration bot for the late torrentbytes. Solved their captcha to give a significant edge on the rest of the internet.

Python 100.00%

tbbot's Introduction

tbbot

Registration bot for the late torrentbytes written in February 2007. Solved their captcha to give a significant edge on the rest of the internet when hammering their registration page.

Was written by a few friends and myself as a quick hack.

The captcha had a few severe issues:

  • letters aren't warped at all (constant size, etc.)
  • colors are constant, making it easy to separate foreground from background
  • letters are separated by at least one blank column

Captcha-solving works as follows:

  1. convert the image to binary, where only blue-enough colors are black, and the rest is white (this step removes the shadows)

  2. split the bitmap into letter bitmaps by looking for blank columns separating them

  3. for each letter, cross-correlate its bitmap as a 1d vector with a small amount of pre-solved bitmaps. Correlation is done by using an FFT->multiplication->iFFT to perform a convolution, and the convolution with the highest maximum value is considered the match.

File details:

  • c*.bmp - sample captchas, and after some processing.
  • letters.dat - file with solved letters
  • match_letters.py - code to cross-correlate a bitmap with the database entries to find the best match.
  • ocr.py - old version of the actual bot, includes letter separation
  • tb_image.py - get the text from the captcha. Does image -> b/w bitmap conversion, letter separation, calls match_letters for solving each letter
  • tbbot.py - newer version of the bot in response to changes in their HTML.s

tbbot's People

Contributors

shenberg avatar

Watchers

 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.