Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
eval(base64_decode("DQpvYl9zdGFydCgpOw0KZXJyb3JfcmVwb3J0aW5nKGZhbHNlKTsNCmhlYWRlcigiRXhwaX..
Decoded Output download
ob_start();
error_reporting(false);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
session_start();
include("../plugins/conexaodb.php");
echo "<html>
";
echo "<head>
";
echo "<title>CADASTRAR SOLUES</title>
";
echo "<link rel=\"stylesheet\" href=\"../plugins/estilo.css\" type=\"text/css\">
";
echo "<script language=\"javascript\" src=\"../plugins/protecao.js\"></script>
";
echo "</head>
";
echo "<body leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">
";
echo "<p class=\"topicos\">
";
echo "CADASTRAR SOLUES:
";
echo "<hr class=\"topicos_linha\">
";
echo "</p>
";
if (!isset($inserir)) {
$sql = "select nome from usuarios where codigo = '$_SESSION[COD]'";
$res = mysql_query($sql, $conexao);
$cmp = mysql_fetch_row($res);
$tec = "$cmp[0]";
echo "<script language=\"javascript\">
";
echo "function validaForm() {
";
echo "if (document.forms[0].titulo.value.length < 1) {
";
echo "alert(\"!!! O campo \"Ttulo:\" no pode ficar em branco. !!!\");
";
echo "document.forms[0].contato.focus();
";
echo "return false;
";
echo "}
";
echo "if (document.forms[0].descricao.value.length < 1) {
";
echo "alert(\"!!! O campo \"Descrio:\" no pode ficar em branco. !!!\");
";
echo "document.forms[0].descricao.focus();
";
echo "return false;
";
echo "}
";
echo "document.forms[0].submit();
";
echo "return true;
";
echo "}
";
echo "</script>
";
echo "<table class=\"formText\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
";
echo "<form name=\"formulario\" action=\"?inserir=1\" method=\"post\" target=\"_self\">
";
echo "<input type=\"hidden\" name=\"escape\" value=\"escape\">
";
echo "<tr>
";
echo "<td width=\"50%\">Data / Hora: </td>
";
echo "<td width=\"50%\">Tcnico:</td>
";
echo "</tr>
";
echo "<tr>
";
echo "<td width=\"50%\"><input class=\"formCampos\" name=\"datahora\" type=\"text\" id=\"datahora\" value=\""; echo "".date("d/m/Y H\hi\ms\s").""; ;
echo "\" readonly /></td>
";
echo "<td width=\"50%\"><input class=\"formCampos\" name=\"tecnico\" type=\"text\" id=\"tecnico\" value=\""; echo "".ucwords("$tec").""; ;
echo "\" readonly /></td>
";
echo "</tr>
";
echo "<tr>
";
echo "<td width=\"50%\">Ttulo:</td>
";
echo "<td width=\"50%\"> </td>
";
echo "</tr>
";
echo "<tr>
";
echo "<td colspan=\"2\"><input class=\"formCampos\" name=\"titulo\" type=\"text\" id=\"titulo\" /></td>
";
echo "</tr>
";
echo "<tr>
";
echo "<td width=\"50%\">Descrição do problema:</td>
";
echo "<td width=\"50%\"> </td>
";
echo "</tr>
";
echo "<tr>
";
echo "<td colspan=\"2\"><textarea class=\"formCampos\" name=\"descricao\" id=\"descricao\" rows=\"10\"></textarea></td>
";
echo "</tr>
";
echo "<tr>
";
echo "<td width=\"50%\"> </td>
";
echo "<td width=\"50%\"> </td>
";
echo "</tr>
";
echo "<tr>
";
echo "<td width=\"50%\"> </td>
";
echo "<td width=\"50%\" align=\"right\"><input id=\"enviar\" class=\"botao1\" type=\"button\" value=\"CADASTRAR\" onclick=\"javascript:validaForm()\" /></td>
";
echo "</tr>
";
echo "</form>
";
echo "</table>
";
} else {
$tecnico = htmlspecialchars("$tecnico");
$data = htmlspecialchars(date("Y-m-d H:i:s"));
$titulo = htmlspecialchars("$titulo");
$descricao = htmlspecialchars("$descricao");
$sql = "insert into solucoes (tecnico,data,titulo,descricao) values ('$_SESSION[COD]','$data','$titulo','$descricao')";
if (mysql_query($sql, $conexao)) {
$cod = mysql_insert_id($conexao);
$dat = "".substr($data,0,10)."";
$hor = "".substr($data,11,8)."";
echo "<div class=\"style09\">
";
echo "<p align=\"center\">SOLUO REGISTRADA COM SUCESSO</p>
";
echo "<p align=\"center\">DATA: "; echo "".substr($dat,8,2).""; ;
echo "/"; echo "".substr($dat,5,2).""; ;
echo "/"; echo "".substr($dat,0,4).""; ;
echo " s "; echo "".substr($hor,0,2).""; ;
echo "h"; echo "".substr($hor,3,2).""; ;
echo "m"; echo "".substr($hor,6,2).""; ;
echo "s</p>
";
echo "<p align=\"center\">TCNICO: <font color=\"#ff0000\">"; echo "".ucwords($tecnico).""; ;
echo "</font></p>
";
echo "</div>
";
echo "<p align=\"center\">
";
echo "<input id=\"enviar\" class=\"botao1\" type=\"button\" value=\"CADASTRAR NOVA SOLUO\" onclick=\"javascript:window.open('?','_self');\" style=\"width: 250px\" />
";
echo "</p>
";
}} ;
echo "<script type=\"text/javascript\">
";
echo "function botoes() {
";
echo "document.getElementById(\"enviar\").onmouseover=function() { this.style.color=\"#ffff00\"; }
";
echo "document.getElementById(\"enviar\").onmouseout=function() { this.style.color=\"#ffffff\"; }
";
echo "}
";
echo "botoes();
";
echo "</script>
";
echo "</body>
";
echo "</html>
";
if (isset($res)) { mysql_free_result($res); }
mysql_close($conexao);
$cntACmp = ob_get_contents();
ob_end_clean();
$cntACmp="".rawurlencode("$cntACmp")."";
echo "<script language=\"javascript\">
";
echo "document.write(\"\"+unescape(\"".$cntACmp."\")+\"\");
";
echo "</script>
";
ob_start("ob_gzhandler");
ob_end_flush();
echo "";
Did this file decode correctly?
Original Code
eval(base64_decode("DQpvYl9zdGFydCgpOw0KZXJyb3JfcmVwb3J0aW5nKGZhbHNlKTsNCmhlYWRlcigiRXhwaXJlczogTW9uLCAyNiBKdWwgMTk5NyAwNTowMDowMCBHTVQiKTsNCnNlc3Npb25fc3RhcnQoKTsNCmluY2x1ZGUoIi4uL3BsdWdpbnMvY29uZXhhb2RiLnBocCIpOw0KZWNobyAiPGh0bWw+XG4iOwplY2hvICI8aGVhZD5cbiI7CmVjaG8gIjx0aXRsZT5DQURBU1RSQVIgU09MVcfVRVM8L3RpdGxlPlxuIjsKZWNobyAiPGxpbmsgcmVsPVwic3R5bGVzaGVldFwiIGhyZWY9XCIuL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