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 ${"\x47L\x4fBAL\x53"}["\x77\x71l\x79\x6a\x66x\x6f\x67k"]="n\x6f\x74\x69n\x73";${"\x4..
Decoded Output download
<?php ${"GLOBALS"}["wqlyjfxogk"]="notins";${"GLOBALS"}["tozxnnl"]="eu";${"GLOBALS"}["jraqxcbd"]="eumesmp";${"GLOBALS"}["ekultgnzjl"]="msg";${"GLOBALS"}["bjmnkvid"]="updatechamado";${"GLOBALS"}["ipnkxkshuzjm"]="verificausuario";${"GLOBALS"}["icsopeeiwl"]="chama";${"GLOBALS"}["pzdntwncwscc"]="buscachamado";${"GLOBALS"}["crfhwlhet"]="diretorio";${"GLOBALS"}["ieykrkg"]="chamado";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"}["ieykrkg"]}=$_POST["chamado"];$opaxkcjo="msg";${$opaxkcjo}=$_POST["msg"];$jugorgqth="buscachamado";$ttmoyedbv="updatechamado";$osgequbypf="chamado";${"GLOBALS"}["fyotlng"]="msg";${${"GLOBALS"}["crfhwlhet"]}=$_POST["diretorio"];${"GLOBALS"}["wlwvvascs"]="eu";${${"GLOBALS"}["pzdntwncwscc"]}="SELECT * FROM chamados where id='".${$osgequbypf}."' and id_mestre='".$_SESSION["usuarioID"]."'";$dhwwxfkbwbir="verificausuario";${${"GLOBALS"}["pzdntwncwscc"]}=$conn->prepare(${$jugorgqth});$buscachamado->execute();if($buscachamado->rowCount()==0){echo"<script type="text/javascript">";echo"alert("Chamado no encontrado!\");";echo"window.location="".${${"GLOBALS"}["crfhwlhet"]}."";";echo"</script>";exit;}${${"GLOBALS"}["icsopeeiwl"]}=$buscachamado->fetch();if(${${"GLOBALS"}["icsopeeiwl"]}["status"]=="encerrado"){echo"<script type=\"text/javascript">";echo"alert("Chamado j resolvido!");";${"GLOBALS"}["nyebfsst"]="diretorio";echo"window.location="".${${"GLOBALS"}["nyebfsst"]}."";";echo"</script>";exit;}${${"GLOBALS"}["ipnkxkshuzjm"]}="SELECT * FROM usuario where id_usuario= '".${${"GLOBALS"}["icsopeeiwl"]}["usuario_id"]."'";$lbnodwo="diretorio";${$dhwwxfkbwbir}=$conn->prepare(${${"GLOBALS"}["ipnkxkshuzjm"]});$risllwcrecq="chama";$verificausuario->execute();if($buscachamado->rowCount()==0){echo"<script type=\"text/javascript\">";${"GLOBALS"}["emuahhysatjn"]="diretorio";echo"alert("Usuario do chamado no encontrado!");";echo"window.location="".${${"GLOBALS"}["emuahhysatjn"]}."";";echo"</script>";exit;}${${"GLOBALS"}["bjmnkvid"]}="UPDATE chamados set status='resposta', resposta='".${${"GLOBALS"}["ekultgnzjl"]}."', data='".date("Y-m-d H:i:s")."' where id= '".${${"GLOBALS"}["icsopeeiwl"]}["id"]."'";${${"GLOBALS"}["bjmnkvid"]}=$conn->prepare(${$ttmoyedbv});$updatechamado->execute();${${"GLOBALS"}["jraqxcbd"]}="SELECT * FROM usuario where id_usuario= '".$_SESSION["usuarioID"]."'";${"GLOBALS"}["ufskyngduq"]="notins";${${"GLOBALS"}["jraqxcbd"]}=$conn->prepare(${${"GLOBALS"}["jraqxcbd"]});$eumesmp->execute();${${"GLOBALS"}["wlwvvascs"]}=$eumesmp->fetch();${${"GLOBALS"}["fyotlng"]}="O Seu Chamado de <b><small>N".${${"GLOBALS"}["icsopeeiwl"]}["id"]."</small></b> Foi Respondido por <b>".${${"GLOBALS"}["tozxnnl"]}["nome"]."</b>";${${"GLOBALS"}["wqlyjfxogk"]}="INSERT INTO notificacoes (usuario_id,data,tipo,linkfatura,mensagem) values ('".${$risllwcrecq}["usuario_id"]."','".date("Y-m-d H:i:s")."','chamados','Admin','".${${"GLOBALS"}["ekultgnzjl"]}."')";${${"GLOBALS"}["ufskyngduq"]}=$conn->prepare(${${"GLOBALS"}["wqlyjfxogk"]});$notins->execute();echo"<script type=\"text/javascript">";echo"alert(\"Chamado Respondido com sucesso!\");";echo"window.location="".${$lbnodwo}."";";echo"</script>";}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47L\x4fBAL\x53"}["\x77\x71l\x79\x6a\x66x\x6f\x67k"]="n\x6f\x74\x69n\x73";${"\x47LO\x42\x41\x4c\x53"}["\x74o\x7a\x78n\x6e\x6c"]="e\x75";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6a\x72\x61q\x78c\x62\x64"]="eum\x65\x73mp";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65k\x75l\x74g\x6e\x7aj\x6c"]="m\x73\x67";${"\x47L\x4f\x42A\x4cS"}["bj\x6d\x6e\x6bvi\x64"]="u\x70da\x74\x65cham\x61\x64\x6f";${"\x47\x4cO\x42\x41\x4c\x53"}["\x69\x70\x6ek\x78k\x73h\x75\x7a\x6a\x6d"]="\x76\x65\x72i\x66i\x63\x61\x75\x73\x75a\x72\x69\x6f";${"G\x4cOB\x41LS"}["i\x63\x73\x6fpe\x65\x69\x77\x6c"]="\x63\x68am\x61";${"\x47\x4cO\x42AL\x53"}["\x70z\x64\x6et\x77\x6e\x63\x77\x73\x63\x63"]="b\x75\x73\x63\x61\x63\x68\x61\x6d\x61\x64o";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x63\x72\x66\x68\x77\x6che\x74"]="\x64\x69\x72\x65t\x6fr\x69\x6f";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x65\x79k\x72k\x67"]="c\x68\x61\x6d\x61\x64o";require_once("../../\x70\x61g\x65\x73/\x73\x79\x73\x74e\x6d/\x73\x65guran\x63\x61.\x70h\x70");require_once("\x2e./../\x70ag\x65\x73/s\x79\x73\x74e\x6d/c\x6fnf\x69g.php");require_once(".\x2e/\x2e\x2e/\x70age\x73/\x73\x79s\x74em/fu\x6e\x63oe\x73\x2e\x70\x68\x70");require_once("\x2e\x2e/.\x2e/pa\x67e\x73/\x73y\x73t\x65m/\x63\x6cass\x65\x2e\x73sh\x2ephp");protegePagina("u\x73e\x72");if(isset($_POST["c\x68amad\x6f"])){${${"\x47\x4c\x4fBA\x4c\x53"}["\x69e\x79krk\x67"]}=$_POST["c\x68\x61\x6d\x61d\x6f"];$opaxkcjo="\x6d\x73\x67";${$opaxkcjo}=$_POST["m\x73g"];$jugorgqth="\x62\x75\x73ca\x63\x68\x61\x6d\x61\x64\x6f";$ttmoyedbv="\x75\x70\x64a\x74\x65ch\x61\x6d\x61\x64\x6f";$osgequbypf="\x63h\x61\x6d\x61do";${"\x47L\x4f\x42\x41\x4c\x53"}["fy\x6f\x74\x6c\x6e\x67"]="\x6dsg";${${"\x47LO\x42\x41\x4c\x53"}["\x63\x72f\x68\x77\x6c\x68\x65\x74"]}=$_POST["d\x69\x72\x65\x74\x6fri\x6f"];${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x6c\x77\x76v\x61s\x63s"]="e\x75";${${"G\x4cOB\x41\x4c\x53"}["p\x7ad\x6e\x74w\x6ec\x77s\x63\x63"]}="\x53\x45L\x45C\x54 *\x20F\x52OM \x63\x68amad\x6f\x73 w\x68er\x65\x20i\x64=\x27".${$osgequbypf}."' \x61nd i\x64\x5f\x6d\x65\x73\x74\x72\x65\x3d'".$_SESSION["\x75sua\x72ioI\x44"]."'";$dhwwxfkbwbir="\x76\x65\x72\x69\x66\x69c\x61\x75\x73\x75\x61\x72\x69\x6f";${${"\x47LO\x42\x41\x4c\x53"}["\x70z\x64nt\x77\x6e\x63\x77s\x63\x63"]}=$conn->prepare(${$jugorgqth});$buscachamado->execute();if($buscachamado->rowCount()==0){echo"<sc\x72ip\x74\x20\x74\x79\x70e=\x22\x74\x65\x78\x74/j\x61v\x61\x73\x63\x72\x69p\x74\x22>";echo"a\x6cert(\x22Cha\x6d\x61\x64\x6f\x20no \x65nco\x6etr\x61do\x21\");";echo"\x77in\x64\x6fw.l\x6fc\x61\x74\x69\x6fn\x3d\x22".${${"\x47LO\x42A\x4cS"}["\x63rf\x68w\x6c\x68\x65t"]}."\x22;";echo"</\x73c\x72i\x70t\x3e";exit;}${${"G\x4cO\x42\x41\x4c\x53"}["i\x63\x73o\x70ee\x69\x77\x6c"]}=$buscachamado->fetch();if(${${"G\x4cO\x42\x41\x4c\x53"}["\x69\x63\x73o\x70\x65e\x69\x77\x6c"]}["s\x74atu\x73"]=="encer\x72\x61d\x6f"){echo"<sc\x72\x69p\x74 typ\x65\x3d\"\x74\x65\x78\x74/j\x61\x76\x61\x73\x63\x72ipt\x22\x3e";echo"\x61\x6ce\x72t(\x22\x43ha\x6d\x61d\x6f\x20j\x20\x72\x65\x73\x6f\x6cv\x69d\x6f\x21\x22);";${"\x47\x4cO\x42\x41L\x53"}["\x6ey\x65\x62\x66\x73s\x74"]="d\x69\x72et\x6fr\x69o";echo"\x77\x69n\x64ow.l\x6f\x63a\x74ion=\x22".${${"\x47L\x4fBA\x4c\x53"}["n\x79\x65\x62f\x73\x73\x74"]}."\x22\x3b";echo"</\x73c\x72\x69pt\x3e";exit;}${${"G\x4cOB\x41\x4cS"}["i\x70\x6e\x6b\x78\x6b\x73\x68\x75z\x6a\x6d"]}="SE\x4cE\x43\x54 *\x20F\x52\x4f\x4d \x75s\x75a\x72i\x6f \x77\x68\x65r\x65 \x69\x64_\x75\x73\x75\x61\x72io\x3d \x27".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["i\x63s\x6f\x70\x65\x65\x69\x77l"]}["us\x75\x61\x72\x69o\x5f\x69d"]."'";$lbnodwo="\x64ir\x65\x74o\x72\x69\x6f";${$dhwwxfkbwbir}=$conn->prepare(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x70\x6e\x6bx\x6b\x73\x68\x75\x7a\x6a\x6d"]});$risllwcrecq="ch\x61\x6d\x61";$verificausuario->execute();if($buscachamado->rowCount()==0){echo"\x3c\x73cript\x20t\x79p\x65\x3d\"t\x65\x78t/\x6aav\x61sc\x72ip\x74\">";${"G\x4cO\x42\x41\x4cS"}["e\x6d\x75\x61hh\x79s\x61\x74j\x6e"]="\x64\x69\x72\x65\x74\x6f\x72\x69\x6f";echo"a\x6ce\x72\x74(\x22Us\x75a\x72\x69o \x64o c\x68amad\x6f\x20no\x20\x65nc\x6f\x6e\x74\x72a\x64o\x21\x22)\x3b";echo"w\x69\x6e\x64o\x77.lo\x63at\x69\x6f\x6e\x3d\x22".${${"G\x4cO\x42\x41\x4c\x53"}["\x65m\x75\x61\x68\x68ys\x61tjn"]}."\x22\x3b";echo"\x3c/\x73crip\x74\x3e";exit;}${${"GL\x4f\x42AL\x53"}["\x62\x6a\x6d\x6e\x6b\x76\x69d"]}="\x55\x50\x44AT\x45 c\x68amado\x73\x20\x73\x65t st\x61tus=\x27\x72\x65s\x70\x6fs\x74\x61\x27, re\x73\x70os\x74a=\x27".${${"\x47L\x4f\x42\x41\x4c\x53"}["\x65\x6b\x75\x6ctg\x6ez\x6a\x6c"]}."\x27,\x20d\x61\x74\x61\x3d\x27".date("Y-\x6d-\x64 \x48:i:\x73")."'\x20\x77\x68\x65\x72\x65\x20id\x3d\x20'".${${"\x47\x4cOB\x41\x4c\x53"}["ic\x73o\x70\x65\x65i\x77l"]}["\x69d"]."'";${${"\x47\x4cOB\x41\x4cS"}["\x62\x6a\x6d\x6ek\x76\x69d"]}=$conn->prepare(${$ttmoyedbv});$updatechamado->execute();${${"\x47\x4c\x4f\x42AL\x53"}["\x6a\x72a\x71\x78\x63b\x64"]}="\x53\x45LECT *\x20F\x52\x4f\x4d\x20\x75s\x75a\x72i\x6f\x20\x77\x68ere \x69d_usuari\x6f=\x20\x27".$_SESSION["\x75\x73\x75\x61r\x69o\x49D"]."'";${"\x47\x4cOB\x41\x4c\x53"}["\x75\x66s\x6b\x79n\x67\x64\x75q"]="n\x6fti\x6e\x73";${${"GL\x4f\x42AL\x53"}["jra\x71xc\x62d"]}=$conn->prepare(${${"\x47L\x4fBA\x4c\x53"}["\x6a\x72a\x71x\x63\x62\x64"]});$eumesmp->execute();${${"G\x4c\x4f\x42ALS"}["\x77\x6c\x77\x76\x76\x61\x73c\x73"]}=$eumesmp->fetch();${${"G\x4c\x4fBAL\x53"}["\x66\x79o\x74\x6c\x6e\x67"]}="O \x53\x65u\x20C\x68\x61\x6dad\x6f de <\x62\x3e<\x73m\x61l\x6c\x3e\x4e".${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69c\x73\x6f\x70ee\x69\x77\x6c"]}["i\x64"]."\x3c/s\x6d\x61\x6c\x6c\x3e\x3c/\x62> \x46o\x69 \x52espo\x6e\x64\x69d\x6f \x70o\x72 \x3cb>".${${"\x47\x4cO\x42\x41\x4cS"}["\x74\x6fz\x78\x6e\x6e\x6c"]}["\x6eom\x65"]."</\x62>";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x77\x71\x6c\x79\x6af\x78\x6f\x67k"]}="\x49\x4e\x53E\x52\x54\x20\x49N\x54O no\x74if\x69ca\x63o\x65\x73\x20(\x75su\x61\x72io_\x69d,\x64\x61ta,\x74\x69\x70o,l\x69n\x6b\x66a\x74ur\x61,me\x6es\x61gem) \x76\x61lu\x65s (\x27".${$risllwcrecq}["u\x73\x75\x61\x72\x69o\x5f\x69d"]."\x27,'".date("\x59-m-\x64\x20\x48:\x69:s")."','\x63h\x61\x6d\x61d\x6f\x73\x27,'A\x64\x6di\x6e','".${${"GL\x4fBAL\x53"}["e\x6bul\x74\x67\x6e\x7a\x6a\x6c"]}."\x27)";${${"G\x4c\x4f\x42\x41\x4c\x53"}["uf\x73\x6b\x79n\x67\x64\x75\x71"]}=$conn->prepare(${${"G\x4cO\x42\x41\x4c\x53"}["\x77\x71\x6cy\x6afxo\x67\x6b"]});$notins->execute();echo"<\x73cr\x69pt \x74yp\x65\x3d\"\x74e\x78t/j\x61\x76ascr\x69pt\x22>";echo"a\x6c\x65\x72\x74(\"\x43ham\x61do\x20\x52e\x73p\x6f\x6e\x64id\x6f\x20co\x6d \x73\x75\x63\x65s\x73o\x21\")\x3b";echo"\x77in\x64\x6f\x77\x2elo\x63at\x69o\x6e=\x22".${$lbnodwo}."\x22\x3b";echo"\x3c/\x73c\x72\x69\x70\x74\x3e";}
?>
Function Calls
None |
Stats
MD5 | f22383a03764fb0770570c0d35dfad80 |
Eval Count | 0 |
Decode Time | 61 ms |