Advertisement
Guest User

PLAYERUNKNOWN'S BATTLEGROUNDS

a guest
Aug 17th, 2017
1,302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.87 KB | None | 0 0
  1.  
  2. GAME: PLAYERUNKNOWN'S BATTLEGROUNDS
  3.  
  4. twish:
  5. youtube:
  6.  
  7.  
  8. user:  lilyfigueroa@yahoo.com   password: (ijnBGR4Gf!f26)
  9.  
  10.  
  11. ##############################################################################################################################
  12. #coded by nali ~ Kurdish Security Researcher
  13. #write ur smtp server in smtp = smtplib.SMTP('smtp server') and user and pass here smtp.login('username', 'pass')
  14. filePath = "file name with format type"
  15.  
  16. From = 'ur mail'
  17. To = 'target'
  18.  
  19. msg = MIMEMultipart()
  20. msg['From'] = From
  21. msg['To'] = To
  22. msg['Date'] = formatdate(localtime=True)
  23. msg['Subject'] = ''
  24.  
  25. msg.attach(MIMEText(''))
  26.  
  27. try:
  28.    smtp = smtplib.SMTP('server')
  29.    smtp.starttls()
  30.    smtp.login('username', 'pass')
  31. except:
  32.    i = 1
  33. else:
  34.    i = 0
  35.  
  36. if i == 0:
  37.    ctype, encoding = mimetypes.guess_type(filePath)
  38.    if ctype is None or encoding is not None:
  39.        ctype = 'application/octet-stream'
  40.    maintype, subtype = ctype.split('/', 1)
  41.    if maintype == 'text':
  42.        fp = open(filePath)
  43.        part = MIMEText(fp.read(), _subtype=subtype)
  44.        fp.close()
  45.    elif maintype == 'image':
  46.        fp = open(filePath, 'rb')
  47.        part = MIMEImage(fp.read(), _subtype=subtype)
  48.        fp.close()
  49.    elif maintype == 'audio':
  50.        fp = open(filePath, 'rb')
  51.        part = MIMEAudio(fp.read(), _subtype=subtype)
  52.        fp.close()
  53.    else:
  54.        fp = open(filePath, 'rb')
  55.        part = MIMEBase(maintype, subtype)
  56.        part.set_payload(fp.read())
  57.        fp.close()
  58.        Encoders.encode_base64(part)
  59.    part.add_header('Content-Disposition', 'attachment; filename="%s"' % filePath)
  60.    msg.attach(part)
  61.    try:
  62.        smtp.sendmail(From, To, msg.as_string())
  63.    except:
  64.        print "Mail not sent"
  65.    else:
  66.        print "Mail sent\ncoded by Nali ~ Security Researcher"
  67.    smtp.close()
  68. else:
  69.    print "failed"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement