Cracking captcha in Javascript: Yes you read it right
Now it is proved that captcha can be cracked by writing an OCR engine using Neural Nets in Javascript.
ShaunF has written a GreaseMonkey script that automatically solves the captcha provided by the site Megaupload.
Click here to check out the online demo of this hack.
John Resig dissects the neural network Javascript OCR captcha code and explained how the hack works.
- The HTML 5 Canvas getImageData API is used to get at the pixel data from the Captcha image. Canvas gives you the ability to embed an image into a canvas (from which you can later extract the pixel data back out again).
- The script includes an implementation of a neural network, written in pure JavaScript.
- The pixel data, extracted from the image using Canvas, is fed into the neural network in an attempt to divine the exact characters being used – in a sort of crude form of Optical Character Recognition (OCR).
On the related note, sometime back I’ve written a post on “Is Captcha Secure?”
Now it is proved that Captcha isn’t Secure. Thanks to ShaunF for his amazing piece of Javascript code
Naveen. V