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\x4fBAL\x53"}["\x76\x69vgnoo\x66zw"]="\x65\x78\x74e\x6esao";${"\x47L\x4f\..
Decoded Output download
<?php ${"GLOBALS"}["vivgnoofzw"]="extensao";${"GLOBALS"}["rpvrcuwvfds"]="nome_final";${"GLOBALS"}["mvqhxzbbzxar"]="_UP";require_once("../../../pages/system/seguranca.php");require_once("../../../pages/system/config.php");if($_SESSION["IPsession"]!==pega_ip()){expulsaVisitante();exit;}protegePagina("donoadmin");if($_SESSION["tipo"]!=="donoadmin"){expulsaVisitante();exit;}if((isset($_POST["arquivo"]))and(isset($_POST["id_servidor"]))){$esuvgnndzhm="_UP";${"GLOBALS"}["lwwdlgjmw"]="_UP";${$esuvgnndzhm}["pasta"]="upload/";${"GLOBALS"}["cfibqckyha"]="_UP";${${"GLOBALS"}["mvqhxzbbzxar"]}["tamanho"]=1024*1024*256;${${"GLOBALS"}["lwwdlgjmw"]}["extensoes"]=array("apk",".apk");${"GLOBALS"}["comembvpvwx"]="_UP";${${"GLOBALS"}["mvqhxzbbzxar"]}["renomeia"]=true;${${"GLOBALS"}["comembvpvwx"]}["erros"][0]="No houve erro";${${"GLOBALS"}["mvqhxzbbzxar"]}["erros"][1]="O arquivo no upload maior do que o limite do PHP";${${"GLOBALS"}["mvqhxzbbzxar"]}["erros"][2]="O arquivo ultrapassa o limite de tamanho especifiado no HTML";${${"GLOBALS"}["mvqhxzbbzxar"]}["erros"][3]="O upload do arquivo foi feito parcialmente";${${"GLOBALS"}["mvqhxzbbzxar"]}["erros"][4]="No foi feito o upload do arquivo";if($_FILES["arquivo"]["error"]!=0){${"GLOBALS"}["cnrmjbe"]="_UP";die("No foi possvel fazer o upload, erro:<br />".${${"GLOBALS"}["cnrmjbe"]}["erros"][$_FILES["arquivo"]["error"]]);exit;}else if(${${"GLOBALS"}["cfibqckyha"]}["tamanho"]<$_FILES["arquivo"]["size"]){echo"O arquivo enviado muito grande, envie arquivos de at 256Mb.";}else{${"GLOBALS"}["wycqjyjood"]="_UP";if(${${"GLOBALS"}["wycqjyjood"]}["renomeia"]==true){${${"GLOBALS"}["rpvrcuwvfds"]}=time().".".${${"GLOBALS"}["vivgnoofzw"]};}else{${${"GLOBALS"}["rpvrcuwvfds"]}=$_FILES["arquivo"]["name"];}if(move_uploaded_file($_FILES["arquivo"]["tmp_name"],${${"GLOBALS"}["mvqhxzbbzxar"]}["pasta"].${${"GLOBALS"}["rpvrcuwvfds"]})){echo"Upload efetuado com sucesso!";echo"<br /><a href="".${${"GLOBALS"}["mvqhxzbbzxar"]}["pasta"].${${"GLOBALS"}["rpvrcuwvfds"]}."">Clique aqui para acessar o arquivo</a>";}else{echo"No foi possvel enviar o arquivo, tente novamente";}}}else{echo"<script type="text/javascript">";echo"alert("Preencha todos os campos!\");";echo"window.location="../../home.php?page=servidor/servidor&id_servidor=".$_POST["id_servidor"]." ";";echo"</script>";exit;}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4c\x4fBAL\x53"}["\x76\x69vgnoo\x66zw"]="\x65\x78\x74e\x6esao";${"\x47L\x4f\x42\x41\x4cS"}["r\x70\x76\x72\x63\x75\x77\x76\x66\x64\x73"]="nom\x65_f\x69nal";${"G\x4c\x4fB\x41\x4cS"}["m\x76q\x68\x78\x7a\x62\x62\x7ax\x61\x72"]="\x5fUP";require_once("../../\x2e./\x70a\x67\x65s/s\x79st\x65\x6d/\x73\x65gur\x61\x6e\x63a.p\x68p");require_once("\x2e./../\x2e\x2e/p\x61\x67\x65s/\x73\x79s\x74\x65m/con\x66\x69g.php");if($_SESSION["I\x50se\x73si\x6fn"]!==pega_ip()){expulsaVisitante();exit;}protegePagina("\x64o\x6e\x6f\x61d\x6d\x69\x6e");if($_SESSION["t\x69po"]!=="\x64on\x6f\x61dmi\x6e"){expulsaVisitante();exit;}if((isset($_POST["\x61\x72\x71\x75\x69\x76o"]))and(isset($_POST["\x69\x64\x5fserv\x69d\x6f\x72"]))){$esuvgnndzhm="\x5f\x55\x50";${"\x47\x4cOB\x41\x4c\x53"}["\x6c\x77wd\x6c\x67\x6amw"]="_\x55P";${$esuvgnndzhm}["p\x61\x73t\x61"]="\x75\x70\x6coad/";${"\x47\x4c\x4fBA\x4cS"}["cf\x69b\x71\x63\x6byha"]="\x5f\x55P";${${"\x47\x4cOB\x41\x4c\x53"}["\x6dv\x71\x68\x78\x7a\x62b\x7ax\x61\x72"]}["\x74ama\x6e\x68o"]=1024*1024*256;${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6c\x77\x77d\x6c\x67\x6a\x6dw"]}["e\x78t\x65nsoe\x73"]=array("\x61pk","\x2e\x61\x70\x6b");${"G\x4c\x4fB\x41\x4c\x53"}["co\x6d\x65\x6d\x62\x76pv\x77x"]="\x5f\x55\x50";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6dv\x71h\x78\x7a\x62\x62z\x78ar"]}["\x72\x65\x6eome\x69a"]=true;${${"\x47L\x4fB\x41L\x53"}["\x63o\x6d\x65\x6d\x62v\x70vw\x78"]}["erro\x73"][0]="No \x68\x6fu\x76e\x20\x65\x72ro";${${"\x47L\x4f\x42\x41\x4c\x53"}["m\x76q\x68\x78zbbz\x78\x61\x72"]}["er\x72\x6fs"][1]="O arq\x75\x69vo n\x6f u\x70\x6coad m\x61io\x72 \x64o que o limi\x74\x65\x20do\x20\x50HP";${${"\x47LO\x42\x41L\x53"}["mv\x71\x68\x78z\x62\x62\x7ax\x61\x72"]}["\x65\x72ros"][2]="O\x20\x61\x72\x71u\x69v\x6f \x75ltrapa\x73s\x61\x20\x6f\x20\x6c\x69m\x69\x74\x65 \x64e t\x61ma\x6e\x68o \x65\x73pe\x63i\x66\x69ad\x6f no\x20\x48\x54ML";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6d\x76qh\x78\x7ab\x62\x7a\x78a\x72"]}["erro\x73"][3]="\x4f \x75\x70\x6coa\x64 \x64\x6f\x20\x61\x72qu\x69vo\x20f\x6f\x69\x20fe\x69t\x6f\x20parc\x69\x61\x6c\x6d\x65nte";${${"\x47L\x4fB\x41\x4c\x53"}["mv\x71\x68x\x7a\x62\x62\x7a\x78ar"]}["\x65r\x72o\x73"][4]="\x4e\x6f \x66\x6f\x69\x20f\x65i\x74\x6f o\x20u\x70l\x6f\x61\x64\x20d\x6f\x20a\x72q\x75ivo";if($_FILES["\x61\x72\x71u\x69vo"]["error"]!=0){${"G\x4c\x4fB\x41\x4cS"}["\x63nrm\x6a\x62\x65"]="\x5fU\x50";die("\x4eo\x20\x66oi \x70o\x73\x73\x76el f\x61\x7aer\x20o upload, erro:\x3cb\x72\x20/\x3e".${${"\x47\x4c\x4f\x42\x41LS"}["\x63\x6erm\x6a\x62e"]}["e\x72ro\x73"][$_FILES["ar\x71\x75\x69vo"]["error"]]);exit;}else if(${${"\x47\x4c\x4fBA\x4c\x53"}["cf\x69\x62\x71\x63k\x79\x68\x61"]}["ta\x6d\x61\x6e\x68\x6f"]<$_FILES["\x61rq\x75\x69vo"]["si\x7ae"]){echo"O\x20\x61r\x71\x75iv\x6f \x65\x6ev\x69ado \x20mu\x69\x74\x6f\x20gran\x64\x65,\x20\x65nv\x69\x65\x20\x61rq\x75i\x76\x6fs \x64\x65 a\x74 25\x36M\x62.";}else{${"G\x4c\x4f\x42\x41\x4c\x53"}["\x77\x79\x63q\x6ay\x6a\x6f\x6fd"]="\x5f\x55\x50";if(${${"GLO\x42\x41\x4c\x53"}["\x77\x79c\x71j\x79\x6a\x6f\x6fd"]}["renom\x65ia"]==true){${${"\x47\x4cO\x42\x41\x4c\x53"}["r\x70\x76rcu\x77v\x66\x64\x73"]}=time().".".${${"\x47\x4c\x4fB\x41\x4c\x53"}["v\x69\x76\x67\x6eo\x6f\x66z\x77"]};}else{${${"\x47L\x4f\x42AL\x53"}["\x72\x70\x76\x72\x63u\x77\x76f\x64\x73"]}=$_FILES["\x61r\x71uivo"]["\x6e\x61\x6d\x65"];}if(move_uploaded_file($_FILES["\x61r\x71\x75\x69v\x6f"]["tmp\x5f\x6eam\x65"],${${"\x47\x4cOB\x41\x4c\x53"}["\x6dvq\x68\x78\x7abb\x7a\x78\x61\x72"]}["\x70\x61st\x61"].${${"\x47\x4c\x4f\x42\x41LS"}["\x72\x70\x76\x72\x63\x75\x77\x76fd\x73"]})){echo"Upl\x6fad ef\x65\x74u\x61do \x63\x6f\x6d\x20su\x63\x65sso\x21";echo"<\x62r\x20/\x3e\x3c\x61\x20hre\x66\x3d\x22".${${"\x47\x4c\x4f\x42\x41\x4cS"}["m\x76\x71h\x78z\x62\x62\x7ax\x61r"]}["p\x61\x73t\x61"].${${"\x47L\x4fB\x41\x4cS"}["\x72\x70v\x72\x63\x75\x77\x76fd\x73"]}."\x22>\x43\x6ci\x71\x75\x65 a\x71\x75i par\x61\x20a\x63e\x73\x73a\x72 o a\x72q\x75iv\x6f\x3c/\x61>";}else{echo"\x4e\x6f\x20f\x6f\x69\x20p\x6f\x73sv\x65l\x20\x65\x6ev\x69a\x72\x20o\x20arqu\x69\x76\x6f, t\x65\x6e\x74\x65\x20n\x6f\x76a\x6de\x6et\x65";}}}else{echo"\x3c\x73cri\x70\x74 ty\x70e=\x22t\x65\x78t/ja\x76as\x63\x72i\x70t\x22>";echo"\x61lert(\x22Pr\x65\x65nc\x68a t\x6fd\x6f\x73\x20\x6f\x73\x20\x63\x61mpo\x73!\")\x3b";echo"\x77in\x64\x6fw\x2e\x6c\x6fca\x74\x69o\x6e=\x22.\x2e/\x2e\x2e/h\x6fm\x65\x2e\x70hp?pag\x65=\x73\x65r\x76i\x64\x6fr/\x73e\x72v\x69\x64\x6f\x72\x26id\x5f\x73\x65\x72vidor\x3d".$_POST["\x69\x64_se\x72v\x69\x64or"]." \x22;";echo"</\x73\x63\x72\x69p\x74\x3e";exit;}
?>
Function Calls
None |
Stats
MD5 | 05f4eeeb52ab3d6e367ab33acbccb12c |
Eval Count | 0 |
Decode Time | 64 ms |