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 ${"GLOB\x41\x4cS"}["\x65\x61\x6a\x6d\x77\x73a\x74b\x6a\x68"]="\x72\x65sp\x6f\x6e\x73..

Decoded Output download

<?php ${"GLOBALS"}["eajmwsatbjh"]="response";${"GLOBALS"}["thrkntilppd"]="license_data";${"GLOBALS"}["ksnhtuyge"]="query";${"GLOBALS"}["lpmcvxe"]="api_params";${"GLOBALS"}["ndfqym"]="line";${"GLOBALS"}["yqmifpbt"]="filename";${"GLOBALS"}["nczehyfkq"]="data";${"GLOBALS"}["wurctesvgu"]="dir";define("YOUR_SPECIAL_SECRET_KEY","600c85efa18b92.47920446");define("YOUR_LICENSE_SERVER_URL","https://wp-boom.com");define("YOUR_ITEM_REFERENCE","WPB-Checker");add_action("admin_action_YJ_intercept","yj_admin_action");function yj_admin_action(){wp_redirect($_SERVER["PHP_SELF"]);exit();}add_action("admin_menu","yj_admin_menu");function yj_admin_menu(){add_menu_page("WPB-Checker","WPB-Checker","manage_options","wpb-checker","yj_do_page");add_submenu_page("wpb-checker","WPB-Checker license","License","manage_options","wpb-checker-license","yj_do_license");}function yj_do_page(){$uyhiwkr="api_params";${$uyhiwkr}=array("slm_action"=>"slm_check","secret_key"=>"600c85efa18b92.47920446","license_key"=>get_option("sample_license_key"),);include"form-search.php";if(isset($_GET["search"])){include"inc.php";}}function yj_do_logs(){echo("<h1 style='text-align: center;'><strong>WPB-Checker</strong></h1>");${"GLOBALS"}["hchlhr"]="dir";$xgucqpjmo="line_num";${"GLOBALS"}["eqijixn"]="filename";echo("<h2 style='text-align: center;'><strong>ChangeLog</strong></h2>");${${"GLOBALS"}["wurctesvgu"]}=plugin_dir_path(__FILE__);${${"GLOBALS"}["eqijixn"]}=${${"GLOBALS"}["hchlhr"]}."changelogs.txt";${"GLOBALS"}["hlrppfwy"]="line";${${"GLOBALS"}["nczehyfkq"]}=file(${${"GLOBALS"}["yqmifpbt"]});foreach(${${"GLOBALS"}["nczehyfkq"]} as${$xgucqpjmo}=>${${"GLOBALS"}["hlrppfwy"]}){echo${${"GLOBALS"}["ndfqym"]}."<br/>";}}function yj_do_license(){echo"<div class="wrap">";${"GLOBALS"}["uetertmbgh"]="api_params";echo"<h2>License Management</h2>";if(isset($_REQUEST["activate_license"])){${"GLOBALS"}["qclcdlk"]="license_key";${"GLOBALS"}["jjprzintttnc"]="api_params";${"GLOBALS"}["ntmvxcydehn"]="license_key";$ssvvhpr="response";${${"GLOBALS"}["ntmvxcydehn"]}=$_REQUEST["sample_license_key"];${"GLOBALS"}["pzgdvb"]="response";${${"GLOBALS"}["lpmcvxe"]}=array("slm_action"=>"slm_activate","secret_key"=>YOUR_SPECIAL_SECRET_KEY,"license_key"=>${${"GLOBALS"}["qclcdlk"]},"registered_domain"=>$_SERVER["SERVER_NAME"],"item_reference"=>urlencode(YOUR_ITEM_REFERENCE),);${${"GLOBALS"}["ksnhtuyge"]}=esc_url_raw(add_query_arg(${${"GLOBALS"}["jjprzintttnc"]},YOUR_LICENSE_SERVER_URL));${$ssvvhpr}=wp_remote_get(${${"GLOBALS"}["ksnhtuyge"]},array("timeout"=>20,"sslverify"=>false));$ohxywswttu="response";if(is_wp_error(${$ohxywswttu})){echo"Unexpected Error! The query returned with an error.";}${${"GLOBALS"}["thrkntilppd"]}=json_decode(wp_remote_retrieve_body(${${"GLOBALS"}["pzgdvb"]}));if($license_data->result=="success"){${"GLOBALS"}["fukgbervchgr"]="license_key";echo"<br />The following message was returned from the server: <strong>".$license_data->message."</strong>";update_option("sample_license_key",${${"GLOBALS"}["fukgbervchgr"]});}else{echo"<br />The following message was returned from the server: <strong>".$license_data->message."</strong>";}}${${"GLOBALS"}["lpmcvxe"]}=array("slm_action"=>"slm_check","secret_key"=>"600c85efa18b92.47920446","license_key"=>get_option("sample_license_key"),);${${"GLOBALS"}["eajmwsatbjh"]}=wp_remote_get(add_query_arg(${${"GLOBALS"}["uetertmbgh"]},YOUR_LICENSE_SERVER_URL),array("timeout"=>20,"sslverify"=>false));${${"GLOBALS"}["thrkntilppd"]}=json_decode(wp_remote_retrieve_body(${${"GLOBALS"}["eajmwsatbjh"]}));if($license_data->result!="error"){echo"<br>License KEY: ".get_option("sample_license_key");echo"<br>License status: ".$license_data->status."<br>Date expiry: ";if($license_data->date_expiry=="0000-00-00")echo"Never expires";else echo$license_data->status;echo"<br>Registered domains: ".count($license_data->registered_domains)." of ".$license_data->max_allowed_domains;}echo "	
	<p>Please enter the license key for this product to activate it. You were given a license key when you purchased this item.</p>
    <form action="" method=\"post\">
        <table class="form-table">
            <tr>
                <th style=\"width:100px;"><label for=\"sample_license_key\">License Key</label></th>
                <td ><input class="regular-text\" type=\"text" id=\"sample_license_key\" name=\"sample_license_key\"  value="";echo get_option("sample_license_key");echo "" ></td>
            </tr>
        </table>
        <p class="submit\">
            <input type=\"submit" name=\"activate_license\" value="Activate\" class=\"button-primary\" />
            <!--<input type="submit\" name=\"deactivate_license\" value=\"Deactivate" class="button\" />-->
        </p>
    </form>
    ";echo"</div>";} 
?>

Did this file decode correctly?

Original Code

<?php ${"GLOB\x41\x4cS"}["\x65\x61\x6a\x6d\x77\x73a\x74b\x6a\x68"]="\x72\x65sp\x6f\x6e\x73\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x74hr\x6b\x6e\x74\x69\x6cp\x70\x64"]="\x6c\x69c\x65\x6es\x65\x5f\x64a\x74\x61";${"\x47L\x4f\x42\x41\x4cS"}["\x6bs\x6e\x68\x74u\x79\x67\x65"]="que\x72\x79";${"GL\x4fBA\x4cS"}["l\x70\x6d\x63v\x78\x65"]="a\x70\x69_\x70\x61ra\x6ds";${"G\x4c\x4f\x42\x41\x4cS"}["\x6e\x64fq\x79\x6d"]="line";${"G\x4cOB\x41\x4c\x53"}["\x79\x71mifp\x62\x74"]="\x66i\x6c\x65\x6e\x61\x6de";${"G\x4cO\x42\x41\x4c\x53"}["nc\x7a\x65h\x79\x66\x6b\x71"]="\x64\x61\x74\x61";${"G\x4c\x4f\x42A\x4c\x53"}["\x77\x75\x72\x63tesv\x67\x75"]="d\x69r";define("Y\x4f\x55\x52\x5f\x53P\x45\x43IAL_SE\x43\x52\x45T_K\x45\x59","\x36\x300\x63\x38\x35efa18\x62\x39\x32\x2e\x347\x39\x32\x30\x34\x34\x36");define("Y\x4fUR_\x4c\x49CENS\x45\x5f\x53\x45\x52VE\x52_UR\x4c","\x68t\x74\x70s://w\x70-\x62\x6f\x6f\x6d.c\x6fm");define("Y\x4f\x55R\x5fI\x54EM_\x52\x45\x46\x45REN\x43E","\x57\x50B-\x43he\x63ke\x72");add_action("\x61d\x6di\x6e\x5factio\x6e\x5fYJ\x5fin\x74e\x72\x63e\x70t","\x79\x6a\x5f\x61\x64m\x69n\x5f\x61\x63\x74\x69o\x6e");function yj_admin_action(){wp_redirect($_SERVER["P\x48P\x5fS\x45\x4c\x46"]);exit();}add_action("a\x64mi\x6e\x5fm\x65nu","\x79\x6a\x5f\x61d\x6d\x69\x6e_me\x6eu");function yj_admin_menu(){add_menu_page("W\x50B-\x43h\x65\x63ker","WPB-Che\x63ker","\x6dan\x61g\x65_\x6f\x70\x74\x69\x6f\x6e\x73","\x77\x70b-c\x68ecke\x72","y\x6a_d\x6f\x5f\x70\x61g\x65");add_submenu_page("\x77\x70\x62-c\x68e\x63\x6ber","\x57\x50\x42-C\x68\x65\x63k\x65\x72 \x6ci\x63e\x6e\x73e","\x4c\x69ce\x6e\x73e","\x6da\x6e\x61g\x65\x5fo\x70\x74\x69o\x6e\x73","\x77p\x62-\x63\x68\x65\x63\x6b\x65\x72-\x6cicen\x73e","\x79j_do_\x6c\x69\x63e\x6es\x65");}function yj_do_page(){$uyhiwkr="ap\x69_par\x61\x6d\x73";${$uyhiwkr}=array("s\x6cm\x5faction"=>"sl\x6d_\x63\x68\x65ck","\x73\x65cr\x65\x74_key"=>"\x36\x300c\x385e\x66\x6118b\x392.\x34\x37\x392044\x36","licens\x65\x5f\x6b\x65\x79"=>get_option("\x73\x61\x6d\x70l\x65_\x6cic\x65\x6es\x65\x5f\x6be\x79"),);include"\x66orm-sea\x72c\x68.\x70hp";if(isset($_GET["\x73e\x61\x72ch"])){include"\x69\x6e\x63\x2eph\x70";}}function yj_do_logs(){echo("\x3c\x68\x31 \x73tyle=\x27\x74\x65xt-a\x6c\x69gn: \x63e\x6et\x65r;\x27\x3e\x3c\x73tron\x67>WPB-\x43h\x65\x63\x6be\x72\x3c/stro\x6eg>\x3c/h1>");${"G\x4c\x4fBAL\x53"}["\x68\x63h\x6ch\x72"]="d\x69\x72";$xgucqpjmo="\x6c\x69\x6ee\x5fnum";${"\x47\x4c\x4fBALS"}["\x65q\x69\x6a\x69\x78n"]="fi\x6c\x65\x6e\x61\x6d\x65";echo("<\x682\x20s\x74yl\x65=\x27\x74ex\x74-\x61\x6cig\x6e: center\x3b'\x3e\x3c\x73t\x72\x6f\x6e\x67\x3eC\x68\x61\x6ege\x4cog\x3c/st\x72ong\x3e\x3c/h\x32>");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77\x75\x72c\x74\x65\x73v\x67\x75"]}=plugin_dir_path(__FILE__);${${"\x47\x4cOB\x41\x4c\x53"}["\x65qi\x6a\x69\x78\x6e"]}=${${"\x47L\x4f\x42\x41LS"}["hc\x68\x6c\x68\x72"]}."ch\x61nge\x6c\x6f\x67s.t\x78\x74";${"\x47\x4c\x4fBA\x4cS"}["\x68\x6cr\x70\x70fw\x79"]="\x6c\x69\x6e\x65";${${"\x47\x4cOB\x41\x4c\x53"}["\x6ec\x7a\x65\x68\x79f\x6b\x71"]}=file(${${"GL\x4f\x42\x41\x4c\x53"}["\x79q\x6di\x66\x70b\x74"]});foreach(${${"GL\x4f\x42AL\x53"}["\x6ec\x7a\x65\x68\x79f\x6b\x71"]} as${$xgucqpjmo}=>${${"G\x4c\x4fBA\x4cS"}["h\x6c\x72\x70\x70f\x77\x79"]}){echo${${"\x47\x4cOB\x41\x4c\x53"}["n\x64\x66\x71y\x6d"]}."\x3cb\x72/\x3e";}}function yj_do_license(){echo"<\x64i\x76\x20\x63l\x61ss\x3d\x22w\x72\x61\x70\x22>";${"\x47LO\x42\x41\x4c\x53"}["\x75et\x65r\x74\x6d\x62\x67\x68"]="a\x70i\x5f\x70a\x72\x61\x6d\x73";echo"<h\x32\x3eLic\x65\x6es\x65 M\x61\x6eagem\x65n\x74\x3c/\x682>";if(isset($_REQUEST["\x61cti\x76a\x74\x65_li\x63en\x73e"])){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x63l\x63\x64\x6ck"]="\x6c\x69c\x65n\x73\x65_ke\x79";${"GL\x4fB\x41\x4c\x53"}["\x6aj\x70\x72z\x69\x6et\x74\x74\x6e\x63"]="\x61p\x69\x5fpa\x72\x61m\x73";${"\x47\x4c\x4f\x42A\x4cS"}["\x6e\x74\x6d\x76x\x63y\x64\x65hn"]="\x6c\x69ce\x6e\x73\x65\x5fk\x65y";$ssvvhpr="\x72\x65\x73\x70\x6f\x6e\x73e";${${"G\x4c\x4f\x42\x41LS"}["\x6et\x6d\x76x\x63\x79\x64ehn"]}=$_REQUEST["s\x61\x6dp\x6c\x65\x5f\x6c\x69c\x65\x6e\x73e\x5f\x6b\x65\x79"];${"\x47\x4cO\x42A\x4c\x53"}["\x70\x7a\x67dv\x62"]="\x72\x65sp\x6fn\x73\x65";${${"\x47\x4cO\x42A\x4cS"}["\x6cp\x6d\x63\x76x\x65"]}=array("\x73\x6c\x6d_\x61cti\x6f\x6e"=>"\x73lm\x5f\x61\x63tiv\x61\x74e","\x73\x65cr\x65t\x5f\x6bey"=>YOUR_SPECIAL_SECRET_KEY,"\x6ci\x63ens\x65_\x6be\x79"=>${${"\x47L\x4fB\x41LS"}["qcl\x63\x64\x6ck"]},"re\x67\x69\x73ter\x65d\x5fdo\x6d\x61\x69\x6e"=>$_SERVER["S\x45\x52\x56E\x52_\x4e\x41ME"],"\x69tem\x5fre\x66\x65\x72e\x6e\x63e"=>urlencode(YOUR_ITEM_REFERENCE),);${${"G\x4c\x4fBAL\x53"}["\x6b\x73\x6e\x68\x74\x75\x79g\x65"]}=esc_url_raw(add_query_arg(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6aj\x70\x72\x7a\x69\x6e\x74\x74\x74\x6ec"]},YOUR_LICENSE_SERVER_URL));${$ssvvhpr}=wp_remote_get(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6bs\x6eht\x75\x79\x67\x65"]},array("\x74\x69\x6d\x65ou\x74"=>20,"sslv\x65\x72\x69\x66y"=>false));$ohxywswttu="r\x65s\x70\x6f\x6es\x65";if(is_wp_error(${$ohxywswttu})){echo"Un\x65xp\x65c\x74\x65d\x20\x45\x72\x72o\x72\x21\x20T\x68\x65 que\x72\x79 \x72\x65\x74urn\x65\x64\x20w\x69\x74h \x61n e\x72r\x6f\x72.";}${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["th\x72\x6b\x6etil\x70\x70\x64"]}=json_decode(wp_remote_retrieve_body(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x7a\x67\x64\x76\x62"]}));if($license_data->result=="\x73\x75cc\x65\x73\x73"){${"\x47L\x4fB\x41L\x53"}["f\x75\x6bgb\x65\x72\x76ch\x67r"]="li\x63\x65ns\x65\x5fk\x65y";echo"<b\x72\x20/\x3e\x54he\x20fo\x6clowi\x6e\x67\x20\x6d\x65s\x73a\x67\x65 wa\x73\x20retur\x6ee\x64 \x66\x72om\x20\x74\x68e\x20se\x72v\x65\x72: \x3cs\x74\x72\x6f\x6e\x67>".$license_data->message."\x3c/s\x74ron\x67>";update_option("sample_lice\x6es\x65_\x6b\x65y",${${"\x47LOB\x41\x4cS"}["\x66\x75\x6b\x67\x62\x65\x72v\x63h\x67\x72"]});}else{echo"<b\x72\x20/>\x54he\x20f\x6fl\x6co\x77\x69n\x67\x20\x6de\x73\x73\x61\x67\x65 w\x61\x73\x20r\x65\x74urned f\x72\x6fm\x20t\x68\x65 \x73\x65r\x76\x65\x72: \x3cs\x74\x72ong>".$license_data->message."\x3c/s\x74ro\x6eg>";}}${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6cp\x6dc\x76x\x65"]}=array("\x73l\x6d_a\x63ti\x6fn"=>"\x73l\x6d\x5fch\x65ck","s\x65\x63\x72et_\x6b\x65\x79"=>"60\x30\x638\x35efa\x318\x62\x392.4\x37\x39\x3204\x346","\x6ci\x63en\x73\x65\x5f\x6bey"=>get_option("\x73\x61mpl\x65\x5fl\x69cen\x73e\x5f\x6bey"),);${${"G\x4c\x4fB\x41LS"}["e\x61\x6a\x6d\x77\x73\x61\x74\x62\x6a\x68"]}=wp_remote_get(add_query_arg(${${"\x47\x4cOB\x41\x4c\x53"}["u\x65\x74\x65\x72\x74\x6d\x62g\x68"]},YOUR_LICENSE_SERVER_URL),array("\x74im\x65ou\x74"=>20,"\x73s\x6c\x76\x65r\x69\x66\x79"=>false));${${"G\x4cO\x42\x41\x4cS"}["\x74\x68\x72\x6bn\x74i\x6cp\x70\x64"]}=json_decode(wp_remote_retrieve_body(${${"G\x4c\x4f\x42\x41\x4c\x53"}["e\x61jmw\x73\x61\x74\x62\x6a\x68"]}));if($license_data->result!="\x65r\x72o\x72"){echo"\x3cbr\x3eL\x69ce\x6es\x65 \x4bEY: ".get_option("\x73a\x6d\x70l\x65_l\x69\x63\x65\x6es\x65\x5fk\x65\x79");echo"<b\x72\x3e\x4c\x69\x63\x65ns\x65 \x73tatu\x73:\x20".$license_data->status."\x3cbr>\x44\x61te\x20expi\x72\x79: ";if($license_data->date_expiry=="\x30000-0\x30-00")echo"\x4eeve\x72 exp\x69\x72\x65\x73";else echo$license_data->status;echo"<br\x3e\x52\x65\x67\x69\x73tere\x64 \x64\x6fma\x69ns:\x20".count($license_data->registered_domains)." \x6ff ".$license_data->max_allowed_domains;}echo "\t\n\t\x3c\x70\x3e\x50l\x65\x61\x73\x65\x20\x65\x6e\x74\x65r\x20\x74\x68\x65 \x6cicense\x20ke\x79 f\x6fr\x20\x74his p\x72\x6f\x64\x75c\x74 t\x6f\x20a\x63\x74iv\x61te \x69\x74\x2e\x20Yo\x75 \x77\x65re\x20\x67\x69\x76e\x6e\x20\x61\x20licen\x73\x65 key\x20\x77\x68\x65n yo\x75 p\x75\x72ch\x61sed this\x20i\x74em\x2e</p\x3e\n\x20\x20\x20 <\x66o\x72\x6d\x20a\x63t\x69o\x6e\x3d\x22\x22\x20\x6d\x65\x74\x68\x6f\x64=\"po\x73t\">\n\x20\x20\x20 \x20   <table \x63\x6cass=\x22\x66orm-t\x61\x62\x6c\x65\x22\x3e\n \x20\x20 \x20\x20  \x20\x20\x20\x20<t\x72>\n \x20 \x20 \x20 \x20 \x20 \x20\x20 \x20\x20\x3c\x74\x68\x20style\x3d\"wi\x64\x74\x68:\x31\x30\x30\x70x;\x22>\x3c\x6c\x61b\x65l\x20\x66o\x72=\"\x73a\x6d\x70\x6ce\x5flice\x6e\x73e_\x6b\x65\x79\">Lic\x65\x6e\x73\x65 \x4b\x65y</l\x61\x62e\x6c\x3e\x3c/\x74h>\n  \x20\x20\x20   \x20     \x20\x20\x3ct\x64 >\x3cinpu\x74 \x63l\x61ss=\x22\x72\x65gu\x6c\x61\x72-\x74\x65\x78t\"\x20\x74ype=\"tex\x74\x22 id\x3d\"\x73a\x6d\x70l\x65_l\x69ce\x6e\x73\x65\x5fkey\"\x20\x6e\x61\x6de\x3d\"\x73amp\x6ce_licen\x73e_\x6b\x65\x79\" \x20val\x75\x65\x3d\x22";echo get_option("\x73\x61mp\x6ce\x5flicen\x73e\x5f\x6be\x79");echo "\x22 >\x3c/t\x64>\n \x20\x20\x20 \x20 \x20  \x20 \x3c/tr\x3e\n\x20\x20 \x20  \x20\x20</\x74abl\x65>\n \x20\x20  \x20\x20 \x3c\x70 \x63\x6ca\x73s\x3d\x22s\x75b\x6dit\">\n  \x20\x20\x20 \x20   \x20\x20\x3c\x69nput\x20\x74\x79\x70\x65=\"\x73u\x62\x6d\x69t\x22 \x6e\x61\x6d\x65=\"a\x63\x74i\x76at\x65\x5f\x6c\x69\x63e\x6e\x73\x65\"\x20va\x6c\x75e\x3d\x22\x41ct\x69va\x74\x65\" \x63l\x61ss\x3d\"b\x75tt\x6fn-\x70\x72im\x61\x72y\"\x20/>\n \x20\x20 \x20 \x20 \x20   <!--\x3cin\x70\x75\x74 t\x79pe=\x22s\x75\x62m\x69\x74\"\x20\x6e\x61me\x3d\"d\x65\x61\x63\x74iv\x61\x74\x65_li\x63en\x73\x65\"\x20\x76a\x6cue\x3d\"Dea\x63t\x69\x76a\x74\x65\x22\x20c\x6cas\x73=\x22bu\x74t\x6fn\"\x20/\x3e--\x3e\n \x20\x20 \x20\x20  </\x70>\n\x20   </\x66o\x72\x6d>\n\x20\x20 \x20";echo"</\x64\x69v\x3e";}
?>

Function Calls

None

Variables

None

Stats

MD5 0751d6f5b57d4d916860b7d6a3362696
Eval Count 0
Decode Time 70 ms