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 ${"G\x4cO\x42AL\x53"}["o\x71rjy\x68"]="\x75\x70\x64\x61t\x65\x63\x68\x61ma\x64o";${"..

Decoded Output download

<?php ${"GLOBALS"}["oqrjyh"]="updatechamado";${"GLOBALS"}["mcqzbkiwnxov"]="chama";${"GLOBALS"}["rbbyjijyfoix"]="diretorio";${"GLOBALS"}["uneahm"]="buscachamado";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($_POST["chamado"])){${"GLOBALS"}["geiieqhqfdbh"]="updatechamado";$luwpjzjew="buscachamado";${"GLOBALS"}["ivedrjgnvq"]="diretorio";$ynbxtdxyos="chamado";$cunmeyfna="buscachamado";${"GLOBALS"}["gjcfpjnwhjjf"]="chamado";${$ynbxtdxyos}=$_POST["chamado"];$bppwwrmlxqzg="chama";${"GLOBALS"}["mnxginilvztr"]="updatechamado";${"GLOBALS"}["cfbhtwrag"]="diretorio";$vgvkcocfb="chama";${${"GLOBALS"}["cfbhtwrag"]}=$_POST["diretorio"];${$luwpjzjew}="SELECT * FROM chamados where id='".${${"GLOBALS"}["gjcfpjnwhjjf"]}."' and id_mestre='".$_SESSION["usuarioID"]."'";${${"GLOBALS"}["uneahm"]}=$conn->prepare(${$cunmeyfna});$buscachamado->execute();if($buscachamado->rowCount()==0){echo"<script type=\"text/javascript">";echo"alert(\"Chamado no encontrado!\");";echo"window.location=\"".${${"GLOBALS"}["rbbyjijyfoix"]}."";";echo"</script>";exit;}${$bppwwrmlxqzg}=$buscachamado->fetch();if(${${"GLOBALS"}["mcqzbkiwnxov"]}["status"]<>"encerrado"){echo"<script type="text/javascript">";echo"alert(\"Chamado precisa ser encerrado primeiro!\");";echo"window.location="".${${"GLOBALS"}["rbbyjijyfoix"]}."";";echo"</script>";exit;}${${"GLOBALS"}["oqrjyh"]}="DELETE FROM chamados where id='".${$vgvkcocfb}["id"]."'";${${"GLOBALS"}["geiieqhqfdbh"]}=$conn->prepare(${${"GLOBALS"}["mnxginilvztr"]});$updatechamado->execute();echo"<script type="text/javascript">";echo"alert("Chamado deletado com sucesso!\");";echo"window.location=\"".${${"GLOBALS"}["ivedrjgnvq"]}."";";echo"</script>";} 
?>

Did this file decode correctly?

Original Code

<?php ${"G\x4cO\x42AL\x53"}["o\x71rjy\x68"]="\x75\x70\x64\x61t\x65\x63\x68\x61ma\x64o";${"\x47L\x4f\x42\x41\x4cS"}["\x6dcqz\x62k\x69\x77\x6e\x78\x6f\x76"]="c\x68ama";${"\x47\x4cOB\x41L\x53"}["rb\x62\x79j\x69\x6a\x79\x66\x6fi\x78"]="\x64\x69\x72et\x6f\x72i\x6f";${"GLOBA\x4c\x53"}["\x75nea\x68\x6d"]="\x62\x75\x73\x63\x61\x63\x68\x61mado";require_once("\x2e\x2e/.\x2e/\x70\x61ge\x73/\x73yst\x65\x6d/\x73e\x67ura\x6eca\x2ep\x68\x70");require_once(".\x2e/\x2e\x2e/\x70a\x67e\x73/s\x79\x73te\x6d/c\x6f\x6ef\x69\x67.\x70hp");require_once("../\x2e./\x70a\x67e\x73/s\x79st\x65m/f\x75n\x63oes\x2eph\x70");require_once(".\x2e/.\x2e/pa\x67\x65\x73/sys\x74\x65m/\x63\x6c\x61s\x73\x65\x2e\x73\x73\x68.\x70h\x70");protegePagina("user");if(isset($_POST["\x63\x68\x61ma\x64o"])){${"\x47\x4c\x4f\x42\x41L\x53"}["g\x65\x69\x69\x65\x71\x68qf\x64\x62h"]="upd\x61te\x63h\x61m\x61\x64\x6f";$luwpjzjew="\x62\x75\x73\x63\x61ch\x61\x6d\x61\x64o";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x69\x76\x65dr\x6a\x67\x6e\x76\x71"]="di\x72e\x74\x6f\x72\x69\x6f";$ynbxtdxyos="c\x68\x61\x6da\x64o";$cunmeyfna="b\x75\x73c\x61\x63\x68ama\x64\x6f";${"G\x4cO\x42\x41LS"}["\x67\x6a\x63f\x70j\x6ew\x68\x6a\x6a\x66"]="\x63\x68a\x6da\x64\x6f";${$ynbxtdxyos}=$_POST["cha\x6d\x61do"];$bppwwrmlxqzg="\x63\x68am\x61";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6d\x6e\x78\x67\x69\x6e\x69l\x76\x7a\x74\x72"]="\x75\x70d\x61t\x65\x63\x68\x61\x6da\x64\x6f";${"\x47\x4cO\x42\x41\x4c\x53"}["\x63\x66\x62\x68\x74\x77r\x61\x67"]="\x64i\x72\x65\x74\x6f\x72i\x6f";$vgvkcocfb="\x63\x68am\x61";${${"\x47L\x4f\x42\x41LS"}["\x63\x66\x62htw\x72a\x67"]}=$_POST["\x64\x69re\x74\x6f\x72\x69o"];${$luwpjzjew}="\x53\x45LE\x43T *\x20\x46RO\x4d\x20c\x68\x61ma\x64os\x20\x77h\x65\x72e\x20i\x64='".${${"\x47\x4cOBA\x4c\x53"}["\x67\x6a\x63\x66p\x6a\x6e\x77hj\x6af"]}."' and\x20\x69\x64_\x6dest\x72\x65\x3d\x27".$_SESSION["\x75s\x75a\x72ioID"]."'";${${"GLO\x42\x41\x4c\x53"}["\x75\x6e\x65\x61\x68\x6d"]}=$conn->prepare(${$cunmeyfna});$buscachamado->execute();if($buscachamado->rowCount()==0){echo"<\x73\x63\x72\x69pt \x74y\x70\x65\x3d\"\x74\x65x\x74/\x6a\x61v\x61\x73\x63ript\x22>";echo"ale\x72\x74(\"\x43h\x61\x6dado\x20no\x20en\x63ontr\x61\x64o!\");";echo"wi\x6e\x64ow\x2e\x6co\x63ati\x6fn=\"".${${"G\x4cO\x42\x41\x4c\x53"}["\x72\x62\x62\x79\x6aij\x79\x66\x6fix"]}."\x22\x3b";echo"\x3c/\x73cri\x70\x74\x3e";exit;}${$bppwwrmlxqzg}=$buscachamado->fetch();if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6d\x63qz\x62\x6b\x69w\x6e\x78\x6f\x76"]}["st\x61\x74\x75s"]<>"ence\x72r\x61d\x6f"){echo"<\x73cr\x69\x70\x74\x20\x74y\x70e\x3d\x22t\x65\x78\x74/\x6aa\x76asc\x72\x69\x70t\x22\x3e";echo"al\x65\x72\x74(\"\x43\x68\x61\x6dado\x20pr\x65\x63i\x73\x61\x20\x73e\x72\x20\x65\x6ecer\x72ad\x6f p\x72\x69me\x69\x72o\x21\")\x3b";echo"w\x69ndow\x2e\x6co\x63\x61t\x69\x6fn=\x22".${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72\x62\x62yji\x6a\x79f\x6fi\x78"]}."\x22;";echo"\x3c/sc\x72\x69\x70t>";exit;}${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6f\x71r\x6ayh"]}="\x44E\x4cE\x54\x45\x20\x46\x52\x4f\x4d\x20cha\x6dado\x73\x20\x77he\x72\x65 id='".${$vgvkcocfb}["i\x64"]."\x27";${${"\x47\x4cOBAL\x53"}["g\x65\x69ieq\x68q\x66\x64\x62h"]}=$conn->prepare(${${"\x47\x4c\x4fB\x41L\x53"}["m\x6e\x78\x67i\x6e\x69\x6c\x76\x7atr"]});$updatechamado->execute();echo"\x3c\x73c\x72ipt \x74\x79\x70\x65=\x22\x74\x65\x78\x74/\x6a\x61\x76a\x73cript\x22\x3e";echo"al\x65\x72t(\x22\x43\x68\x61mado \x64\x65\x6ce\x74a\x64o\x20\x63\x6fm\x20\x73\x75ce\x73\x73o\x21\")\x3b";echo"\x77\x69n\x64o\x77.\x6c\x6f\x63\x61t\x69on\x3d\"".${${"\x47L\x4fB\x41L\x53"}["\x69\x76e\x64\x72j\x67n\x76\x71"]}."\x22;";echo"\x3c/\x73\x63\x72ipt>";}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'oqrjyh', 'value': 'updatechamado'}, {'key': 'mcqzbkiwnxov', 'value': 'chama'}, {'key': 'rbbyjijyfoix', 'value': 'diretorio'}, {'key': 'uneahm', 'value': 'buscachamado'}]

Stats

MD5 20735ec25053987b97215c73f8c0931d
Eval Count 0
Decode Time 58 ms