Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<html> <title>| Private Mailer BY TPSG and LALEENDZ |</title> <center><p style="font-siz..
Decoded Output download
NoneNoneNone
Did this file decode correctly?
Original Code
<html>
<title>| Private Mailer BY TPSG and LALEENDZ |</title>
<center><p style="font-size:30px;">Priv8 Mailer By TPSG And LALEENDZ</p></center>
<form action="" method="post" enctype="multipart/form-data" name="send">
<td align="right" height="17"><span class="texto">Email:</span></td><br>
<td height="17"><input name="from1" value="<?php echo $_POST['from1'] ;?>" type="text" style="width:18%" ></td>
</tr><br>
<td align="right" height="17"><span class="texto">Name:</span></td><br>
<td height="17"><input name="name" value="<?php echo $_POST['name'] ;?>" type="text" style="width:18%" ></td>
</tr><br>
<td align="right" height="17"><span class="texto">Subject:</span></td><br>
<td height="17"><input name="subject" value="<?php echo $_POST['subject'] ;?>" type="text" style="width:18%" ></td>
</tr><br>
<span>Letter:</span></td><br>
<td><span>
<textarea style="border-radius: 5px;" name="html" cols="50" rows="4"><?php echo stripslashes($_POST['html']);?></textarea>
</span></td>
</tr>
<br /><br /><br />
<span>Mailist:</span></td><br>
<td><span class="style9">
<textarea style="border-radius: 5px;" name="emails" cols="50" rows="4"><?php echo stripslashes($_POST['emails']);?></textarea>
</span></td>
</tr><br>
<input type="submit" name="Submit" value="Envoi">
</form>
</html>
<?php
function generateRandomString($length = 10) {
$characters = '0123456789';
$randomString = '';
for ($i = 0; $i < $length; $i++) {$randomString .= $characters[rand(0, strlen($characters) - 1)];}
return $randomString;
}
$rand = generateRandomString('7');
$testa = $_POST['Submit'];
if($testa != "") {
$to = $_POST['emails'];
$email = explode("\n", $to);
$from1= $_POST['from1'];
//$from2= $from1.$rand;
$from2= $from1;
$name= $_POST['name'];
$dataHora = date("d/m/Y h:i:s");
$message =$_POST['html'];
$message = urlencode($message);
$message = ereg_replace("%5C%22", "%22", $message);
$message = urldecode($message);
$message = stripslashes($message);
$subject = $_POST['subject'];
$headers = "From: $name <$from2>" . "\r\n";
$headers .= "Cc: " .$email. "\r\n";
//$headers .= "Bcc: $from2@$name.com" . "\r\n";
$headers .= "Content-Type: text/html" . "\r\n";
$headers .= "Content-Transfer-Encoding: base64" . "\r\n";
$i = 0;
$count = 1;
while($email[$i]) {
$EmailTemporario = $email[$i];
$img="
";
$href="
";
$base64contents = rtrim(chunk_split(base64_encode($dataHora." to ".$EmailTemporario."<br><br>"./*$img2.*/$message./*$href.*/"<br><br>".$dataHora." to ".$EmailTemporario)));
if(mail($EmailTemporario,'=?utf-8?B?'.base64_encode($subject).'?='." ".$dataHora,$base64contents,$headers))
echo "<div style='color: blue;'>* Numero: $count <b>".$email[$i]."</div></b> <div style='color: blue;'>Success :)....!</div><br><hr>";
else
echo "<div style='color: red;'>* Numero: $count <b>".$email[$i]."</div></b> <div style='color: red;'>Failed :(...</div><br><hr>";
$i++;
$count++;
}
$count--;
if($ok == "ok")
echo "[End....]";
}
?>
Function Calls
| stripslashes | 2 |
| generateRandomString | 1 |
Stats
| MD5 | 82cedd04be00d946462182e6a890f941 |
| Eval Count | 0 |
| Decode Time | 115 ms |