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\x4f\x42\x41\x4cS"}["\x64\x67\x75zvl\x78\x66\x6b\x63\x79"]="no\x74\x69\x6es"..
Decoded Output download
<?php ${"GLOBALS"}["dguzvlxfkcy"]="notins";${"GLOBALS"}["vmevkpszrvz"]="revenda";${"GLOBALS"}["yflmaipqqwc"]="SQLrev";${"GLOBALS"}["ycbibfcu"]="msg";${"GLOBALS"}["yiibmk"]="tipo";${"GLOBALS"}["ltewxohsz"]="cliente";require_once("../../../pages/system/seguranca.php");require_once("../../../pages/system/config.php");protegePagina("donoadmin");if(isset($_POST["clientevpn"])){$yetgucp="SQLrev";$iueclsr="SQLrev";${${"GLOBALS"}["ltewxohsz"]}=sql_injector($_POST["clientevpn"]);${"GLOBALS"}["blvogux"]="tipo";${${"GLOBALS"}["yiibmk"]}=sql_injector($_POST["tipo"]);${"GLOBALS"}["zbvylrnhsb"]="revenda";${${"GLOBALS"}["ycbibfcu"]}=sql_injector($_POST["msg"]);$hepfhrn="usuarion";$dvszybfoqq="tipo";${"GLOBALS"}["ugkicouexc"]="revenda";${$yetgucp}="SELECT * FROM usuario where id_usuario='".${${"GLOBALS"}["ltewxohsz"]}."'";${"GLOBALS"}["dlaxlokt"]="msg";${$iueclsr}=$conn->prepare(${${"GLOBALS"}["yflmaipqqwc"]});${"GLOBALS"}["lsrduwg"]="usuarion";$SQLrev->execute();if($SQLrev->rowCount()<=0){echo"<script type=\"text/javascript\">";echo"alert(\"Revendedor No encontrado!\");";echo"window.location=\"../../home.php?page=notificacoes/notificar";";echo"</script>";exit;}${"GLOBALS"}["szxnelmqvf"]="tipo";$xprleuy="notins";${"GLOBALS"}["ybferufbxjie"]="notins";${${"GLOBALS"}["ugkicouexc"]}=$SQLrev->fetch();if(${${"GLOBALS"}["vmevkpszrvz"]}["tipo"]<>"vpn"){echo"<script type="text/javascript">";echo"alert(\"Este usuario no uma VPN!\");";echo"window.location=\"../../home.php?page=notificacoes/notificar\";";echo"</script>";exit;}if(${${"GLOBALS"}["zbvylrnhsb"]}["id_mestre"]<>0){echo"<script type=\"text/javascript\">";echo"alert(\"Este usuario de um Revendedor!\");";echo"window.location="../../home.php?page=notificacoes/notificar";";echo"</script>";exit;}switch(${$dvszybfoqq}){case 1:${${"GLOBALS"}["yiibmk"]}="fatura";break;case 2:${${"GLOBALS"}["szxnelmqvf"]}="outros";break;default:${${"GLOBALS"}["yiibmk"]}="erro";break;}$tcnxofel="msg";if(${${"GLOBALS"}["blvogux"]}=="erro"){echo"<script type="text/javascript">";echo"alert("Erro no tipo escolha outro!");";echo"window.location=\"../../home.php?page=notificacoes/notificar\";";echo"</script>";exit;}${${"GLOBALS"}["lsrduwg"]}=${${"GLOBALS"}["vmevkpszrvz"]}["id_usuario"];${$tcnxofel}=${${"GLOBALS"}["dlaxlokt"]};${${"GLOBALS"}["ybferufbxjie"]}="INSERT INTO notificacoes (usuario_id,data,tipo,linkfatura,mensagem) values ('".${$hepfhrn}."','".date("Y-m-d H:i:s")."','".${${"GLOBALS"}["yiibmk"]}."','Admin','".${${"GLOBALS"}["ycbibfcu"]}."')";${$xprleuy}=$conn->prepare(${${"GLOBALS"}["dguzvlxfkcy"]});$notins->execute();echo"<script type=\"text/javascript">";echo"alert("ClienteVpn Notificado!");";echo"window.location=\"../../home.php?page=notificacoes/notificar";";echo"</script>";}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47L\x4f\x42\x41\x4cS"}["\x64\x67\x75zvl\x78\x66\x6b\x63\x79"]="no\x74\x69\x6es";${"GLO\x42\x41\x4c\x53"}["\x76\x6d\x65\x76\x6b\x70\x73z\x72v\x7a"]="\x72\x65\x76\x65\x6e\x64\x61";${"\x47\x4c\x4f\x42\x41L\x53"}["\x79\x66\x6c\x6d\x61\x69\x70\x71\x71w\x63"]="\x53Q\x4c\x72\x65\x76";${"G\x4c\x4f\x42\x41L\x53"}["\x79c\x62ib\x66c\x75"]="m\x73\x67";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x69\x69\x62m\x6b"]="\x74\x69\x70\x6f";${"\x47L\x4fBA\x4cS"}["\x6ct\x65\x77\x78\x6fhsz"]="cli\x65nt\x65";require_once("\x2e\x2e/\x2e./.\x2e/\x70\x61g\x65s/\x73y\x73t\x65\x6d/\x73\x65g\x75ra\x6e\x63a.\x70\x68\x70");require_once(".\x2e/\x2e./../pa\x67\x65\x73/\x73\x79s\x74e\x6d/\x63o\x6e\x66i\x67\x2ephp");protegePagina("do\x6eoa\x64min");if(isset($_POST["\x63l\x69\x65\x6e\x74ev\x70n"])){$yetgucp="\x53\x51L\x72ev";$iueclsr="S\x51Lrev";${${"\x47\x4c\x4fB\x41\x4cS"}["\x6c\x74e\x77x\x6f\x68sz"]}=sql_injector($_POST["\x63l\x69\x65n\x74\x65\x76p\x6e"]);${"\x47L\x4f\x42A\x4c\x53"}["\x62\x6c\x76\x6f\x67\x75x"]="\x74\x69\x70\x6f";${${"GLOBAL\x53"}["\x79\x69ib\x6dk"]}=sql_injector($_POST["ti\x70\x6f"]);${"G\x4cOB\x41LS"}["\x7a\x62v\x79\x6cr\x6eh\x73b"]="\x72\x65v\x65n\x64a";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x79c\x62i\x62\x66\x63\x75"]}=sql_injector($_POST["\x6ds\x67"]);$hepfhrn="\x75\x73\x75ar\x69\x6f\x6e";$dvszybfoqq="\x74i\x70o";${"GL\x4fB\x41\x4c\x53"}["u\x67\x6bi\x63\x6fu\x65x\x63"]="\x72e\x76\x65\x6e\x64a";${$yetgucp}="SE\x4c\x45CT\x20* F\x52\x4f\x4d \x75s\x75a\x72\x69\x6f\x20\x77\x68e\x72\x65 id_us\x75ario='".${${"\x47\x4c\x4f\x42\x41LS"}["\x6c\x74\x65wx\x6fhsz"]}."'";${"\x47\x4cO\x42\x41\x4cS"}["\x64\x6c\x61xl\x6f\x6b\x74"]="ms\x67";${$iueclsr}=$conn->prepare(${${"\x47\x4cOB\x41L\x53"}["\x79\x66\x6cma\x69\x70\x71\x71\x77\x63"]});${"\x47\x4cOB\x41\x4c\x53"}["\x6cs\x72\x64\x75\x77g"]="u\x73\x75\x61\x72\x69\x6f\x6e";$SQLrev->execute();if($SQLrev->rowCount()<=0){echo"<\x73c\x72\x69\x70\x74\x20\x74\x79\x70e\x3d\"te\x78t/j\x61\x76\x61s\x63r\x69p\x74\"\x3e";echo"\x61l\x65\x72\x74(\"Re\x76\x65\x6ed\x65\x64o\x72 \x4e\x6f\x20\x65nc\x6f\x6e\x74\x72ad\x6f\x21\")\x3b";echo"\x77\x69\x6edo\x77\x2e\x6co\x63at\x69\x6f\x6e\x3d\".\x2e/../home\x2e\x70hp?p\x61ge=\x6e\x6f\x74\x69fica\x63oes/\x6eot\x69\x66i\x63\x61r\x22\x3b";echo"\x3c/\x73\x63ri\x70t>";exit;}${"\x47\x4c\x4f\x42\x41\x4c\x53"}["s\x7a\x78\x6e\x65\x6c\x6dq\x76f"]="t\x69\x70\x6f";$xprleuy="n\x6f\x74\x69\x6es";${"GLO\x42A\x4c\x53"}["\x79\x62\x66\x65\x72\x75f\x62\x78\x6a\x69e"]="\x6eotins";${${"\x47\x4c\x4f\x42AL\x53"}["\x75g\x6b\x69\x63o\x75\x65\x78\x63"]}=$SQLrev->fetch();if(${${"\x47\x4c\x4f\x42\x41\x4cS"}["vm\x65v\x6bps\x7a\x72v\x7a"]}["t\x69\x70\x6f"]<>"\x76p\x6e"){echo"<\x73\x63ri\x70\x74 t\x79p\x65\x3d\x22\x74\x65\x78\x74/ja\x76a\x73c\x72\x69pt\x22>";echo"\x61\x6cert(\"Este\x20u\x73\x75a\x72i\x6f\x20\x6e\x6f \x75ma\x20V\x50\x4e!\")\x3b";echo"wi\x6e\x64ow.locati\x6f\x6e\x3d\"\x2e./\x2e\x2e/\x68ome\x2eph\x70?\x70age\x3d\x6eotif\x69ca\x63o\x65s/\x6e\x6ft\x69f\x69c\x61r\"\x3b";echo"</s\x63\x72i\x70t\x3e";exit;}if(${${"\x47L\x4f\x42A\x4c\x53"}["\x7ab\x76\x79\x6c\x72n\x68s\x62"]}["\x69d\x5f\x6d\x65\x73tre"]<>0){echo"<\x73\x63\x72ipt\x20ty\x70e=\"t\x65\x78t/\x6aava\x73cr\x69\x70t\">";echo"\x61\x6c\x65\x72t(\"E\x73te\x20\x75su\x61r\x69\x6f \x64\x65 \x75\x6d R\x65ven\x64edo\x72!\");";echo"\x77\x69\x6e\x64ow\x2el\x6f\x63\x61\x74\x69\x6fn\x3d\x22\x2e./.\x2e/ho\x6de\x2e\x70\x68\x70?\x70\x61ge\x3d\x6e\x6ftifi\x63aco\x65\x73/no\x74\x69\x66ic\x61\x72\x22;";echo"\x3c/script>";exit;}switch(${$dvszybfoqq}){case 1:${${"G\x4c\x4fB\x41\x4cS"}["\x79\x69i\x62m\x6b"]}="f\x61tu\x72\x61";break;case 2:${${"G\x4c\x4f\x42AL\x53"}["s\x7a\x78n\x65\x6c\x6d\x71\x76\x66"]}="o\x75\x74\x72\x6f\x73";break;default:${${"G\x4c\x4fB\x41\x4c\x53"}["\x79\x69\x69\x62m\x6b"]}="\x65\x72\x72o";break;}$tcnxofel="\x6d\x73g";if(${${"GL\x4f\x42\x41LS"}["b\x6c\x76\x6f\x67u\x78"]}=="er\x72o"){echo"\x3cs\x63r\x69p\x74 t\x79\x70\x65\x3d\x22\x74e\x78\x74/ja\x76as\x63\x72i\x70t\x22\x3e";echo"a\x6c\x65rt(\x22Err\x6f \x6eo\x20\x74ip\x6f\x20escolh\x61\x20\x6fut\x72\x6f\x21\x22);";echo"\x77i\x6e\x64\x6f\x77\x2e\x6c\x6fca\x74i\x6fn=\"../.\x2e/\x68o\x6d\x65\x2ep\x68\x70?p\x61ge\x3d\x6e\x6f\x74\x69\x66ica\x63o\x65s/\x6e\x6fti\x66\x69\x63ar\";";echo"</\x73c\x72ipt\x3e";exit;}${${"\x47\x4c\x4fB\x41\x4c\x53"}["ls\x72d\x75\x77g"]}=${${"GL\x4f\x42\x41\x4c\x53"}["v\x6d\x65v\x6b\x70s\x7arvz"]}["\x69\x64\x5f\x75\x73\x75\x61\x72i\x6f"];${$tcnxofel}=${${"GL\x4f\x42\x41\x4c\x53"}["\x64\x6c\x61\x78\x6c\x6f\x6b\x74"]};${${"\x47\x4c\x4fB\x41\x4cS"}["\x79b\x66\x65\x72\x75f\x62\x78\x6a\x69\x65"]}="\x49\x4e\x53\x45\x52T I\x4e\x54\x4f\x20n\x6f\x74\x69\x66i\x63\x61\x63oes\x20(u\x73\x75\x61\x72i\x6f\x5f\x69d,da\x74\x61,t\x69\x70o,lin\x6bf\x61\x74ur\x61,men\x73\x61g\x65m)\x20v\x61\x6c\x75e\x73 (\x27".${$hepfhrn}."\x27,'".date("Y-\x6d-d \x48:i:\x73")."\x27,'".${${"GL\x4f\x42\x41\x4c\x53"}["\x79i\x69\x62\x6d\x6b"]}."\x27,\x27\x41\x64\x6d\x69\x6e','".${${"\x47L\x4fB\x41\x4c\x53"}["y\x63b\x69\x62f\x63\x75"]}."\x27)";${$xprleuy}=$conn->prepare(${${"G\x4c\x4f\x42ALS"}["d\x67\x75\x7a\x76\x6cx\x66kcy"]});$notins->execute();echo"<s\x63ri\x70\x74 ty\x70\x65\x3d\"tex\x74/ja\x76a\x73\x63\x72i\x70t\x22>";echo"a\x6c\x65r\x74(\x22C\x6ci\x65n\x74\x65\x56\x70n \x4eo\x74\x69f\x69ca\x64\x6f\x21\x22);";echo"wi\x6e\x64o\x77.\x6co\x63at\x69on=\"\x2e./.\x2e/\x68\x6fme.ph\x70?p\x61ge=notif\x69ca\x63o\x65s/\x6e\x6f\x74if\x69\x63ar\x22;";echo"</\x73cr\x69\x70t\x3e";}
?>
Function Calls
None |
Stats
MD5 | 88c4257d3fb4ea2648c46255b24093a5 |
Eval Count | 0 |
Decode Time | 47 ms |