PHPBB3 Captcha is super easy
A while back I presented a long-winded algorithm that would crack phpBB3 captchas. However I cracked it a while back and it’s even simpler than I said before. My floodfill routine returns the size of the area it colours in. Soooo… I flood fill background coloured pixels and if it’s a small area we assume it must be part of a letter and keep it. That gives us lots of small segments to join together.
Incidentally we find the background colour by reading the pixels along the top and finding the most regularly occuring colour.
Now we have some small segments we make them touch each other by blurring them and then we force the picture into only two colours. Then using the average density of vertical lines in each letter we rotate them to an approximately correct position. It may throw a few upside down but as long as that letter always comes out that way up the computer doesn’t care.
Now just train Gocr or a neural network or <<insert cunning program here>> to read those letters. Simple. And surprisingly accurate too. We could further improve it with colour checking routines etc but hey, it works.




May 12th, 2008 at 5:53 pm
I have spent today porting your phpBB2 captcha code into my ‘web content creation framework’ ;). The accuracy is excellent and I had never thought of using a dual human and machine approach to captcha cracking. I noticed a lot of phpBB sites are using alternative captchas, so the human side is very useful to get these out of the way.
One thing I found that was useful to add to your code is something that selects the first option of all select elements (I use a wrapper of the XML DOM and XPath functions to do this). There are quite a lot of mods to phpBB that add extra required fields to the registration form. Using the above solution you can still sign up to these site
Right now I am just getting the registration confirmation text in every language so I can get confirmation. I guess a smart guy would have instantly realised this is probably all in the phpBB distro
Right now I have a few terminal windows ripping up phpBB2 dorks (gotta love those open source programmers) from Yahoo. DB already has 3,589 confirmeed installs :>. Thanks for sharing your phpBB2 code. Is the 3 code going to be made available?
May 13th, 2008 at 4:29 am
I plan to release it eventually in a GTK wrapper as a desktop application.
Anyway it sounds like you’ve added quite a few things I haven’t thought about. And the whole part of failing a captcha and then showing it to the user idea (At least that what I assume you mean). I didn’t plan it to be used like that
, but that idea kinda rocks except I bore easily typing in captchas. I did wonder if in Linux you could background run a process that pops the captcha up in some image preview program so that you can still see it from the command line.
Next thing is to avoid detection.
May 13th, 2008 at 3:54 pm
Thanks for sharing super easy PHPBB3 Captcha.I think captcha is essential for a blog to protect spam.
May 13th, 2008 at 11:18 pm
Really good stuff - keep up the good work on posting.
I have to say no one else talks about this kind of material, and it’s refreshing to be able to read about it, think about it, and code it.
May 18th, 2008 at 3:49 am
Well, I never thought that this can be this easy. Thanks.
May 18th, 2008 at 3:25 pm
Thanks a lot for providing this PHPBB3 Captcha.I will check it.
May 20th, 2008 at 3:13 am
This is really looks easy.I never thought that it is so easy.
May 20th, 2008 at 3:14 am
I had never thought deeply about this thing.This is really looks easy.Thanks for the post.
May 21st, 2008 at 1:59 am
I thought this is a tough job.But this time it looks like vey easy.Thanks.
May 21st, 2008 at 2:00 am
I always thought how they make this things.Thanks for sharing.
May 21st, 2008 at 2:47 am
thats really easy
thank you 4 this tip
May 23rd, 2008 at 11:11 am
Good work man… these are the great things you are putting here and helping folk
thanks
May 28th, 2008 at 5:32 am
I havent had ANY yet and all my pages are in google and linked via many sites, I think the capatcha is doing great!
May 28th, 2008 at 7:32 am
The reason of using a captcha didn’t even work. no matter how hard or easy they are. So I quit thinking about that.
June 3rd, 2008 at 4:12 am
think captcha is essential for a blog to protect spam.
June 16th, 2008 at 11:28 am
Hello
G’night