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 ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x6c\x6a\x6f\x69\x66\x6e"]="\x6c\x6f\x63\x61l..

Decoded Output download

<?php ${"GLOBALS"}["rljoifn"]="local";${"GLOBALS"}["qlnwfpynub"]="file";${"GLOBALS"}["fxhcwsucvgp"]="separa";${"GLOBALS"}["ynhzccqxd"]="arquivo";${"GLOBALS"}["qelpvvtosdi"]="conta";${"GLOBALS"}["yqslbobimal"]="id";${"GLOBALS"}["gimetmgre"]="SQLSubSSH";require_once("../../pages/system/seguranca.php");require_once("../../pages/system/config.php");require_once("../../pages/system/funcoes.php");require_once("../../pages/system/classe.ssh.php");protegePagina("user");if(isset($_GET["id"])){$tpxhxyuie="conta";${"GLOBALS"}["zsrpxrbpz"]="id";${${"GLOBALS"}["zsrpxrbpz"]}=sql_injector($_GET["id"]);${${"GLOBALS"}["gimetmgre"]}="SELECT * FROM ovpn where id='".${${"GLOBALS"}["yqslbobimal"]}."'";${${"GLOBALS"}["gimetmgre"]}=$conn->prepare(${${"GLOBALS"}["gimetmgre"]});$SQLSubSSH->execute();${${"GLOBALS"}["qelpvvtosdi"]}=$SQLSubSSH->rowCount();if(${$tpxhxyuie}>0){$qsrmnz="file";$uxxybqvjlqs="file";${${"GLOBALS"}["ynhzccqxd"]}=$SQLSubSSH->fetch();${$qsrmnz}=${${"GLOBALS"}["ynhzccqxd"]}["arquivo"];if(file_exists("../../admin/pages/servidor/ovpn/".${$uxxybqvjlqs}."")){${"GLOBALS"}["eiljwosy"]="local_arquivo";${${"GLOBALS"}["fxhcwsucvgp"]}=explode(".",${${"GLOBALS"}["qlnwfpynub"]});$dshpospqwc="novoNome";$npikkhq="separa";${$dshpospqwc}=${$npikkhq}[0];${${"GLOBALS"}["rljoifn"]}="../../admin/pages/servidor/ovpn/".${${"GLOBALS"}["qlnwfpynub"]};header("Cache-control: private");${"GLOBALS"}["buremcxmgkzz"]="novoNome";header("Content-Type: application/octet-stream");header("Content-Length: ".filesize(${${"GLOBALS"}["eiljwosy"]}));header("Content-Disposition: filename=".${${"GLOBALS"}["buremcxmgkzz"]}[0]);header("Content-Disposition: attachment; filename=".basename(${${"GLOBALS"}["rljoifn"]}));readfile(${${"GLOBALS"}["rljoifn"]});}else{echo"<script type="text/javascript">";echo"alert("Arquivo no foi encontrado na pasta do servidor");";echo"window.location="../../home.php?page=servidor/listar";";echo"</script>";exit;}}else{echo"<script type="text/javascript\">";echo"alert("Arquivo no foi encontrado no servidor\");";echo"window.location="../../home.php?page=servidor/listar\";";echo"</script>";exit;}} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x6c\x6a\x6f\x69\x66\x6e"]="\x6c\x6f\x63\x61l";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x6cn\x77f\x70\x79\x6e\x75b"]="f\x69\x6c\x65";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66\x78\x68\x63w\x73\x75c\x76\x67\x70"]="\x73e\x70\x61\x72\x61";${"\x47\x4cOB\x41\x4c\x53"}["yn\x68\x7a\x63\x63\x71\x78\x64"]="\x61r\x71\x75i\x76\x6f";${"\x47L\x4f\x42ALS"}["q\x65l\x70\x76v\x74o\x73di"]="\x63\x6fn\x74a";${"\x47LO\x42\x41\x4cS"}["\x79\x71\x73l\x62o\x62\x69m\x61\x6c"]="\x69\x64";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["g\x69m\x65\x74\x6d\x67r\x65"]="S\x51L\x53u\x62SS\x48";require_once("../.\x2e/\x70\x61\x67es/\x73\x79\x73t\x65m/s\x65gur\x61\x6ec\x61.\x70\x68p");require_once(".\x2e/\x2e./\x70\x61\x67\x65\x73/s\x79\x73\x74\x65\x6d/\x63o\x6efig.ph\x70");require_once("\x2e./../\x70a\x67\x65\x73/sy\x73t\x65m/f\x75\x6e\x63o\x65\x73\x2e\x70\x68p");require_once(".\x2e/\x2e\x2e/p\x61ges/\x73yst\x65\x6d/\x63las\x73e\x2e\x73sh\x2eph\x70");protegePagina("\x75\x73e\x72");if(isset($_GET["i\x64"])){$tpxhxyuie="c\x6f\x6e\x74a";${"\x47\x4cOB\x41L\x53"}["z\x73\x72\x70\x78rb\x70\x7a"]="\x69\x64";${${"\x47\x4c\x4f\x42\x41L\x53"}["z\x73\x72p\x78\x72\x62\x70\x7a"]}=sql_injector($_GET["id"]);${${"G\x4c\x4fB\x41\x4c\x53"}["\x67\x69\x6d\x65tmgre"]}="\x53\x45L\x45\x43T * F\x52\x4f\x4d o\x76\x70n\x20w\x68\x65\x72\x65 id='".${${"\x47\x4c\x4fB\x41L\x53"}["y\x71s\x6c\x62\x6f\x62\x69\x6da\x6c"]}."'";${${"G\x4c\x4fBAL\x53"}["\x67im\x65tmg\x72e"]}=$conn->prepare(${${"\x47L\x4f\x42A\x4cS"}["g\x69m\x65\x74\x6d\x67\x72e"]});$SQLSubSSH->execute();${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x65\x6c\x70\x76\x76\x74\x6fs\x64\x69"]}=$SQLSubSSH->rowCount();if(${$tpxhxyuie}>0){$qsrmnz="fi\x6c\x65";$uxxybqvjlqs="\x66i\x6ce";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6e\x68\x7a\x63\x63\x71\x78d"]}=$SQLSubSSH->fetch();${$qsrmnz}=${${"\x47\x4cO\x42\x41\x4c\x53"}["\x79\x6e\x68\x7a\x63\x63\x71\x78\x64"]}["\x61rqu\x69vo"];if(file_exists("\x2e\x2e/\x2e./a\x64\x6di\x6e/p\x61g\x65s/servi\x64\x6f\x72/o\x76\x70n/".${$uxxybqvjlqs}."")){${"GL\x4f\x42\x41L\x53"}["eilj\x77\x6f\x73\x79"]="\x6co\x63\x61\x6c_\x61\x72\x71u\x69\x76o";${${"\x47\x4c\x4f\x42AL\x53"}["\x66xhc\x77\x73u\x63\x76g\x70"]}=explode("\x2e",${${"\x47L\x4f\x42A\x4c\x53"}["q\x6cn\x77\x66\x70\x79nu\x62"]});$dshpospqwc="\x6e\x6f\x76o\x4e\x6fm\x65";$npikkhq="\x73\x65\x70\x61\x72\x61";${$dshpospqwc}=${$npikkhq}[0];${${"\x47\x4cO\x42\x41\x4cS"}["\x72l\x6aoi\x66n"]}="\x2e\x2e/.\x2e/\x61\x64\x6d\x69n/p\x61g\x65\x73/servi\x64\x6fr/ovpn/".${${"\x47\x4c\x4f\x42\x41LS"}["q\x6cn\x77\x66py\x6eub"]};header("Ca\x63he-\x63\x6fntr\x6f\x6c: pr\x69\x76\x61t\x65");${"\x47\x4c\x4f\x42\x41\x4cS"}["b\x75r\x65\x6dc\x78\x6d\x67kzz"]="\x6e\x6f\x76o\x4eom\x65";header("C\x6f\x6e\x74e\x6e\x74-\x54\x79\x70e: ap\x70\x6c\x69ca\x74i\x6f\x6e/\x6fc\x74et-s\x74\x72\x65a\x6d");header("\x43\x6f\x6e\x74\x65\x6et-\x4c\x65ng\x74h:\x20".filesize(${${"G\x4c\x4fBA\x4c\x53"}["\x65i\x6cjw\x6f\x73\x79"]}));header("\x43\x6fn\x74\x65\x6e\x74-\x44isposi\x74\x69\x6fn: \x66i\x6c\x65name\x3d".${${"\x47\x4c\x4fB\x41L\x53"}["\x62ur\x65\x6d\x63\x78\x6d\x67\x6b\x7a\x7a"]}[0]);header("\x43\x6f\x6e\x74ent-Di\x73\x70o\x73i\x74\x69o\x6e:\x20\x61t\x74a\x63\x68\x6d\x65\x6e\x74\x3b fil\x65n\x61\x6d\x65\x3d".basename(${${"\x47L\x4f\x42\x41L\x53"}["\x72\x6c\x6a\x6f\x69f\x6e"]}));readfile(${${"\x47LO\x42\x41\x4c\x53"}["rlj\x6f\x69f\x6e"]});}else{echo"<\x73\x63\x72\x69\x70\x74\x20typ\x65\x3d\x22t\x65x\x74/ja\x76a\x73\x63\x72\x69\x70t\x22\x3e";echo"alert(\x22\x41\x72qui\x76\x6f\x20no \x66o\x69\x20en\x63on\x74r\x61do \x6ea p\x61\x73\x74\x61 \x64\x6f\x20\x73ervid\x6f\x72\x22);";echo"w\x69\x6ed\x6f\x77.lo\x63\x61\x74i\x6fn=\x22../\x2e./\x68\x6fm\x65.\x70\x68p?pag\x65=s\x65\x72v\x69dor/lista\x72\x22\x3b";echo"\x3c/\x73cr\x69\x70\x74\x3e";exit;}}else{echo"<s\x63r\x69pt \x74yp\x65=\x22t\x65\x78t/\x6a\x61vascri\x70\x74\">";echo"\x61lert(\x22A\x72qui\x76o no fo\x69 \x65\x6e\x63o\x6etra\x64o no se\x72v\x69dor\");";echo"win\x64\x6f\x77\x2e\x6c\x6f\x63\x61\x74i\x6f\x6e\x3d\x22.\x2e/\x2e./ho\x6d\x65.p\x68p?\x70ag\x65\x3ds\x65r\x76idor/\x6c\x69sta\x72\";";echo"\x3c/\x73cr\x69\x70\x74>";exit;}}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'rljoifn', 'value': 'local'}, {'key': 'qlnwfpynub', 'value': 'file'}, {'key': 'fxhcwsucvgp', 'value': 'separa'}, {'key': 'ynhzccqxd', 'value': 'arquivo'}, {'key': 'qelpvvtosdi', 'value': 'conta'}, {'key': 'yqslbobimal', 'value': 'id'}, {'key': 'gimetmgre', 'value': 'SQLSubSSH'}]

Stats

MD5 9664df9f90fb2b7eacd07d1d34b7d6de
Eval Count 0
Decode Time 48 ms