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\x4c\x4f\x42\x41\x4c\x53"}["\x73\x62\x76\x65\x62\x63xu\x68d\x67"]="\x49n\x73\x65..

Decoded Output download

<?php ${"GLOBALS"}["sbvebcxuhdg"]="InsertAcesso";${"GLOBALS"}["otrtyl"]="add";${"GLOBALS"}["vrxgqrdc"]="SQLAcesso";require_once("../../../pages/system/seguranca.php");require_once("../../../pages/system/config.php");protegePagina("donoadmin");if((isset($_POST["usuario"]))and(isset($_POST["qtd"]))and($_POST["servidor"]!=0)){$bhxqhtmcjt="SQLAcesso";if(!is_numeric($_POST["val"])){echo"<script type=\"text/javascript">";echo"alert("Somente valores numericos!");";echo"window.location=\"../../home.php?page=usuario/perfil&id_usuario=".$_POST["usuario"]." \";";echo"</script>";exit;}if($_POST["val"]==0){echo"<script type="text/javascript\">";echo"alert(\"Somente valores maiores que 0!\");";echo"window.location=\"../../home.php?page=usuario/perfil&id_usuario=".$_POST["usuario"]." \";";echo"</script>";exit;}${$bhxqhtmcjt}="select * from acesso_servidor WHERE id_servidor = '".$_POST["servidor"]."'
and id_usuario='".$_POST["usuario"]."'  ";${${"GLOBALS"}["vrxgqrdc"]}=$conn->prepare(${${"GLOBALS"}["vrxgqrdc"]});$SQLAcesso->execute();if(($SQLAcesso->rowCount())>0){echo"<script type="text/javascript">";echo"alert("Servidor ja esta salvo!");";echo"window.location=\"../../home.php?page=usuario/listar\";";echo"</script>";}else{${"GLOBALS"}["mpyyxddvrz"]="InsertAcesso";$qntgjdltk="add";${${"GLOBALS"}["otrtyl"]}=date("Y-m-d",strtotime("+ ".$_POST["val"]." days"));${"GLOBALS"}["otrxsdiopce"]="InsertAcesso";${${"GLOBALS"}["sbvebcxuhdg"]}="INSERT INTO acesso_servidor (id_servidor, id_usuario, qtd,validade)
VALUES ('".$_POST["servidor"]."', '".$_POST["usuario"]."', '".$_POST["qtd"]."','".${$qntgjdltk}."'  )  ";${${"GLOBALS"}["mpyyxddvrz"]}=$conn->prepare(${${"GLOBALS"}["otrxsdiopce"]});$InsertAcesso->execute();echo"<script type=\"text/javascript">";echo"alert(\"Adicionado com sucesso!");";echo"window.location="../../home.php?page=usuario/perfil&id_usuario=".$_POST["usuario"]." ";";echo"</script>";}}else{echo"<script type="text/javascript\">";echo"alert(\"Preencha todos os campos!");";echo"window.location=\"../../home.php?page=usuario/perfil&id_usuario=".$_POST["usuario"]." \";";echo"</script>";} 
?>

Did this file decode correctly?

Original Code

