Solving Fossil SCM's CAPTCHA in 171 characters

Solving Fossil SCM's CAPTCHA in 171 characters 图片 1

I recently stumbled upon what might be the most charmingly naive CAPTCHA implementation I've ever seen: Fossil SCM's text-based CAPTCHA. It renders hex digits as ASCII art using unicode block characters, and asks users to type what they see. You can find a live example here.

Here's what 69B34B04 looks like:

My immediate thought was to try and write a solver for it for fun, but while doing so I wondered how small the solver could possibly go. Having never done any sort of code golfing before, this seemed like a good excuse to try.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论