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\x42\x41\x4cS"}["\x62\x64\x67\x70\x65\x69\x75\x6c\x68\x76"]="\x72\x65..

Decoded Output download

<?php ${"GLOBALS"}["bdgpeiulhv"]="response";${"GLOBALS"}["ofeyamx"]="license_key";if(isset($_REQUEST["activate_license"])){$npekpuytqnj="response";$ogsqffmnrgx="api_params";${"GLOBALS"}["rzwgxoj"]="query";$ylnvaa="license_data";${"GLOBALS"}["spfxwkiglwj"]="query";$mrotydg="response";$dvnyuss="license_key";$bppuofexmi="api_params";${$dvnyuss}=$_REQUEST["secret_key"];${$ogsqffmnrgx}=array("slm_action"=>"slm_activate","secret_key"=>BHM_SECRET_ACTIVATION,"license_key"=>${${"GLOBALS"}["ofeyamx"]},"registered_domain"=>$_SERVER["SERVER_NAME"],"item_reference"=>urlencode(time()),);${${"GLOBALS"}["rzwgxoj"]}=esc_url_raw(add_query_arg(${$bppuofexmi},BHM_URL_SERVER));${$mrotydg}=wp_remote_get(${${"GLOBALS"}["spfxwkiglwj"]},array("timeout"=>60,"sslverify"=>false));if(is_wp_error(${$npekpuytqnj})){echo"Server is currently unreachable. ";}${$ylnvaa}=json_decode(wp_remote_retrieve_body(${${"GLOBALS"}["bdgpeiulhv"]}));if($license_data->result=="success"){${"GLOBALS"}["fbhmebmup"]="license_key";update_option("secret_key",${${"GLOBALS"}["fbhmebmup"]});update_option("activated","1");echo "        <script type="text/javascript">location.reload();</script>
        ";}else{update_option("activated","0");echo "                <div class="notice notice-warning">
                    <p>Licence key error</p>
                </div>
        ";}}if(get_option("activated")=="0"){echo "<div class="overlay-h\">
    <img src="";echo get_admin_url();echo "/images/loading.gif\" alt="loading">
</div>
<div class=\"wrap">
	<div class="left-part">
		<form action="\" method=\"post">
	        <table class=\"form-table\">
	            <tr>
	                <th style="width:100px;\"><label for="secret_key">Cl de licence</label></th>
	                <td ><input class="regular-text" type="text" id=\"secret_key" name=\"secret_key"  value=\"";echo get_option("secret_key");echo "\" ></td>
	            </tr>
	        </table>
	        <p class="submit">
	            <input type=\"submit" name=\"activate_license\" value="Activate\" class=\"button-primary\" />
	        </p>
	    </form>
	</div>
	<div class=\"right-part">
		<img src="";echo plugin_dir_url(__FILE__);echo "ban-logo-dark.jpg">
	</div>		
</div>
";}else{require_once dirname(__FILE__)."/settings.php";} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4f\x42\x41\x4cS"}["\x62\x64\x67\x70\x65\x69\x75\x6c\x68\x76"]="\x72\x65s\x70\x6f\x6e\x73e";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["o\x66\x65y\x61\x6d\x78"]="\x6c\x69\x63\x65\x6es\x65_\x6be\x79";if(isset($_REQUEST["a\x63tiv\x61t\x65_l\x69\x63e\x6e\x73e"])){$npekpuytqnj="r\x65\x73\x70\x6f\x6e\x73\x65";$ogsqffmnrgx="\x61\x70\x69\x5f\x70a\x72\x61\x6d\x73";${"\x47\x4cO\x42AL\x53"}["\x72\x7a\x77\x67\x78\x6f\x6a"]="\x71\x75\x65r\x79";$ylnvaa="l\x69\x63\x65n\x73\x65\x5f\x64\x61t\x61";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x73p\x66xw\x6bigl\x77\x6a"]="\x71ue\x72y";$mrotydg="\x72esp\x6f\x6es\x65";$dvnyuss="\x6c\x69\x63\x65\x6e\x73\x65_\x6b\x65\x79";$bppuofexmi="\x61\x70i\x5fp\x61\x72\x61\x6d\x73";${$dvnyuss}=$_REQUEST["sec\x72et_key"];${$ogsqffmnrgx}=array("slm\x5f\x61\x63\x74\x69\x6fn"=>"slm_ac\x74i\x76\x61te","\x73\x65\x63\x72\x65\x74_k\x65y"=>BHM_SECRET_ACTIVATION,"\x6c\x69ce\x6ese_k\x65y"=>${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6f\x66\x65\x79\x61\x6dx"]},"registe\x72\x65d\x5fdom\x61i\x6e"=>$_SERVER["\x53ER\x56\x45\x52\x5f\x4eA\x4d\x45"],"\x69t\x65\x6d\x5f\x72e\x66er\x65\x6ec\x65"=>urlencode(time()),);${${"G\x4c\x4fBA\x4c\x53"}["\x72z\x77\x67x\x6f\x6a"]}=esc_url_raw(add_query_arg(${$bppuofexmi},BHM_URL_SERVER));${$mrotydg}=wp_remote_get(${${"\x47\x4cO\x42\x41\x4cS"}["s\x70\x66\x78\x77\x6bi\x67\x6cwj"]},array("\x74\x69m\x65o\x75t"=>60,"s\x73lve\x72\x69fy"=>false));if(is_wp_error(${$npekpuytqnj})){echo"\x53\x65r\x76\x65\x72\x20\x69s c\x75rre\x6etl\x79\x20\x75nr\x65achab\x6c\x65\x2e\x20";}${$ylnvaa}=json_decode(wp_remote_retrieve_body(${${"G\x4cOB\x41\x4c\x53"}["b\x64\x67\x70\x65\x69\x75l\x68\x76"]}));if($license_data->result=="\x73\x75\x63\x63\x65s\x73"){${"GLO\x42\x41\x4c\x53"}["\x66\x62hm\x65\x62\x6d\x75p"]="\x6c\x69c\x65n\x73\x65\x5f\x6b\x65\x79";update_option("\x73ec\x72et_\x6b\x65y",${${"\x47\x4cOB\x41\x4cS"}["\x66b\x68\x6de\x62\x6d\x75\x70"]});update_option("\x61\x63ti\x76ated","\x31");echo "\x20 \x20  \x20 \x20\x3c\x73cript t\x79\x70e=\x22t\x65xt/j\x61v\x61\x73cript\x22>\x6c\x6f\x63a\x74\x69\x6f\x6e.r\x65l\x6f\x61d();\x3c/s\x63ri\x70t>\n  \x20\x20\x20\x20\x20\x20";}else{update_option("act\x69va\x74\x65d","\x30");echo "\x20 \x20   \x20\x20\x20\x20\x20\x20 \x20\x20 \x3cdiv cla\x73s\x3d\x22\x6e\x6f\x74\x69\x63\x65 \x6e\x6ft\x69c\x65-warni\x6eg\x22>\n  \x20\x20 \x20\x20\x20 \x20\x20\x20\x20\x20    \x20 \x3cp>\x4ci\x63e\x6e\x63\x65 k\x65\x79\x20e\x72r\x6f\x72</p\x3e\n\x20 \x20       \x20  \x20\x20 \x3c/\x64i\x76>\n \x20\x20   \x20 ";}}if(get_option("a\x63t\x69\x76\x61t\x65\x64")=="\x30"){echo "<di\x76\x20cla\x73s=\x22\x6f\x76\x65\x72lay-h\">\n\x20  \x20<img \x73\x72c\x3d\x22";echo get_admin_url();echo "/\x69\x6dag\x65s/\x6c\x6f\x61di\x6eg\x2e\x67\x69\x66\"\x20\x61\x6ct\x3d\x22l\x6fa\x64i\x6e\x67\x22>\n\x3c/di\x76>\n<div \x63\x6ca\x73s\x3d\"\x77\x72\x61p\x22>\n\t<d\x69\x76\x20cl\x61\x73s\x3d\x22left-\x70a\x72\x74\x22\x3e\n\t\t<fo\x72\x6d\x20action\x3d\x22\"\x20\x6d\x65t\x68od=\"p\x6fst\x22>\n\t\x20\x20\x20\x20\x20  \x20<\x74abl\x65\x20cla\x73s\x3d\"f\x6fr\x6d-\x74\x61b\x6c\x65\"\x3e\n\t  \x20\x20 \x20\x20 \x20\x20\x20 <\x74\x72>\n\t\x20 \x20\x20\x20 \x20\x20      \x20\x20<\x74\x68 s\x74yl\x65=\x22wi\x64t\x68:\x31\x300\x70\x78\x3b\">\x3c\x6cabe\x6c \x66\x6f\x72=\x22s\x65\x63\x72\x65\x74_\x6be\x79\x22\x3eC\x6c\x20\x64\x65\x20l\x69c\x65\x6e\x63\x65\x3c/la\x62\x65l></\x74\x68\x3e\n\t  \x20\x20     \x20\x20 \x20\x20\x20 \x3ctd\x20><input cl\x61\x73s=\x22\x72\x65gul\x61r-te\x78t\x22\x20\x74yp\x65=\x22te\x78t\x22 \x69d=\"s\x65\x63\x72e\x74_\x6b\x65\x79\x22 nam\x65\x3d\"\x73ec\x72e\x74\x5fk\x65\x79\x22\x20\x20v\x61l\x75\x65=\"";echo get_option("s\x65c\x72e\x74\x5fkey");echo "\" >\x3c/\x74d>\n\t \x20\x20  \x20\x20\x20 \x20 \x20</\x74r>\n\t \x20  \x20   \x3c/t\x61b\x6ce>\n\t \x20\x20  \x20 \x20<p \x63la\x73\x73\x3d\x22\x73ubm\x69\x74\x22>\n\t\x20 \x20  \x20\x20\x20 \x20\x20\x20<inpu\x74 t\x79p\x65=\"\x73\x75\x62\x6di\x74\x22\x20\x6e\x61\x6de=\"acti\x76\x61\x74\x65_lic\x65ns\x65\" v\x61\x6cu\x65=\x22A\x63t\x69\x76\x61t\x65\" \x63\x6ca\x73s\x3d\"\x62\x75\x74\x74\x6f\x6e-p\x72im\x61ry\" /\x3e\n\t\x20\x20\x20  \x20\x20 \x3c/\x70\x3e\n\t\x20\x20\x20 </\x66o\x72\x6d\x3e\n\t</\x64\x69v\x3e\n\t<\x64iv\x20\x63lass=\"\x72ig\x68t-p\x61r\x74\x22\x3e\n\t\t\x3ci\x6dg\x20\x73\x72c=\x22";echo plugin_dir_url(__FILE__);echo "ban-\x6co\x67\x6f-\x64\x61r\x6b.jp\x67\x22>\n\t\x3c/\x64\x69v>\t\t\n</d\x69\x76>\n";}else{require_once dirname(__FILE__)."/sett\x69n\x67s\x2e\x70h\x70";}
?>

Function Calls

get_option 1

Variables

GLOBALS [{'key': 'bdgpeiulhv', 'value': 'response'}, {'key': 'ofeyamx', 'value': 'license_key'}]

Stats

MD5 981773ca926996207f633a0f943d63e3
Eval Count 0
Decode Time 99 ms