G-WAN is a new free web server. They seem to be very proud of it, or at least just want to make a lot of money. Well anyway, in almost every sentence they write, they claim that they are 20% cooler than anything else. It feels a bit arrogant. I have to admit, I don't know a lot about web servers, so I can't speak to how good they are.
However, then I saw their Captcha example. I also don't know much about machine learning algorithms, OCR, and stuff like that, but I do know how to read pixels. I also know how to compare values with python :P
They say the following about their Captcha:
[...] difficult or even completely impossible for robots.
Wait wat? If this is true, this is something really outstanding and maybe an alternative to reCaptcha...
But then I was like:
So I wrote this basic stupid pixel by pixel reading and comparing code, to decode the captcha.
smrrd$ python crack_captcha.py
GIF Image
---------
R0lGODlhGAAZAJEAAP///9//v4SkZAAAACH5BAEAAAAALAAAAAAYABkAAAJfhI+pGB0rmHuGAmtEPJj7E23VYlmbeDnMB2guu44J2lWqQi/6Drl0k7hlSKwSiHeBgV5BTK2FNOKIsmQVJekIkdzgTEOVIERY4ApDPoczTOvzCbVtq/G6kt4CK+BdRQEAOw==
Captcha Data Matrix
-------------------
1 1 1 1 2 1 1 1 1 1
1 1 2 2 1
1 1 2 2 1
1 1 2 2 1 1 1 1
1 1 2 2 2 2 2 1
1 1 2 1
1 1 1 1 2 1
2 2 2 2 2 1 1 1 1 1 1
2 1 1 1 1
2 1 1
2 2 2 2 1 1 1
2 1 1
2 1 1 1 1
2 1 1 1 1 1 1
1 2 2 2 1
1 1 2 2 1 1
1 1 2 2 1 1
1 2 2 2 2 1 1
1 2 1 1 1 1 1
1 2 2 1
1 2 2 2 1
color | pixel count
-------------------
0 | 472
1 | 81
2 | 44
color 1 | color 2
---------------------
3 | 4
1 | 9
4 |
---------------------
8 | 13
I also don't understand, what they think this means and why they are so excited about it:
The two sums are: 13 and 8... for the same Captcha image!
By just changing the HTML background color [...]
In the end, this was the first time I tried to solve a Captcha. I think this is the best example of how not to implement it.
kind regards,
samuirai
personal Website http://www.smrrd.de
I'm a member of the Stuttgart Hackerspace - shackspace
edit: to see really cool stuff with reCaptcha, check out what they did: http://www.dc949.org/projects/stiltwalker/
I'm reading this after 13 years in 2025.
CAPTCHAs have evolved and with the popularization and advancements in AI it is fair to say that most CAPTCHAs of the past and even current CAPTCHAs, even Google's, can be beat using AI.
I'm only recently finding out about the GWAN server and find it VERY interesting for high performance web applications, I'm definitely a believer in using C modules for performance, like Node.JS. I frankly hope GWAN keeps being developed and becomes more popular. Making its code openly auditable, not necessarily open source (different license), would probably help a lot since trusting non-auditable code for web servers is always a risk. There are several closed source web servers, but generally speaking they haven't been very successful, with the exception of Microsoft's IIS, and I mainly think it's because Microsoft as a company is trusted.
Regarding this thread, I can't help but think that it is immature not to accept that GWAN's captcha generating module was beat by @Samuirai's code when this was posted. Samuirai's code is interesting, easy to understand and achieves what it claims. We could say that Samuirai proved, in practice, that it wasn't a very secure or hard to beat CAPTCHA, that's that, we should just accept when our security is beat in order to improve said security. Many CAPTCHAs have come and gone, like the ones that were generated via PHP.
Public scrutiny of security methods and the publishing of exploits is in the end, good. It helps our industry reach better standards. Like what happened with cryptography, which is now a solid cornerstone of modern computing and society.
Many standard crypto algorithms are secure against any programmer, academic, scientist, mathematician, or powerful attacker if the source of randomness is unpredictable enough, and this has only been possible because people have collectively tried to break hundreds of encryption methods until we were left with the unbreakable ones. Every iteration of these, even failed ones, are a success, because they were theorized, built and tested in the field, all of them got us closer to the current standards.