Del.icio.us Captcha Cracked
Here ya go. This is the del.icio.us captcha busted in Python.
#!/usr/bin/python
import Image,time,random,glob,re,os,sys
##$$$$
train = raw_input(“train? (y/n)”)
if(train == “y”) : train= True
else: train = False
##
fileName = ”.join(sys.argv[1:])
def getNeighbourhood(i,width,height,pixels):
results = []
try:
if(pixels[i+1] != 0): results.append(i+1)
if(pixels[i-1] != 0): results.append(i-1)
if(pixels[i-width] != 0): results.append(i-width)
if(pixels[i+width] != 0): results.append(i+width)
if(pixels[i-width+1] != 0): results.append(i-width+1)
if(pixels[i+width+1] != 0): results.append(i+width+1)
if(pixels[i-width-1] != 0): results.append(i-width-1)
if(pixels[i+width-1] != 0): results.append(i+width-1)
except:pass
return results
now = time.time()
captcha [...]