Advertisement
Guest User

Spammer codigo by donxo

a guest
Jul 18th, 2015
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. #!/usr/local/bin/perl
  2.  
  3. $ARGC=@ARGV;
  4. if ($ARGC !=4) {
  5. printf "Você digitou de uma forma errada. Siga as instruções.\n";
  6. printf "INSTRUÇÕES - UND3F1N3D\n";
  7. printf "perl $0 <mailist> <remetente\@mail.com> <assunto> <corpo.html>\n";
  8. printf "Exemplo: perl $0 lista01.txt peu\@msn.com Ola index.html\n";
  9. exit(1);
  10. }
  11.  
  12. $mailtype = "content-type: text/html";
  13. $sendmail = '/usr/sbin/sendmail';
  14. $sender = $ARGV[1];
  15. $subject = $ARGV[2];
  16. $efile = $ARGV[0];
  17. $emar = $ARGV[0];
  18. open(FOO, $ARGV[3]);
  19. @foo = <FOO>;
  20. $corpo = join("\n", @foo);
  21. open (BANDFIT, "$emar") || die "Can't Open $emar";
  22. $cont=0;
  23.  
  24. while(<BANDFIT>) {
  25. ($ID,$options) = split(/\|/,$_);
  26. chop($options);
  27. foreach ($ID) {
  28. $recipient = $ID;
  29. open (SENDMAIL, "| $sendmail -t");
  30. print SENDMAIL "$mailtype\n";
  31. print SENDMAIL "Subject: $subject\n";
  32. print SENDMAIL "From: $sender\n";
  33. print SENDMAIL "To: $recipient\n\n";
  34. print SENDMAIL "$corpo\n\n";
  35. close (SENDMAIL);
  36. $cont=$cont+1;
  37. printf "$cont Enviado para $recipient";
  38. }
  39. }
  40. close(BANDFIT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement