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\x4fB\x41L\x53"}["ui\x63\x64\x69\x67\x75\x68n\x6do"]="\x6coc\x61\x6c\x5f\..
Decoded Output download
<?php ${"GLOBALS"}["uicdiguhnmo"]="local_arquivo";${"GLOBALS"}["nxnswcxjtup"]="local";${"GLOBALS"}["tvgfswpqmbv"]="separa";${"GLOBALS"}["ebowlomoltf"]="novoNome";${"GLOBALS"}["crmkcine"]="file";${"GLOBALS"}["pksjstox"]="arquivo";${"GLOBALS"}["rwqfdcyxnewg"]="id";${"GLOBALS"}["otrombgjbex"]="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"])){${"GLOBALS"}["uywomgulu"]="id";${${"GLOBALS"}["uywomgulu"]}=sql_injector($_GET["id"]);${"GLOBALS"}["rsxjjlvyui"]="conta";$lqxwtn="SQLSubSSH";$iikxwdrxw="conta";${${"GLOBALS"}["otrombgjbex"]}="SELECT * FROM arquivo_download where id='".${${"GLOBALS"}["rwqfdcyxnewg"]}."'";${${"GLOBALS"}["otrombgjbex"]}=$conn->prepare(${$lqxwtn});$SQLSubSSH->execute();${$iikxwdrxw}=$SQLSubSSH->rowCount();if(${${"GLOBALS"}["rsxjjlvyui"]}>0){$hujawf="arquivo";$yueeroki="file";${$hujawf}=$SQLSubSSH->fetch();${$yueeroki}=${${"GLOBALS"}["pksjstox"]}["nome_arquivo"];if(file_exists("../../admin/pages/download/".${${"GLOBALS"}["crmkcine"]}."")){$shchfgk="separa";$ytxylgkl="novoNome";$bxwpxtvbfrw="file";${$shchfgk}=explode(".",${$bxwpxtvbfrw});${${"GLOBALS"}["ebowlomoltf"]}=${${"GLOBALS"}["tvgfswpqmbv"]}[0];${${"GLOBALS"}["nxnswcxjtup"]}="../../admin/pages/download/".${${"GLOBALS"}["crmkcine"]};header("Content-Length: ".filesize(${${"GLOBALS"}["uicdiguhnmo"]}));header("Content-Disposition: filename=".${$ytxylgkl}[0]);header("Content-Disposition: attachment; filename=".basename(${${"GLOBALS"}["nxnswcxjtup"]}));readfile(${${"GLOBALS"}["nxnswcxjtup"]});}else{echo"<script type=\"text/javascript\">";echo"alert("Arquivo ".${${"GLOBALS"}["crmkcine"]}." no foi encontrado na pasta do servidor\");";echo"window.location="../../home.php?page=downloads/downloads\";";echo"</script>";exit;}}else{echo"<script type="text/javascript">";echo"alert("Arquivo no foi encontrado no servidor\");";echo"window.location="../../home.php?page=downloads/downloads\";";echo"</script>";exit;}}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4c\x4fB\x41L\x53"}["ui\x63\x64\x69\x67\x75\x68n\x6do"]="\x6coc\x61\x6c\x5f\x61r\x71\x75\x69\x76\x6f";${"\x47\x4c\x4fBA\x4c\x53"}["\x6e\x78n\x73\x77\x63\x78\x6a\x74\x75\x70"]="lo\x63\x61l";${"\x47\x4c\x4f\x42A\x4c\x53"}["t\x76\x67f\x73\x77\x70qm\x62\x76"]="\x73\x65\x70\x61ra";${"\x47\x4c\x4fB\x41L\x53"}["\x65\x62\x6fw\x6c\x6fm\x6flt\x66"]="\x6eo\x76o\x4e\x6fm\x65";${"\x47\x4c\x4fB\x41L\x53"}["\x63\x72\x6dkci\x6e\x65"]="fi\x6ce";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x70\x6b\x73\x6asto\x78"]="\x61\x72\x71\x75\x69\x76\x6f";${"\x47LO\x42\x41\x4c\x53"}["\x72w\x71\x66\x64c\x79xn\x65w\x67"]="\x69d";${"\x47L\x4f\x42\x41L\x53"}["\x6f\x74ro\x6dbg\x6ab\x65x"]="\x53\x51\x4c\x53\x75\x62\x53\x53\x48";require_once("\x2e./\x2e./pa\x67e\x73/sy\x73\x74e\x6d/s\x65gu\x72\x61\x6e\x63\x61\x2e\x70\x68p");require_once("\x2e\x2e/\x2e./\x70\x61\x67\x65s/\x73ys\x74e\x6d/\x63\x6fn\x66i\x67\x2e\x70h\x70");require_once("\x2e./\x2e./\x70age\x73/\x73ys\x74em/fu\x6e\x63\x6f\x65s\x2e\x70hp");require_once("\x2e\x2e/\x2e\x2e/p\x61\x67e\x73/sy\x73t\x65\x6d/\x63\x6c\x61ss\x65\x2e\x73sh\x2e\x70hp");protegePagina("us\x65r");if(isset($_GET["i\x64"])){${"\x47LOBA\x4cS"}["\x75\x79\x77\x6fmgu\x6cu"]="\x69\x64";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x75ywo\x6d\x67\x75l\x75"]}=sql_injector($_GET["\x69\x64"]);${"\x47\x4cOB\x41L\x53"}["\x72s\x78\x6a\x6a\x6cvy\x75i"]="co\x6e\x74a";$lqxwtn="\x53\x51\x4c\x53\x75\x62SS\x48";$iikxwdrxw="\x63\x6f\x6e\x74\x61";${${"\x47\x4cO\x42AL\x53"}["\x6f\x74\x72\x6f\x6db\x67\x6ab\x65x"]}="\x53\x45LE\x43T * \x46R\x4f\x4d \x61\x72qu\x69\x76o_\x64o\x77\x6eload\x20\x77here i\x64='".${${"\x47\x4c\x4fBA\x4cS"}["rwq\x66\x64cyxnew\x67"]}."\x27";${${"GL\x4f\x42\x41\x4cS"}["\x6ft\x72o\x6d\x62\x67\x6a\x62\x65x"]}=$conn->prepare(${$lqxwtn});$SQLSubSSH->execute();${$iikxwdrxw}=$SQLSubSSH->rowCount();if(${${"\x47\x4cO\x42\x41LS"}["\x72sx\x6a\x6al\x76\x79\x75\x69"]}>0){$hujawf="\x61\x72\x71\x75i\x76\x6f";$yueeroki="\x66\x69\x6c\x65";${$hujawf}=$SQLSubSSH->fetch();${$yueeroki}=${${"\x47LO\x42\x41\x4c\x53"}["\x70\x6b\x73js\x74ox"]}["\x6eom\x65_a\x72q\x75\x69\x76o"];if(file_exists("\x2e./\x2e\x2e/\x61d\x6d\x69\x6e/page\x73/d\x6fw\x6elo\x61\x64/".${${"\x47LO\x42\x41L\x53"}["c\x72\x6d\x6b\x63i\x6e\x65"]}."")){$shchfgk="\x73\x65\x70\x61r\x61";$ytxylgkl="n\x6f\x76\x6fNom\x65";$bxwpxtvbfrw="f\x69l\x65";${$shchfgk}=explode(".",${$bxwpxtvbfrw});${${"\x47\x4cO\x42ALS"}["\x65\x62\x6f\x77\x6c\x6fm\x6f\x6c\x74\x66"]}=${${"\x47\x4c\x4fB\x41\x4c\x53"}["t\x76\x67\x66\x73wp\x71mbv"]}[0];${${"\x47L\x4f\x42A\x4c\x53"}["\x6e\x78ns\x77\x63\x78j\x74\x75p"]}=".\x2e/../\x61dm\x69n/pa\x67\x65s/d\x6fwnlo\x61\x64/".${${"\x47\x4cOB\x41\x4c\x53"}["\x63\x72\x6d\x6b\x63\x69\x6ee"]};header("\x43\x6f\x6e\x74ent-Le\x6e\x67\x74\x68: ".filesize(${${"\x47\x4c\x4fB\x41\x4c\x53"}["u\x69c\x64\x69guh\x6e\x6do"]}));header("Con\x74e\x6e\x74-D\x69sp\x6fs\x69\x74ion:\x20\x66\x69lename=".${$ytxylgkl}[0]);header("Co\x6e\x74\x65\x6et-Di\x73\x70o\x73i\x74ion: at\x74\x61\x63\x68me\x6et\x3b\x20\x66\x69l\x65\x6ea\x6de=".basename(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6exns\x77cx\x6a\x74\x75\x70"]}));readfile(${${"G\x4cO\x42\x41L\x53"}["\x6ex\x6es\x77c\x78\x6a\x74\x75\x70"]});}else{echo"<\x73cr\x69pt\x20ty\x70e=\"\x74\x65xt/\x6a\x61v\x61s\x63ri\x70\x74\">";echo"\x61l\x65\x72t(\x22\x41r\x71\x75ivo ".${${"\x47\x4c\x4fB\x41\x4cS"}["\x63rmk\x63\x69ne"]}." \x6e\x6f fo\x69\x20e\x6econ\x74ra\x64\x6f\x20\x6ea p\x61s\x74a\x20\x64o \x73er\x76\x69\x64\x6f\x72\")\x3b";echo"w\x69\x6ed\x6fw\x2el\x6fcat\x69on=\x22.\x2e/../\x68\x6fme\x2e\x70hp?p\x61g\x65=\x64\x6fw\x6elo\x61ds/\x64ow\x6eload\x73\"\x3b";echo"</\x73c\x72i\x70\x74>";exit;}}else{echo"\x3c\x73c\x72\x69\x70t\x20\x74y\x70e=\x22tex\x74/j\x61\x76a\x73\x63\x72\x69\x70\x74\x22\x3e";echo"\x61\x6c\x65r\x74(\x22Arqu\x69v\x6f\x20n\x6f fo\x69\x20e\x6e\x63\x6f\x6etr\x61\x64\x6f\x20\x6eo se\x72v\x69do\x72\");";echo"w\x69nd\x6fw.\x6c\x6fcatio\x6e\x3d\x22\x2e./\x2e./h\x6fm\x65.p\x68p?p\x61ge=\x64\x6fwnl\x6fa\x64\x73/downl\x6f\x61ds\"\x3b";echo"\x3c/\x73\x63\x72\x69p\x74\x3e";exit;}}
?>
Function Calls
None |
Stats
MD5 | 0a60487a27a962f28080b5bd3a18c876 |
Eval Count | 0 |
Decode Time | 51 ms |