CAPTCHA notes gmail: link to view: https://www.google.com/accounts/NewAccount?service=mail&continue=http%3A%2F%2Fmail.google.com%2Fmail%2Fe-11-10ba05aeaa8e9b701e5151437f9a44d3-64aeae753cc34f1c864f7edc97a046ccdc96987b&type=2 length: 5-8 range: a-z case-sensitive: no background: always white overlay: none text color: solid blue,green,or red. single color. size: 2000-3900 bytes width: always 200px height: always 70px other: tilting seemingly random, 5chars is rare, red is rare, shade of solid colors may change between captchas gmail-audio: link to view: https://www.google.com/accounts/NewAccount?service=mail&continue=http%3A%2F%2Fmail.google.com%2Fmail%2Fe-11-10ba05aeaa8e9b701e5151437f9a44d3-64aeae753cc34f1c864f7edc97a046ccdc96987b&type=2 length: not certain (5-10?) range: 0-9 case-sensitive: N/A background: equally loud gibberish and noise, really gets in the way. size: 200044-440044 bytes other: way too hard for a human - don't know how blind people do it. pace varies but pitch seems to remain fairly similar. yahoo: link to view: https://edit.yahoo.com/registration?.intl=us&new=1&.done=http%3A//mail.yahoo.com&.src=ym&.v=0&.u=ak37rod3tebb2&partner=&.partner=&pkg=&stepid=&.p=&promo=&.last=# length: 4-6 range: a-z,A-Z,2-8 case-sensitive: no background: always white text color: always black overlay: 1-3 random line paths, always black size: between 1800 and 3200 bytes width: always 290px height: always 80px other: tilting and bending randomly, 4chars is rare, each letter either 2d sans-serif or 3d serif, some letters not used or in only one case hotmail: link to view: https://signup.live.com/newuser.aspx?mkt=en-us&ts=4309539&sh=ynSL&ru=http%3a%2f%2fmail.live.com%2f%3fnewuser%3dyes&rx=http%3a%2f%2fget.live.com%2fmail%2foptions&rollrs=03&lic=1#HipBox length: 8 range: A-Z,2-3,5-6,8-9 case-sensitive: no background: always gray text color: always dark blue overlay: short line paths with 0-3 bends, always dark blue size: 3200-4400 bytes width: always 218px height: alway 48px other: looks easiest to solve, font size varies hotmail-audio: link to view: https://signup.live.com/newuser.aspx?mkt=en-us&ts=4309539&sh=ynSL&ru=http%3a%2f%2fmail.live.com%2f%3fnewuser%3dyes&rx=http%3a%2f%2fget.live.com%2fmail%2foptions&rollrs=03&lic=1#HipBox length: 10 range: 0-9 case-sensitive: N/A background: lower volume gibberish, sounds like numbers really fast with extra noise size: 46000-131000 bytes other: numbers seem to follow a steady pace, pitch varies and either a higher pitched woman or low pitched male with robotic senthesizing
import urllib, os, random, time
### INIT ###
DIR = r"\home\"# <== Directory to output files
random.seed(time.time())
global UPPER, LOWER, NUMBERS
UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
LOWER = "abcdefghijklmnopqrstuvwxyz"
NUMBERS = "0123456789"
### FUNCTIONS ###
def random_filename(length, extension, uppercase=1, lowercase=1, numbers=1):
global UPPER, LOWER, NUMBERS
possible = []
if uppercase == 1:
possible.append((UPPER, 25))
if lowercase == 1:
possible.append((LOWER, 25))
if numbers == 1:
possible.append((NUMBERS, 9))
result = ""
while len(result) != length:
cur = random.choice(possible)
result = result + cur[0][random.randint(0, cur[1])]
return result + '.' + extension
def get_captcha(quant):
for i in range(quant):
FILENAME = random_filename(32, "png")
URL = "http://reddit.com/captcha/" + FILENAME + '?' + `random.random()/2 + 0.25`
print URL
imf = urllib.urlopen(URL)
size = imf.headers.get("Content-Length")
of = open(os.path.join(DIR, FILENAME), "wb")
of.write(imf.read(int(size)))
of.close()
imf.close()
### GET SOME CAPTCHAS ###
get_captcha(100)
[\code]
Edited 1 time(s). Last edit at 04/30/2008 10:08AM by istari.