So I attempted a CAPTCHA breaker

vexusdev

BANNED
Joined
Dec 13, 2008
Messages
284
Reaction score
108
So.. I've read a bunch of times on here that the images youtube uses in its CAPTCHA repeats a lot.. so I thought hey why not I'll see what I can do.

I opened delphi and created a simple program that populates a folder with any amount of youtube's CAPTCHA images (i did 10,000) then it grabs a new CAPTCHA (say you were creating an account) then it compares a small section of that image(20 pixels in the middle) against the 10,000 pre-downloaded images.

Let me tell you, not one has matched so far.


Any ideas? Kind of disappointing put some time into this.. ;/


EDIT: I lied, I tried that with only 2000 I just moved it up to 8,000 and it finally just solved one! OMG success! :) Takes about a second for each thousand images.
 
Last edited:
Just a thought - for each of the capcha you have downloaded, can you do an MD5 of the image, are they different?

Then your account creator could grab the image, MD5 it and then compare against the other ones you have already hashed?

Only speculation as I wouldn't know where to start on a capcha breaker!
 
Just a thought - for each of the capcha you have downloaded, can you do an MD5 of the image, are they different?

Then your account creator could grab the image, MD5 it and then compare against the other ones you have already hashed?

Only speculation as I wouldn't know where to start on a capcha breaker!

Honestly I didn't take in the MD5 because even if you refresh the md5 stays the same and the image changes.. so maybe its just a session? I wonder its real value, does anyone know what its there for?

edit: try removing the hash it still generates an image.

Or is the hash where it keeps the value of the image? and then it compares?
 
he means, you get all of the .jpgs, and hash their data. When you get an image on youtube, download it, and hash it the same way. Now, instead of comparing 20 pixels to another 20 pixels, you compare 1 string to another string.
 
i think hes suggesting that you create a hash for each of the images you have downloaded and then when a captcha appears, create a hash for that and compare against all your recorded hashes.
 
I would compare the hashes.. only problem is I do not think they are unique to the image. Like I said no matter what its always a random image no matter whats in the URL.
 
im not talking about any hashes in the URL. im talking about generating hashes based on the image files you download
 
dude if the md5 way works how I think it should, then the current tedious and difficult method of breaking captchas will be obsolete. we'll be famous!
 
http://www.youtube.com/cimg?c=-EKfyfCZllUw7usistktTpcu_tW5v0h42QDZmT5VAGQL0547UMXYs4NMxkyPe-cj


http://www.youtube.com/cimg?c=


refresh both so you understand what I'm saying.

I'm pretty sure if you were to get that same exact picture again it would not have that same MD5.

We won't know unless I make a program that tries it out I guess. lol oh fun
 
hmm. does file meta data affect the hash? if so then it might be possible to make it so all your files have the exact same meta data, thus basing the hash solely on the content of the image?
 
hmm. does file meta data affect the hash? if so then it might be possible to make it so all your files have the exact same meta data, thus basing the hash solely on the content of the image?

Who knows, could be anything in that damn thing.. I'm sure its not just the image word.
 
well you could always do it the old fashioned way... segment the image and detect the letters by pixels
 
i think OCR is a better way to go than md5 because one pixel could be off and that's a new hash all together. Lots of captchas have a noise level you can set, so if it's putting in just a few random pixels and the letters are the same the md5s wont match up
 
http://www.youtube.com/cimg?c=-EKfyfCZllUw7usistktTpcu_tW5v0h42QDZmT5VAGQL0547UMXYs4NMxkyPe-cj


http://www.youtube.com/cimg?c=


refresh both so you understand what I'm saying.

I'm pretty sure if you were to get that same exact picture again it would not have that same MD5.

We won't know unless I make a program that tries it out I guess. lol oh fun

the URL has absolutely nothing to do with the image hash. You need to download the raw BINARY image data, and do an md5sum on it.

I have a hard time believing that these images are ever exactly the same, ever. Especially since they are almost certainly randomly generated by a php script of some kind. even if you change one bit in the image, the MD5 sum would be totally different.
 
i want to code captcha breakers.. such a task though
 
the URL has absolutely nothing to do with the image hash. You need to download the raw BINARY image data, and do an md5sum on it.

I have a hard time believing that these images are ever exactly the same, ever. Especially since they are almost certainly randomly generated by a php script of some kind. even if you change one bit in the image, the MD5 sum would be totally different.

Exactly, was just going by what a few said.. I knew the outcome probably wouldn't be good.
 
I used photoshop and broke down MySpace captcha to basic readable text black and white by running a certain series of filters in photo shop. If you did this you could then just apply the technique and use simple OCR. I assume my method could be applied to YouTube as well. Not sure if I have the method saved on my laptop or hdd in another state. Send me a PM and if I can find my text file that shows the process I'll send it to you.
 
PM that photoshop thing to me. cause ya know you can script things in photoshop
 
Back
Top