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 /* @phpSHIELD 1887172865A 2949628127B PRO evaluation */$OOO000000=urldecode('%66%67%..

Decoded Output download

 include('conexao.php');;echo '';include('funcoes.php');;echo '';include('classes.php');;echo '';
if (!isset($_SESSION)) session_start();
if (!isset($_SESSION['MM_Cliente'])) {
echo "<script type=\"text/JavaScript\">
window.resizeTo(500,200);
</script>
";
systemAviso("acesso negado...");
exit();
}
$consulta_rsCliente = "SELECT *
FROM sis_cliente
WHERE login = '".anti_injection($_SESSION['MM_Cliente'])."'
LIMIT 1";
$rsCliente = mysql_query($consulta_rsCliente,$mkConn);
$row_rsCliente = mysql_fetch_assoc($rsCliente);
if ($row_rsCliente['contrato'] == "nenhum") {
echo "<script type=\"text/JavaScript\">
window.resizeTo(500,200);
</script>
";
systemAviso("nenhum contrato definido para o cliente");
exit();
}
$sha1contrato = sha1($_SESSION['MM_Cliente']);
$pdfcontrato = "/usr/local/mkauth/mkfiles/contrato_$sha1contrato.pdf";
shell_exec("sudo rm -rf $pdfcontrato");
shell_exec("sudo /usr/bin/wkhtmltopdf -T 5 -B 5 --no-outline \"http://127.0.0.1/api/geracont.php?username=".$_SESSION['MM_Cliente']."\" $pdfcontrato > /dev/null 2>&1");
if (strstr($_SERVER["HTTP_USER_AGENT"],"MSIE") == false) header("Content-Type: application/pdf");
header("Content-Length: ".filesize($pdfcontrato));
header("Content-Disposition: attachment; filename=\"contrato_$sha1contrato.pdf\"");
header("Content-Transfer-Encoding: binary");
header("Pragma: no-cache");
readfile($pdfcontrato);
mysql_free_result($rsCliente);
exit();
;

Did this file decode correctly?

Original Code

<?php /* @phpSHIELD 1887172865A 2949628127B PRO evaluation */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x764;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGI1KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCd1RU5lNVZUYktKR0NMaUJxZm5NeFgvUHlySFMxT2x3UjQwdkZqMmNVODZkc2hnbUF6RFo5YStZcFFvN1drSXQzPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>TKNDXhCDxcJ5IqLeEqLeEqLe+9lbJROc/z1TVFHM4Uy+ITMXDVy+kUCNKUKvQjxaIqL5kzx9uzCvKUKvzjxaIqLeuzL5kzGNnqxakzLeuzL5k8J5kzx9uzxakzLN4jx9uzL5kzx9uzCNnqx9uzx9uzLeu6CNl+nXo2i/HXrjgGnaiLSXJDHcoiwV4AXb2ZMVLDxYDpXFfzljHdLci/BeHjOY0U1XV7nV8orMgHOVVAi+lsMyf9qMOhJaVNfanVnjlKMX6Cx5+Bx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O0O fgetc
$O0O00OO00 fread
$OO00O0000 1892
$OO00O00O0 include('conexao.php');;echo '';include('funcoes.php');;ech..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 02d069c65792f83f3194ac19ab00ace7
Eval Count 3
Decode Time 153 ms