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 ${"\x47LO\x42\x41\x4cS"}["r\x6c\x6e\x70\x6f\x61\x6aw"]="\x6e\x6ftins";${"\x47\x4c\x4..

Decoded Output download

<?php ${"GLOBALS"}["rlnpoajw"]="notins";${"GLOBALS"}["ijivpnqj"]="eu";${"GLOBALS"}["zkfioqwzzy"]="eumesmp";${"GLOBALS"}["qonpbhnkep"]="updatechamado";${"GLOBALS"}["nrigpmrqs"]="verificausuario";${"GLOBALS"}["uhngumcnm"]="chama";${"GLOBALS"}["ssdjfzoz"]="diretorio";${"GLOBALS"}["orzntzblf"]="msg";${"GLOBALS"}["vytxlgtenwhi"]="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"])){$vkrntomt="chamado";${${"GLOBALS"}["vytxlgtenwhi"]}=$_POST["chamado"];${"GLOBALS"}["jowpll"]="buscachamado";${${"GLOBALS"}["orzntzblf"]}=$_POST["msg"];$iqjilllujgr="buscachamado";$vwcymzs="updatechamado";${${"GLOBALS"}["ssdjfzoz"]}=$_POST["diretorio"];${"GLOBALS"}["kmhrjurlkc"]="updatechamado";${"GLOBALS"}["jomexki"]="notins";${"GLOBALS"}["xdnqeco"]="chama";${"GLOBALS"}["mbsdbnh"]="verificausuario";$hgzgmjip="buscachamado";${$iqjilllujgr}="SELECT * FROM chamados where id='".${$vkrntomt}."' and id_mestre='".$_SESSION["usuarioID"]."'";${${"GLOBALS"}["jowpll"]}=$conn->prepare(${$hgzgmjip});$buscachamado->execute();if($buscachamado->rowCount()==0){echo"<script type=\"text/javascript">";$sztkfcyned="diretorio";echo"alert("Chamado no encontrado!\");";echo"window.location="".${$sztkfcyned}."\";";echo"</script>";exit;}${${"GLOBALS"}["uhngumcnm"]}=$buscachamado->fetch();${"GLOBALS"}["fsoxjmh"]="verificausuario";if(${${"GLOBALS"}["uhngumcnm"]}["status"]=="encerrado"){echo"<script type=\"text/javascript">";echo"alert(\"Chamado j resolvido!");";echo"window.location=\"".${${"GLOBALS"}["ssdjfzoz"]}."";";echo"</script>";exit;}if(${${"GLOBALS"}["orzntzblf"]}<>""){${${"GLOBALS"}["orzntzblf"]}=${${"GLOBALS"}["orzntzblf"]};}else{$ykmwgyj="chama";${"GLOBALS"}["criqhraun"]="msg";${${"GLOBALS"}["criqhraun"]}=${$ykmwgyj}["resposta"];}$diyjqgibsmyh="eumesmp";${${"GLOBALS"}["nrigpmrqs"]}="SELECT * FROM usuario where id_usuario= '".${${"GLOBALS"}["xdnqeco"]}["usuario_id"]."'";${${"GLOBALS"}["mbsdbnh"]}=$conn->prepare(${${"GLOBALS"}["fsoxjmh"]});$verificausuario->execute();$ospprgt="notins";$oylecux="chama";if($buscachamado->rowCount()==0){echo"<script type=\"text/javascript\">";echo"alert(\"Usuario do chamado no encontrado!");";${"GLOBALS"}["bsnjeks"]="diretorio";echo"window.location="".${${"GLOBALS"}["bsnjeks"]}."";";echo"</script>";exit;}${${"GLOBALS"}["qonpbhnkep"]}="UPDATE chamados set status='encerrado', resposta='".${${"GLOBALS"}["orzntzblf"]}."', data='".date("Y-m-d H:i:s")."' where id= '".${${"GLOBALS"}["uhngumcnm"]}["id"]."'";${"GLOBALS"}["bihsfgvhpfr"]="eu";${${"GLOBALS"}["kmhrjurlkc"]}=$conn->prepare(${$vwcymzs});${"GLOBALS"}["sfiwkvezcvv"]="chama";$updatechamado->execute();${${"GLOBALS"}["zkfioqwzzy"]}="SELECT * FROM usuario where id_usuario= '".$_SESSION["usuarioID"]."'";${${"GLOBALS"}["zkfioqwzzy"]}=$conn->prepare(${$diyjqgibsmyh});$eumesmp->execute();${${"GLOBALS"}["bihsfgvhpfr"]}=$eumesmp->fetch();${${"GLOBALS"}["orzntzblf"]}="O Seu Chamado de <b><small>N".${$oylecux}["id"]."</small></b> Foi Encerrado por <b>".${${"GLOBALS"}["ijivpnqj"]}["nome"]."</b>";${$ospprgt}="INSERT INTO notificacoes (usuario_id,data,tipo,linkfatura,mensagem) values ('".${${"GLOBALS"}["sfiwkvezcvv"]}["usuario_id"]."','".date("Y-m-d H:i:s")."','chamados','Admin','".${${"GLOBALS"}["orzntzblf"]}."')";${${"GLOBALS"}["rlnpoajw"]}=$conn->prepare(${${"GLOBALS"}["jomexki"]});$notins->execute();echo"<script type=\"text/javascript">";$spwpqmwa="diretorio";echo"alert("Chamado Encerrado com sucesso!");";echo"window.location="".${$spwpqmwa}."\";";echo"</script>";} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47LO\x42\x41\x4cS"}["r\x6c\x6e\x70\x6f\x61\x6aw"]="\x6e\x6ftins";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x6ai\x76p\x6eq\x6a"]="\x65u";${"\x47\x4c\x4f\x42ALS"}["z\x6b\x66\x69\x6fq\x77\x7a\x7a\x79"]="e\x75\x6d\x65s\x6dp";${"GL\x4f\x42\x41\x4cS"}["\x71\x6f\x6e\x70b\x68\x6e\x6b\x65p"]="\x75\x70\x64\x61\x74\x65\x63\x68\x61m\x61do";${"\x47\x4c\x4f\x42\x41L\x53"}["nr\x69\x67\x70\x6d\x72qs"]="\x76\x65\x72\x69\x66i\x63a\x75\x73ua\x72\x69\x6f";${"\x47L\x4f\x42\x41\x4c\x53"}["\x75h\x6eg\x75mc\x6e\x6d"]="\x63ha\x6da";${"\x47LO\x42\x41\x4c\x53"}["\x73s\x64\x6a\x66z\x6f\x7a"]="d\x69\x72\x65t\x6fr\x69\x6f";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6fr\x7a\x6e\x74z\x62\x6c\x66"]="\x6d\x73g";${"GL\x4f\x42\x41\x4c\x53"}["vy\x74x\x6cg\x74e\x6e\x77\x68\x69"]="\x63h\x61\x6d\x61\x64\x6f";require_once(".\x2e/.\x2e/\x70\x61g\x65\x73/s\x79s\x74em/\x73\x65\x67\x75\x72\x61\x6e\x63a.\x70\x68p");require_once("../\x2e./p\x61g\x65\x73/syst\x65\x6d/co\x6e\x66\x69g\x2eph\x70");require_once("\x2e./\x2e./p\x61g\x65\x73/\x73ys\x74\x65\x6d/f\x75\x6e\x63o\x65s\x2e\x70hp");require_once("\x2e\x2e/\x2e\x2e/p\x61\x67\x65\x73/\x73\x79s\x74e\x6d/\x63la\x73\x73e.\x73sh.p\x68\x70");protegePagina("u\x73e\x72");if(isset($_POST["\x63hama\x64o"])){$vkrntomt="c\x68\x61\x6da\x64o";${${"\x47\x4cOB\x41\x4cS"}["\x76y\x74\x78\x6c\x67\x74\x65\x6e\x77h\x69"]}=$_POST["c\x68\x61\x6dad\x6f"];${"\x47L\x4f\x42\x41LS"}["j\x6f\x77\x70l\x6c"]="\x62\x75\x73\x63\x61\x63\x68a\x6d\x61\x64\x6f";${${"GL\x4f\x42\x41\x4cS"}["or\x7an\x74z\x62l\x66"]}=$_POST["\x6dsg"];$iqjilllujgr="\x62\x75\x73\x63\x61c\x68\x61\x6d\x61\x64\x6f";$vwcymzs="\x75pda\x74\x65\x63\x68\x61m\x61\x64\x6f";${${"\x47\x4c\x4f\x42\x41LS"}["\x73\x73\x64\x6afzo\x7a"]}=$_POST["d\x69r\x65t\x6f\x72\x69o"];${"\x47\x4c\x4fBA\x4c\x53"}["\x6b\x6dh\x72\x6a\x75r\x6c\x6bc"]="u\x70d\x61t\x65c\x68a\x6da\x64o";${"\x47L\x4f\x42\x41L\x53"}["j\x6fm\x65\x78\x6b\x69"]="n\x6ft\x69\x6es";${"\x47L\x4f\x42\x41\x4cS"}["\x78\x64\x6e\x71e\x63\x6f"]="\x63\x68\x61\x6da";${"\x47\x4c\x4f\x42\x41L\x53"}["m\x62\x73\x64bnh"]="\x76e\x72i\x66\x69\x63a\x75\x73\x75\x61r\x69o";$hgzgmjip="\x62\x75\x73\x63\x61\x63ha\x6d\x61\x64o";${$iqjilllujgr}="\x53EL\x45\x43\x54 *\x20FRO\x4d\x20\x63\x68a\x6da\x64\x6fs\x20\x77\x68e\x72e\x20\x69\x64\x3d'".${$vkrntomt}."\x27 a\x6ed\x20i\x64\x5fme\x73tre\x3d\x27".$_SESSION["usua\x72i\x6fI\x44"]."\x27";${${"\x47\x4c\x4fBAL\x53"}["j\x6f\x77p\x6c\x6c"]}=$conn->prepare(${$hgzgmjip});$buscachamado->execute();if($buscachamado->rowCount()==0){echo"\x3c\x73\x63ri\x70\x74\x20\x74\x79p\x65\x3d\"\x74e\x78t/j\x61vascript\x22>";$sztkfcyned="di\x72eto\x72i\x6f";echo"\x61\x6ce\x72\x74(\x22Ch\x61m\x61\x64o \x6eo encont\x72\x61d\x6f!\");";echo"w\x69\x6edow.loc\x61ti\x6fn\x3d\x22".${$sztkfcyned}."\"\x3b";echo"</s\x63rip\x74\x3e";exit;}${${"\x47LO\x42A\x4cS"}["uh\x6eg\x75\x6d\x63n\x6d"]}=$buscachamado->fetch();${"GL\x4f\x42\x41\x4c\x53"}["f\x73\x6fx\x6am\x68"]="\x76\x65r\x69\x66i\x63\x61\x75\x73\x75\x61\x72\x69\x6f";if(${${"\x47LO\x42A\x4c\x53"}["\x75\x68ngu\x6d\x63\x6e\x6d"]}["s\x74a\x74us"]=="\x65\x6e\x63\x65\x72r\x61d\x6f"){echo"\x3c\x73\x63r\x69\x70t \x74\x79p\x65\x3d\"\x74\x65xt/j\x61\x76a\x73\x63\x72i\x70\x74\x22\x3e";echo"aler\x74(\"C\x68am\x61\x64\x6f\x20\x6a re\x73\x6flv\x69d\x6f\x21\x22)\x3b";echo"wi\x6ed\x6f\x77.\x6coc\x61\x74ion\x3d\"".${${"\x47LO\x42A\x4cS"}["\x73s\x64\x6a\x66zo\x7a"]}."\x22\x3b";echo"</s\x63ri\x70t>";exit;}if(${${"\x47\x4c\x4f\x42AL\x53"}["o\x72\x7a\x6e\x74\x7a\x62lf"]}<>""){${${"G\x4c\x4f\x42\x41\x4cS"}["or\x7a\x6et\x7ab\x6cf"]}=${${"\x47\x4c\x4f\x42\x41\x4cS"}["o\x72\x7a\x6e\x74\x7a\x62lf"]};}else{$ykmwgyj="\x63\x68a\x6d\x61";${"\x47\x4c\x4fBA\x4c\x53"}["cr\x69\x71h\x72\x61\x75\x6e"]="msg";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x63\x72\x69\x71\x68\x72\x61\x75n"]}=${$ykmwgyj}["\x72\x65s\x70\x6fsta"];}$diyjqgibsmyh="\x65\x75\x6d\x65\x73\x6d\x70";${${"G\x4c\x4f\x42ALS"}["\x6e\x72\x69\x67\x70\x6d\x72\x71\x73"]}="SELEC\x54\x20* FRO\x4d\x20\x75su\x61\x72\x69o \x77h\x65r\x65 \x69\x64_us\x75\x61ri\x6f= \x27".${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x78d\x6e\x71e\x63\x6f"]}["us\x75\x61\x72i\x6f_id"]."'";${${"\x47\x4c\x4fBA\x4c\x53"}["\x6d\x62\x73\x64b\x6e\x68"]}=$conn->prepare(${${"\x47\x4cO\x42\x41\x4cS"}["f\x73\x6fxj\x6dh"]});$verificausuario->execute();$ospprgt="\x6e\x6f\x74\x69\x6e\x73";$oylecux="ch\x61\x6d\x61";if($buscachamado->rowCount()==0){echo"\x3c\x73\x63\x72i\x70t\x20ty\x70\x65=\"t\x65\x78t/\x6a\x61\x76\x61s\x63ript\">";echo"\x61\x6c\x65r\x74(\"\x55su\x61\x72\x69\x6f \x64\x6f\x20c\x68a\x6d\x61do n\x6f\x20enc\x6f\x6e\x74rado!\x22)\x3b";${"\x47LO\x42A\x4c\x53"}["b\x73\x6e\x6ae\x6b\x73"]="\x64i\x72etorio";echo"w\x69n\x64\x6fw.lo\x63a\x74ion=\x22".${${"G\x4c\x4fBA\x4cS"}["\x62\x73\x6ej\x65k\x73"]}."\x22\x3b";echo"</\x73crip\x74>";exit;}${${"G\x4c\x4fB\x41\x4c\x53"}["\x71\x6f\x6e\x70\x62h\x6ekep"]}="UP\x44\x41T\x45 \x63\x68a\x6d\x61dos se\x74 \x73\x74a\x74us\x3d\x27\x65n\x63\x65rr\x61d\x6f', res\x70o\x73ta='".${${"\x47\x4c\x4f\x42\x41L\x53"}["o\x72z\x6e\x74z\x62l\x66"]}."\x27, data\x3d'".date("\x59-m-\x64\x20\x48:i:s")."\x27\x20\x77\x68\x65\x72\x65\x20\x69\x64\x3d\x20\x27".${${"G\x4c\x4f\x42A\x4cS"}["\x75\x68\x6eg\x75\x6d\x63nm"]}["i\x64"]."\x27";${"\x47\x4c\x4f\x42AL\x53"}["\x62\x69\x68\x73\x66g\x76hp\x66\x72"]="\x65u";${${"\x47\x4c\x4fB\x41L\x53"}["\x6bmh\x72\x6a\x75\x72\x6ckc"]}=$conn->prepare(${$vwcymzs});${"\x47\x4c\x4fBA\x4c\x53"}["\x73\x66\x69w\x6b\x76\x65\x7a\x63\x76v"]="\x63\x68\x61ma";$updatechamado->execute();${${"\x47\x4c\x4fBALS"}["\x7a\x6b\x66\x69o\x71w\x7a\x7ay"]}="\x53\x45\x4c\x45\x43T * FRO\x4d u\x73u\x61\x72io \x77h\x65\x72e \x69d_\x75s\x75\x61\x72i\x6f=\x20'".$_SESSION["\x75\x73\x75\x61\x72\x69o\x49\x44"]."'";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x7a\x6bf\x69o\x71\x77\x7azy"]}=$conn->prepare(${$diyjqgibsmyh});$eumesmp->execute();${${"\x47L\x4f\x42\x41LS"}["\x62ih\x73\x66g\x76\x68\x70f\x72"]}=$eumesmp->fetch();${${"GL\x4f\x42\x41\x4cS"}["\x6f\x72\x7a\x6e\x74\x7a\x62l\x66"]}="O\x20S\x65\x75 \x43\x68am\x61\x64o de <b\x3e<\x73\x6da\x6c\x6c>N".${$oylecux}["\x69\x64"]."</\x73\x6d\x61ll\x3e\x3c/b\x3e\x20F\x6fi Enc\x65\x72r\x61d\x6f\x20p\x6fr \x3c\x62>".${${"G\x4cO\x42\x41\x4cS"}["i\x6a\x69\x76\x70\x6e\x71\x6a"]}["\x6e\x6f\x6d\x65"]."\x3c/\x62\x3e";${$ospprgt}="I\x4e\x53\x45R\x54 I\x4e\x54\x4f\x20\x6eo\x74i\x66i\x63\x61c\x6f\x65\x73\x20(\x75su\x61r\x69\x6f\x5fid,\x64a\x74a,ti\x70\x6f,\x6cin\x6bfatur\x61,me\x6es\x61\x67\x65\x6d) \x76alue\x73 ('".${${"\x47\x4c\x4fB\x41\x4cS"}["s\x66i\x77kv\x65\x7acv\x76"]}["\x75s\x75a\x72\x69\x6f_id"]."','".date("Y-\x6d-\x64 H:i:\x73")."\x27,\x27c\x68am\x61d\x6fs',\x27A\x64\x6d\x69n',\x27".${${"G\x4c\x4f\x42\x41\x4c\x53"}["o\x72z\x6e\x74\x7a\x62l\x66"]}."\x27)";${${"\x47\x4c\x4f\x42A\x4c\x53"}["rl\x6e\x70o\x61\x6a\x77"]}=$conn->prepare(${${"\x47\x4c\x4fB\x41\x4cS"}["\x6ao\x6d\x65\x78ki"]});$notins->execute();echo"<\x73\x63r\x69\x70\x74\x20\x74\x79pe=\"te\x78t/\x6aava\x73\x63ri\x70t\x22\x3e";$spwpqmwa="di\x72\x65t\x6f\x72\x69o";echo"\x61\x6c\x65\x72\x74(\x22C\x68\x61\x6d\x61d\x6f \x45\x6ecerrad\x6f\x20\x63\x6fm s\x75\x63\x65\x73so\x21\x22)\x3b";echo"\x77\x69nd\x6f\x77\x2elo\x63\x61t\x69on=\x22".${$spwpqmwa}."\";";echo"\x3c/script>";}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'rlnpoajw', 'value': 'notins'}, {'key': 'ijivpnqj', 'value': 'eu'}, {'key': 'zkfioqwzzy', 'value': 'eumesmp'}, {'key': 'qonpbhnkep', 'value': 'updatechamado'}, {'key': 'nrigpmrqs', 'value': 'verificausuario'}, {'key': 'uhngumcnm', 'value': 'chama'}, {'key': 'ssdjfzoz', 'value': 'diretorio'}, {'key': 'orzntzblf', 'value': 'msg'}, {'key': 'vytxlgtenwhi', 'value': 'chamado'}]

Stats

MD5 7421ccb6bbed09ee78d2061d25928e2a
Eval Count 0
Decode Time 63 ms