<?php ${"G\x4c\x4f\x42\x41\x4c\x53"}["\x73\x62\x76\x65\x62\x63xu\x68d\x67"]="\x49n\x73\x65r\x74\x41c\x65\x73\x73o";${"\x47L\x4fB\x41\x4c\x53"}["\x6f\x74\x72t\x79l"]="\x61d\x64";${"G\x4cO\x42\x41\x4cS"}["\x76r\x78\x67qrd\x63"]="\x53\x51L\x41\x63e\x73so";require_once("../\x2e./.\x2e/p\x61\x67e\x73/sys\x74e\x6d/\x73\x65\x67\x75\x72\x61n\x63a\x2e\x70hp");require_once("../../\x2e./\x70\x61\x67\x65\x73/sy\x73t\x65\x6d/con\x66ig.p\x68\x70");protegePagina("don\x6fadm\x69n");if((isset($_POST["us\x75a\x72\x69o"]))and(isset($_POST["q\x74d"]))and($_POST["s\x65\x72\x76i\x64\x6fr"]!=0)){$bhxqhtmcjt="\x53\x51\x4c\x41\x63\x65s\x73\x6f";if(!is_numeric($_POST["va\x6c"])){echo"\x3csc\x72ipt\x20\x74ype=\"\x74ext/j\x61v\x61\x73c\x72\x69p\x74\x22\x3e";echo"\x61ler\x74(\x22\x53\x6fm\x65\x6et\x65\x20\x76alor\x65s\x20n\x75m\x65\x72ic\x6fs\x21\x22)\x3b";echo"w\x69n\x64ow\x2el\x6fca\x74\x69\x6f\x6e=\"../\x2e./\x68\x6fme\x2eph\x70?\x70a\x67\x65\x3dusua\x72\x69o/p\x65\x72fil\x26\x69\x64\x5fus\x75\x61\x72\x69o=".$_POST["\x75s\x75\x61rio"]." \";";echo"</sc\x72\x69pt\x3e";exit;}if($_POST["v\x61\x6c"]==0){echo"<\x73c\x72i\x70t\x20t\x79pe=\x22\x74ex\x74/\x6aavasc\x72ip\x74\">";echo"ale\x72t(\"S\x6fment\x65\x20\x76alo\x72es m\x61\x69\x6f\x72\x65s \x71\x75e\x200\x21\");";echo"\x77ind\x6fw.\x6coca\x74\x69on\x3d\"\x2e\x2e/.\x2e/ho\x6d\x65.\x70\x68\x70?\x70a\x67\x65=usua\x72\x69o/pe\x72f\x69l&\x69\x64_us\x75\x61ri\x6f\x3d".$_POST["\x75s\x75\x61\x72i\x6f"]." \"\x3b";echo"</\x73\x63r\x69pt>";exit;}${$bhxqhtmcjt}="s\x65le\x63\x74\x20*\x20\x66rom\x20ace\x73so\x5fs\x65r\x76\x69\x64\x6f\x72\x20WH\x45RE i\x64\x5f\x73e\x72\x76\x69d\x6fr \x3d '".$_POST["\x73\x65\x72v\x69\x64\x6f\x72"]."\x27\nand i\x64_\x75sua\x72io\x3d\x27".$_POST["\x75su\x61\x72\x69o"]."'\x20\x20";${${"\x47\x4c\x4fB\x41LS"}["\x76\x72\x78\x67\x71\x72\x64c"]}=$conn->prepare(${${"\x47L\x4fB\x41\x4cS"}["\x76\x72\x78\x67\x71r\x64\x63"]});$SQLAcesso->execute();if(($SQLAcesso->rowCount())>0){echo"<\x73\x63\x72i\x70\x74\x20t\x79pe\x3d\x22t\x65xt/j\x61v\x61\x73c\x72i\x70t\x22>";echo"ale\x72\x74(\x22\x53\x65rv\x69\x64or j\x61 e\x73\x74a salvo\x21\x22)\x3b";echo"\x77\x69\x6e\x64o\x77.\x6c\x6fc\x61\x74io\x6e\x3d\"\x2e\x2e/\x2e\x2e/h\x6f\x6de\x2e\x70\x68p?\x70a\x67e\x3d\x75\x73uario/li\x73\x74\x61\x72\"\x3b";echo"\x3c/sc\x72i\x70t>";}else{${"G\x4c\x4f\x42\x41\x4cS"}["\x6d\x70\x79\x79\x78\x64dvrz"]="\x49ns\x65\x72t\x41ces\x73\x6f";$qntgjdltk="ad\x64";${${"GL\x4f\x42\x41\x4c\x53"}["\x6ft\x72\x74\x79\x6c"]}=date("Y-\x6d-d",strtotime("+ ".$_POST["val"]."\x20da\x79s"));${"\x47L\x4fB\x41\x4cS"}["\x6ftrxs\x64i\x6fp\x63e"]="Ins\x65\x72\x74\x41\x63e\x73s\x6f";${${"\x47\x4cO\x42\x41LS"}["s\x62v\x65b\x63\x78\x75h\x64\x67"]}="I\x4e\x53\x45RT \x49\x4e\x54\x4f a\x63\x65\x73\x73o_\x73er\x76\x69\x64\x6f\x72 (i\x64\x5f\x73er\x76\x69dor, i\x64_u\x73\x75\x61\x72\x69o, qt\x64,\x76a\x6c\x69\x64\x61d\x65)\nV\x41L\x55\x45S\x20(\x27".$_POST["s\x65r\x76i\x64\x6fr"]."\x27, '".$_POST["us\x75a\x72io"]."',\x20\x27".$_POST["q\x74d"]."\x27,'".${$qntgjdltk}."\x27\x20 )\x20\x20";${${"G\x4cO\x42\x41L\x53"}["\x6d\x70y\x79xd\x64\x76\x72\x7a"]}=$conn->prepare(${${"\x47\x4c\x4fB\x41\x4cS"}["\x6f\x74\x72x\x73di\x6fp\x63e"]});$InsertAcesso->execute();echo"<s\x63\x72\x69p\x74 type=\"t\x65x\x74/\x6aa\x76\x61scrip\x74\x22>";echo"\x61\x6ce\x72t(\"Ad\x69\x63io\x6eado\x20co\x6d\x20suc\x65\x73s\x6f\x21\x22)\x3b";echo"\x77i\x6e\x64\x6f\x77.\x6coc\x61\x74ion\x3d\x22../../\x68o\x6d\x65.\x70\x68\x70?p\x61g\x65=u\x73uari\x6f/pe\x72fil&id_u\x73\x75ar\x69\x6f=".$_POST["u\x73uar\x69\x6f"]."\x20\x22;";echo"\x3c/\x73\x63rip\x74>";}}else{echo"\x3cs\x63rip\x74 t\x79pe=\x22\x74\x65\x78\x74/javas\x63rip\x74\">";echo"\x61\x6ce\x72\x74(\"Pr\x65\x65nch\x61 \x74o\x64os\x20os c\x61\x6d\x70os\x21\x22);";echo"\x77\x69ndo\x77.\x6c\x6f\x63\x61\x74\x69on\x3d\"\x2e\x2e/\x2e./ho\x6de.\x70\x68\x70?\x70\x61\x67e=u\x73\x75ar\x69\x6f/\x70\x65\x72fi\x6c\x26\x69\x64\x5fu\x73ua\x72io=".$_POST["u\x73uar\x69o"]." \"\x3b";echo"</s\x63r\x69\x70\x74>";}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'sbvebcxuhdg', 'value': 'InsertAcesso'}, {'key': 'otrtyl', 'value': 'add'}, {'key': 'vrxgqrdc', 'value': 'SQLAcesso'}]

Stats

MD5 45cf16dcaad9e90b57219936c5886560
Eval Count 0
Decode Time 82 ms