Advertisement
MendaxPentest

emails_marcos

Feb 15th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.48 KB | None | 0 0
  1.   nano 2.6.3                                                  Arquivo: enviar_emails.py                                                              
  2.  
  3. #!/usr/bin/python3
  4. #coding: utf-8
  5. # Script que envia e-mail, cuja função principal é flood
  6. # Developer: marcos Alexandre
  7.  
  8. import smtplib
  9. import os
  10. import sys
  11.  
  12. try:
  13.         clear = os.system("clear") if os.name == "posix" else os.system("cls")
  14.         print("==========================")
  15.         print("*    mandar emails E-mail      *")
  16.         print("*      marcos Alexandre    *")
  17.         print("==========================")
  18.  
  19.         serv = smtplib.SMTP('smtp.gmail.com', 587)
  20.         serv.ehlo()
  21.         serv.starttls()
  22.  
  23.         user = raw_input("\n[*] Digite seu e-mail: ")
  24.         password = input("[*] Digite sua senha: ")
  25.         to = raw_input("[*] Digite o e-mail da vítima: ")
  26.         numero = int(input("[+] Quantidade de e-mails: "))
  27.         mensagem = str(raw_input("[+] Digite a mensagem: "))
  28.  
  29.         try:
  30.                 serv.login(user, password)
  31.                 print("[+] Login concluído com sucesso!")
  32.         except:
  33.                 print("[!] E-mail ou senha errados!")
  34.                 sys.exit()
  35.  
  36. ^G Ajuda        ^O Gravar       ^W Onde está?   ^K Recort txt   ^J Justificar   ^C Pos atual    ^Y Pág anter    M-\ Prim linha  M-W OndeTá próx.
  37. ^X Sair         ^R Ler o arq    ^\ Substituir   ^U Colar txt    ^T Lintar       ^_ Ir p/ linha  ^V Próx pág     M-/ Últ linha   M-] Parênteses
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement