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
September 10th, 2008 at 10:53 am
I always wondered how they did this
October 3rd, 2008 at 5:40 am
That is great info, well written and interesting. Very useful, so thanks. Top man!
October 22nd, 2008 at 3:05 pm
Interesting information. I’ve always wondered how these things get cracked.
October 28th, 2008 at 3:19 pm
I think this captcha is very good to see. but it is very good stuff and easy work. it is a very good concept too.
October 31st, 2008 at 5:39 am
Thanks for the great article. very useful
November 17th, 2008 at 11:16 am
Brilliant
I’m going to give it a whirl when I’m at home and the doors are locked.
Keep up the great work
December 12th, 2008 at 6:36 am
I was looking a similar system to recognise terrain on mapping systems
December 25th, 2008 at 9:33 am
That’s very clever to blur the words by have the segments touch each other.
December 25th, 2008 at 9:41 am
No playing around with that phpBB3 captcha.
January 1st, 2009 at 11:53 pm
That’s definitely very easy to do. Great Catch.
January 19th, 2009 at 1:33 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.
February 2nd, 2009 at 3:49 am
Thanks for the article. Really useful info.
February 6th, 2009 at 4:05 am
Thanks for the article.
I’ve a website which is based on phpBB3. I’m using this captcha to protect website against spam bots.
Which captcha should I use if phpBB3 captcha is easy to hack, ( reCAPTCHA or something else ) ?
February 16th, 2009 at 9:12 pm
thanks for this post.
It is really good especially in determining if the user is really human or just computer-generated since these are images.
Great post! Thumbs up for this. I hope to read more informative articles during my next visit. I hope next time you’ll feature home desktop computers.
March 31st, 2009 at 4:23 pm
Thanks for this great post, nice info wil help anyone, please keep up this great work
April 7th, 2009 at 7:37 am
This is a never ending battle, I have to admit to not knowing where it will stop.
Josh
April 10th, 2009 at 2:47 pm
Just one more thing for forum owners to worry about!?
April 14th, 2009 at 3:12 pm
Heh, poetic justice that this comment thread is full of spam.
April 17th, 2009 at 5:20 am
Well, to soon to say if it’s good, but at least it’s well designed
April 23rd, 2009 at 9:48 pm
Good article - plenty of food for thought.
April 29th, 2009 at 5:45 pm
good work
April 29th, 2009 at 5:48 pm
excellent stuff
May 6th, 2009 at 9:54 am
Get information - keep up the get posting…
May 25th, 2009 at 2:06 am
Quite a useful feature you’ve added. Cheers again to the statcounter team.
May 25th, 2009 at 10:29 pm
it is very good!
June 10th, 2009 at 1:26 pm
and it will be interesting to follow his progress.
We are currently making the last changes before releasing the first version
June 17th, 2009 at 9:38 pm
MMORPG is now Runescape Gold
June 22nd, 2009 at 8:57 am
Good topic. you can buy any custom essay about PHPBB3 Captcha or buy essay here
June 23rd, 2009 at 2:20 pm
thank you very much
June 23rd, 2009 at 2:21 pm
thank you older brother…
June 24th, 2009 at 9:01 pm
Dream in louboutin shoes
June 24th, 2009 at 9:02 pm
Most dreams ed hardy caps
June 24th, 2009 at 10:30 pm
Great article, again. These informations are especially useful …