Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GAME: PLAYERUNKNOWN'S BATTLEGROUNDS
- twish:
- youtube:
- user: lilyfigueroa@yahoo.com password: (ijnBGR4Gf!f26)
- ##############################################################################################################################
- #coded by nali ~ Kurdish Security Researcher
- #write ur smtp server in smtp = smtplib.SMTP('smtp server') and user and pass here smtp.login('username', 'pass')
- filePath = "file name with format type"
- From = 'ur mail'
- To = 'target'
- msg = MIMEMultipart()
- msg['From'] = From
- msg['To'] = To
- msg['Date'] = formatdate(localtime=True)
- msg['Subject'] = ''
- msg.attach(MIMEText(''))
- try:
- smtp = smtplib.SMTP('server')
- smtp.starttls()
- smtp.login('username', 'pass')
- except:
- i = 1
- else:
- i = 0
- if i == 0:
- ctype, encoding = mimetypes.guess_type(filePath)
- if ctype is None or encoding is not None:
- ctype = 'application/octet-stream'
- maintype, subtype = ctype.split('/', 1)
- if maintype == 'text':
- fp = open(filePath)
- part = MIMEText(fp.read(), _subtype=subtype)
- fp.close()
- elif maintype == 'image':
- fp = open(filePath, 'rb')
- part = MIMEImage(fp.read(), _subtype=subtype)
- fp.close()
- elif maintype == 'audio':
- fp = open(filePath, 'rb')
- part = MIMEAudio(fp.read(), _subtype=subtype)
- fp.close()
- else:
- fp = open(filePath, 'rb')
- part = MIMEBase(maintype, subtype)
- part.set_payload(fp.read())
- fp.close()
- Encoders.encode_base64(part)
- part.add_header('Content-Disposition', 'attachment; filename="%s"' % filePath)
- msg.attach(part)
- try:
- smtp.sendmail(From, To, msg.as_string())
- except:
- print "Mail not sent"
- else:
- print "Mail sent\ncoded by Nali ~ Security Researcher"
- smtp.close()
- else:
- print "failed"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement