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\x4cS"}["\x61\x73i\x77\x78\x79\x77\x6ffi\x69"]="p\x61\x73t\x61";..

Decoded Output download

<?php ${"GLOBALS"}["asiwxywofii"]="pasta";${"GLOBALS"}["ahlrbdmzeuk"]="acao";${"GLOBALS"}["obuopci"]="id_owner";${"GLOBALS"}["yfijxrkewozi"]="sql";${"GLOBALS"}["kyqollt"]="id";${"GLOBALS"}["iubdmy"]="usip";require_once($_SERVER["DOCUMENT_ROOT"]."/config/funcoes.php");require_once($_SERVER["DOCUMENT_ROOT"]."/modais.php");${"GLOBALS"}["jnqejmsyhlf"]="acao";isLogged($sid);$khinwpsvpjh="acao";if(${${"GLOBALS"}["iubdmy"]}!==ipusuario()){expulsaVisitante();}$evqkalkol="acao";if(${$evqkalkol}=="servidor"){if(isset($_POST["excluir_servidor"])){${"GLOBALS"}["zrmscfeijjc"]="sql";$erljkjgsfhf="id_owner";${${"GLOBALS"}["kyqollt"]}=$_POST["id"];${$erljkjgsfhf}=$_POST["id_owner"];${${"GLOBALS"}["yfijxrkewozi"]}=$conn->query("DELETE FROM servidores WHERE id='$id' AND id_owner='$id_owner'");if(${${"GLOBALS"}["zrmscfeijjc"]}){echo"<script>
    alert('Servidor excluido com sucesso !');
    window.location='/app.php';
    </script>";}else{echo"<script>
        alert('Falha ao excluir servidor !');
        window.location='/app.php';
        </script>";}}else{header("location: /painel.php");}}elseif(${$khinwpsvpjh}=="payload"){if(isset($_POST["excluir_payload"])){${"GLOBALS"}["lfxnctt"]="sql";$xxugfmuhsss="id";${"GLOBALS"}["uilumfxk"]="sql";${$xxugfmuhsss}=$_POST["id"];${${"GLOBALS"}["obuopci"]}=$_POST["id_owner"];${${"GLOBALS"}["lfxnctt"]}=$conn->query("DELETE FROM payloads WHERE id='$id' AND id_owner='$id_owner'");if(${${"GLOBALS"}["uilumfxk"]}){echo"<script>
            alert('Payload excluida com sucesso !');
            window.location='/app.php';
            </script>";}else{echo"<script>
                alert('Falha ao excluir Payload !');
                window.location='/app.php';
                </script>";}}else{header("location: /painel.php");}}elseif(${${"GLOBALS"}["jnqejmsyhlf"]}=="porta"){if(isset($_POST["excluir_porta"])){$obqyidju="id";${$obqyidju}=$_POST["id"];$bgnmtxhpdpnb="id_owner";${$bgnmtxhpdpnb}=$_POST["id_owner"];$tpdjdbi="sql";${${"GLOBALS"}["yfijxrkewozi"]}=$conn->query("DELETE FROM portas WHERE id='$id' AND id_owner='$id_owner'");if(${$tpdjdbi}){echo"<script>
                alert('Porta excluida com sucesso !');
                window.location='/app.php';
                </script>";}else{echo"<script>
                    alert('Falha ao excluir Porta !');
                    window.location='/app.php';
                    </script>";}}else{header("location: /painel.php");}}elseif(${${"GLOBALS"}["ahlrbdmzeuk"]}=="usuario"){$yguumhwghk="uid";if(getOwner(${$yguumhwghk})==false){header("location: /painel.php");}if(isset($_GET["id"])){$eswgpkhrwx="id";${$eswgpkhrwx}=$_GET["id"];${${"GLOBALS"}["asiwxywofii"]}=getData("pasta_att",${${"GLOBALS"}["kyqollt"]});${"GLOBALS"}["tdqswfgugl"]="sql";${${"GLOBALS"}["tdqswfgugl"]}=$conn->query("SELECT nivel FROM usuarios WHERE id='$id'")->fetch();if(${${"GLOBALS"}["yfijxrkewozi"]}[0]>=3){echo"<script>
            alert('Voc no pode excluir o dono do site !');
            window.location='/adicionar.php';
            </script>";}else{$conn->query("DELETE FROM usuarios WHERE id='$id'");$conn->query("DELETE FROM configuracoes WHERE id_owner='$id'");$conn->query("DELETE FROM servidores WHERE id_owner='$id'");$conn->query("DELETE FROM payloads WHERE id_owner='$id'");$conn->query("DELETE FROM portas WHERE id_owner='$id'");${${"GLOBALS"}["yfijxrkewozi"]}=$conn->query("DELETE FROM mensagens WHERE id_owner='$id'");delTree("update/$pasta");if(${${"GLOBALS"}["yfijxrkewozi"]}){echo"<script>
                    alert('Usurio excluido com sucesso !');
                    window.location='/adicionar.php';
                    </script>";}else{echo"<script>
                        alert('Falha ao excluir usurio !');
                        window.location='/adicionar.php';
                        </script>";}}}else{header("location: /painel.php");}} 
?>

Did this file decode correctly?

Original Code

<?php ${"G\x4c\x4f\x42\x41\x4cS"}["\x61\x73i\x77\x78\x79\x77\x6ffi\x69"]="p\x61\x73t\x61";${"\x47\x4cOB\x41LS"}["\x61h\x6c\x72\x62dm\x7a\x65\x75k"]="aca\x6f";${"GL\x4f\x42A\x4cS"}["o\x62\x75\x6f\x70\x63\x69"]="\x69d\x5f\x6f\x77\x6ee\x72";${"\x47\x4cO\x42\x41\x4c\x53"}["y\x66i\x6a\x78rke\x77\x6fz\x69"]="\x73\x71\x6c";${"\x47L\x4f\x42AL\x53"}["\x6byqo\x6cl\x74"]="i\x64";${"\x47\x4c\x4fB\x41\x4cS"}["i\x75\x62\x64\x6d\x79"]="\x75\x73ip";require_once($_SERVER["\x44O\x43U\x4dEN\x54_\x52\x4f\x4f\x54"]."/c\x6f\x6efi\x67/\x66\x75\x6e\x63\x6fes\x2e\x70\x68\x70");require_once($_SERVER["\x44\x4fC\x55\x4dENT_\x52\x4fO\x54"]."/modai\x73.php");${"\x47\x4c\x4f\x42ALS"}["j\x6e\x71\x65\x6a\x6dsy\x68\x6c\x66"]="a\x63\x61\x6f";isLogged($sid);$khinwpsvpjh="\x61c\x61\x6f";if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69u\x62\x64\x6dy"]}!==ipusuario()){expulsaVisitante();}$evqkalkol="\x61c\x61\x6f";if(${$evqkalkol}=="\x73e\x72\x76id\x6f\x72"){if(isset($_POST["exclu\x69\x72_s\x65r\x76\x69d\x6f\x72"])){${"\x47\x4c\x4f\x42AL\x53"}["\x7ar\x6d\x73\x63\x66\x65\x69\x6ajc"]="\x73\x71l";$erljkjgsfhf="\x69\x64\x5fo\x77\x6e\x65\x72";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6b\x79\x71\x6fl\x6c\x74"]}=$_POST["i\x64"];${$erljkjgsfhf}=$_POST["id\x5fowner"];${${"\x47\x4c\x4fBA\x4c\x53"}["\x79f\x69\x6a\x78\x72kew\x6fz\x69"]}=$conn->query("\x44EL\x45T\x45 FRO\x4d\x20\x73e\x72v\x69\x64\x6fres W\x48\x45\x52E\x20id\x3d\x27$id\x27\x20\x41\x4e\x44\x20i\x64\x5fo\x77ner='$id_owner\x27");if(${${"\x47\x4c\x4f\x42AL\x53"}["\x7ar\x6d\x73\x63fe\x69jj\x63"]}){echo"<s\x63rip\x74>\n  \x20\x20a\x6cer\x74('\x53ervidor\x20e\x78\x63lu\x69\x64o\x20com \x73uce\x73so\x20!\x27)\x3b\n  \x20\x20\x77in\x64\x6fw.l\x6fc\x61ti\x6fn\x3d'/app\x2e\x70\x68p\x27\x3b\n    \x3c/\x73crip\x74>";}else{echo"<\x73cr\x69p\x74\x3e\n \x20\x20 \x20\x20\x20 al\x65\x72t(\x27Fa\x6ch\x61 a\x6f e\x78\x63\x6cui\x72 \x73e\x72\x76id\x6f\x72\x20!\x27);\n\x20\x20    \x20\x20w\x69ndo\x77.\x6c\x6f\x63\x61t\x69on='/\x61\x70\x70.p\x68\x70'\x3b\n  \x20  \x20\x20\x20</\x73cri\x70\x74\x3e";}}else{header("l\x6f\x63\x61\x74i\x6fn:\x20/\x70ai\x6ee\x6c.p\x68p");}}elseif(${$khinwpsvpjh}=="\x70ay\x6c\x6fad"){if(isset($_POST["\x65\x78\x63luir\x5fpa\x79\x6c\x6f\x61\x64"])){${"\x47\x4c\x4fBA\x4c\x53"}["l\x66\x78\x6e\x63t\x74"]="\x73ql";$xxugfmuhsss="\x69\x64";${"G\x4c\x4f\x42\x41L\x53"}["\x75\x69l\x75\x6dfx\x6b"]="s\x71\x6c";${$xxugfmuhsss}=$_POST["i\x64"];${${"G\x4cO\x42A\x4c\x53"}["\x6f\x62\x75\x6fp\x63i"]}=$_POST["\x69\x64\x5fo\x77\x6ee\x72"];${${"\x47\x4c\x4fB\x41L\x53"}["lf\x78n\x63\x74\x74"]}=$conn->query("\x44EL\x45\x54E \x46\x52\x4fM\x20\x70a\x79\x6coad\x73\x20\x57\x48E\x52E\x20i\x64\x3d\x27$id'\x20A\x4eD i\x64_ow\x6eer\x3d\x27$id_owner'");if(${${"\x47\x4c\x4fB\x41\x4c\x53"}["u\x69\x6cum\x66x\x6b"]}){echo"<\x73\x63ri\x70\x74>\n \x20   \x20\x20  \x20\x20 \x61\x6ce\x72t(\x27\x50a\x79l\x6f\x61d\x20e\x78\x63\x6c\x75\x69da\x20com \x73\x75ce\x73\x73o \x21\x27)\x3b\n \x20\x20\x20   \x20\x20   \x77i\x6edow\x2el\x6f\x63at\x69on\x3d'/\x61\x70\x70\x2e\x70h\x70\x27;\n   \x20   \x20\x20\x20 \x20\x3c/s\x63rip\x74\x3e";}else{echo"\x3c\x73crip\x74\x3e\n \x20 \x20\x20\x20\x20\x20\x20 \x20\x20  \x20 a\x6ce\x72\x74('F\x61\x6c\x68a a\x6f exclui\x72 \x50a\x79load\x20!\x27);\n   \x20\x20\x20\x20  \x20\x20 \x20  \x20\x77in\x64\x6fw\x2e\x6coc\x61ti\x6f\x6e=\x27/a\x70\x70\x2ep\x68\x70'\x3b\n \x20    \x20\x20\x20\x20  \x20 \x20\x20</sc\x72ip\x74\x3e";}}else{header("\x6coc\x61tion: /p\x61\x69ne\x6c.ph\x70");}}elseif(${${"\x47LOB\x41\x4c\x53"}["\x6an\x71\x65\x6am\x73y\x68\x6c\x66"]}=="po\x72t\x61"){if(isset($_POST["e\x78\x63lu\x69\x72_port\x61"])){$obqyidju="\x69d";${$obqyidju}=$_POST["\x69\x64"];$bgnmtxhpdpnb="\x69\x64\x5f\x6fw\x6e\x65r";${$bgnmtxhpdpnb}=$_POST["id_ow\x6e\x65r"];$tpdjdbi="\x73q\x6c";${${"\x47\x4c\x4f\x42\x41LS"}["y\x66\x69jx\x72k\x65wo\x7ai"]}=$conn->query("D\x45\x4cET\x45 \x46R\x4fM\x20por\x74a\x73 \x57H\x45\x52\x45 i\x64\x3d\x27$id'\x20\x41\x4e\x44 \x69\x64_\x6fw\x6ee\x72='$id_owner\x27");if(${$tpdjdbi}){echo"<s\x63\x72\x69pt>\n\x20 \x20\x20  \x20   \x20\x20    \x61l\x65\x72t(\x27P\x6fr\x74a\x20exc\x6cuida \x63\x6f\x6d \x73u\x63e\x73\x73\x6f !');\n \x20\x20  \x20 \x20\x20      \x20\x77\x69ndo\x77.\x6c\x6f\x63a\x74io\x6e\x3d'/\x61\x70p\x2ep\x68\x70'\x3b\n\x20\x20\x20 \x20\x20\x20   \x20  \x20\x20 \x3c/\x73\x63\x72\x69pt>";}else{echo"\x3c\x73\x63\x72\x69pt>\n\x20\x20\x20\x20\x20  \x20 \x20 \x20\x20\x20\x20\x20\x20\x20\x20\x20al\x65rt('Falha\x20\x61o\x20ex\x63\x6c\x75i\x72 \x50o\x72ta\x20\x21\x27);\n \x20\x20\x20\x20   \x20\x20    \x20 \x20  \x20w\x69\x6ed\x6fw\x2e\x6c\x6f\x63\x61\x74\x69on\x3d'/\x61p\x70.ph\x70';\n\x20\x20 \x20 \x20   \x20\x20\x20\x20  \x20 \x20  </\x73c\x72\x69\x70\x74\x3e";}}else{header("l\x6f\x63a\x74\x69on: /p\x61\x69nel.\x70\x68\x70");}}elseif(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x61\x68l\x72b\x64\x6dz\x65u\x6b"]}=="\x75\x73\x75ari\x6f"){$yguumhwghk="\x75\x69d";if(getOwner(${$yguumhwghk})==false){header("\x6coc\x61\x74i\x6f\x6e:\x20/\x70\x61i\x6eel.\x70\x68p");}if(isset($_GET["i\x64"])){$eswgpkhrwx="\x69\x64";${$eswgpkhrwx}=$_GET["\x69\x64"];${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x61\x73i\x77xyw\x6f\x66\x69\x69"]}=getData("\x70a\x73ta_att",${${"\x47LO\x42\x41\x4c\x53"}["\x6b\x79\x71o\x6c\x6c\x74"]});${"\x47\x4c\x4f\x42\x41\x4cS"}["\x74\x64\x71sw\x66g\x75g\x6c"]="\x73ql";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x74\x64q\x73wfg\x75\x67\x6c"]}=$conn->query("\x53\x45\x4c\x45CT\x20\x6eiv\x65\x6c FR\x4f\x4d \x75suario\x73 W\x48\x45RE\x20\x69\x64\x3d'$id\x27")->fetch();if(${${"G\x4c\x4fB\x41\x4c\x53"}["\x79\x66\x69j\x78\x72k\x65woz\x69"]}[0]>=3){echo"<s\x63rip\x74\x3e\n  \x20 \x20\x20\x20\x20\x20   al\x65\x72t('V\x6fc \x6eo \x70\x6f\x64e \x65xc\x6c\x75i\x72 \x6f \x64\x6f\x6e\x6f\x20\x64o\x20\x73i\x74e\x20!\x27)\x3b\n \x20     \x20\x20\x20\x20\x20\x77\x69\x6edo\x77\x2el\x6fc\x61t\x69\x6fn\x3d\x27/\x61\x64\x69c\x69on\x61\x72.\x70h\x70\x27;\n\x20\x20  \x20  \x20\x20  \x20</s\x63\x72\x69p\x74>";}else{$conn->query("D\x45LET\x45\x20F\x52\x4fM \x75suar\x69\x6f\x73\x20W\x48E\x52E id=\x27$id\x27");$conn->query("\x44ELE\x54E \x46R\x4fM\x20\x63on\x66\x69\x67\x75\x72\x61\x63oe\x73\x20\x57H\x45\x52E\x20\x69d_o\x77\x6e\x65r=\x27$id'");$conn->query("\x44E\x4cE\x54E\x20F\x52OM se\x72v\x69d\x6fres\x20WHE\x52\x45\x20\x69d\x5fo\x77ner=\x27$id'");$conn->query("D\x45\x4c\x45\x54E \x46\x52\x4f\x4d\x20p\x61\x79\x6c\x6fa\x64s WHER\x45\x20i\x64\x5f\x6f\x77n\x65r='$id'");$conn->query("DELE\x54\x45\x20\x46R\x4f\x4d\x20\x70o\x72\x74\x61\x73 W\x48E\x52E \x69d_\x6fw\x6e\x65r=\x27$id'");${${"G\x4c\x4fB\x41\x4c\x53"}["\x79\x66\x69j\x78r\x6b\x65wo\x7a\x69"]}=$conn->query("DELE\x54E F\x52OM\x20m\x65\x6e\x73\x61gens W\x48\x45RE\x20\x69\x64_owner=\x27$id'");delTree("up\x64at\x65/$pasta");if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["yfijxr\x6b\x65\x77\x6f\x7a\x69"]}){echo"<\x73c\x72\x69\x70t>\n\x20\x20 \x20 \x20\x20  \x20\x20\x20\x20  \x20\x20   a\x6ce\x72t(\x27\x55\x73u\x72\x69\x6f\x20exc\x6cu\x69do \x63om\x20\x73ucesso\x20!\x27);\n \x20   \x20\x20 \x20 \x20  \x20  \x20   wind\x6f\x77.\x6coc\x61tio\x6e\x3d\x27/\x61d\x69\x63\x69o\x6e\x61\x72.p\x68\x70';\n\x20  \x20\x20   \x20\x20\x20  \x20\x20  \x20\x20 \x3c/s\x63\x72i\x70t>";}else{echo"\x3cs\x63ript>\n\x20\x20\x20 \x20 \x20 \x20 \x20\x20  \x20  \x20\x20\x20  \x20 \x61\x6cert('Fa\x6c\x68\x61 ao \x65xc\x6c\x75\x69r us\x75\x72i\x6f\x20\x21');\n\x20\x20       \x20\x20\x20\x20    \x20 \x20\x20 \x20 w\x69\x6e\x64\x6f\x77.loc\x61\x74\x69\x6fn\x3d'/\x61dic\x69\x6f\x6ear.ph\x70'\x3b\n\x20\x20   \x20 \x20 \x20\x20\x20 \x20 \x20\x20\x20\x20\x20   \x20\x3c/\x73\x63ri\x70\x74\x3e";}}}else{header("\x6c\x6f\x63at\x69\x6f\x6e:\x20/pai\x6eel\x2e\x70\x68\x70");}}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'asiwxywofii', 'value': 'pasta'}, {'key': 'ahlrbdmzeuk', 'value': 'acao'}, {'key': 'obuopci', 'value': 'id_owner'}, {'key': 'yfijxrkewozi', 'value': 'sql'}, {'key': 'kyqollt', 'value': 'id'}, {'key': 'iubdmy', 'value': 'usip'}]

Stats

MD5 0e603c0f2cfc50b6de1e986ad45ccd8e
Eval Count 0
Decode Time 57 ms