Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<? ${"GLOBALS"}["weiywjspu"]="pe"; ${"GLOBALS"}["seshrospw"]="ini"; ${"GLOBALS"}["g..
Decoded Output download
<?
${"GLOBALS"}["weiywjspu"]="pe";
${"GLOBALS"}["seshrospw"]="ini";
${"GLOBALS"}["gxbthv"]="domain";
$wbbonxqcdc="pe";
${"GLOBALS"}["ejqgrfsgb"]="host_num";
${"GLOBALS"}["uhbmbcmea"]="host_arr";
${"GLOBALS"}["nehigssvdo"]="url";
${"GLOBALS"}["eferhnr"]="querystr";
${"GLOBALS"}["chqulwslc"]="_pathinfo";
${"GLOBALS"}["hudxqzjqnw"]="module";
${"GLOBALS"}["qmmrrbsd"]="id";
${"GLOBALS"}["xhxumbdh"]="act";
${"GLOBALS"}["qkbbfhb"]="mod";
function pe_urlroute(){
${"GLOBALS"}["wvoytqlgozb"]="module";
${"GLOBALS"}["fkklemjrt"]="act";
$tkyfabljm="act";
$vzvctmgub="mod";
global$module,$mod,$act,$id;
${${"GLOBALS"}["wvoytqlgozb"]}=${$vzvctmgub}=${${"GLOBALS"}["fkklemjrt"]}="index";
${${"GLOBALS"}["qkbbfhb"]}=$_POST["mod"]?$_POST["mod"]:($_GET["mod"]?$_GET["mod"]:${${"GLOBALS"}["qkbbfhb"]});
${${"GLOBALS"}["xhxumbdh"]}=$_POST["act"]?$_POST["act"]:($_GET["act"]?$_GET["act"]:${$tkyfabljm});
${${"GLOBALS"}["qmmrrbsd"]}=$_POST["id"]?$_POST["id"]:($_GET["id"]?$_GET["id"]:${${"GLOBALS"}["qmmrrbsd"]});
if($_SERVER["PATH_INFO"]){${"GLOBALS"}["ccqdpwwzguo"]="mod";$ybvyrwwbc="_pathinfo";
${"GLOBALS"}["tinghrd"]="act";$nrvwptooqsp="mod";${"GLOBALS"}["xtdwnnx"]="_pathinfo";
${${"GLOBALS"}["hudxqzjqnw"]}="index";
${$ybvyrwwbc}=explode("/",str_ireplace(".html","",trim($_SERVER["PATH_INFO"],"/")));
${${"GLOBALS"}["ccqdpwwzguo"]}=${${"GLOBALS"}["chqulwslc"]}[0]?${${"GLOBALS"}["chqulwslc"]}[0]:${$nrvwptooqsp};
${${"GLOBALS"}["xhxumbdh"]}=${${"GLOBALS"}["xtdwnnx"]}[1]?${${"GLOBALS"}["chqulwslc"]}[1]:${${"GLOBALS"}["tinghrd"]};
if(${${"GLOBALS"}["chqulwslc"]}[1]){$edledt="querystr";
$euorlikkru="querystr";
${"GLOBALS"}["fgeiyk"]="_pathinfo";
$tfgypo="querystr";
${$edledt}=explode("-",${${"GLOBALS"}["fgeiyk"]}[1]);
${${"GLOBALS"}["eferhnr"]}[0]&&${${"GLOBALS"}["xhxumbdh"]}=${$tfgypo}[0];
${$euorlikkru}[1]&&${${"GLOBALS"}["qmmrrbsd"]}=${${"GLOBALS"}["eferhnr"]}[1];
}}else{$slssslnd="module";
${$slssslnd}=basename($_SERVER["SCRIPT_NAME"],".php");
}}
function pe_domain($url){${"GLOBALS"}["jqqnnirahlg"]="url";
${"GLOBALS"}["yrchkenynee"]="url";
${${"GLOBALS"}["jqqnnirahlg"]}=parse_url(${${"GLOBALS"}["yrchkenynee"]});
$host=${${"GLOBALS"}["nehigssvdo"]}["host"];
$qbxbbcvxse="host_arr";
$xwauneoezk="host_num";
${${"GLOBALS"}["uhbmbcmea"]}=explode(".",$host);
${$xwauneoezk}=count(${$qbxbbcvxse});
${"GLOBALS"}["oyuzpeqg"]="match";if(${${"GLOBALS"}["ejqgrfsgb"]}==1)return"localhost";
if(preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\$/",$host,${${"GLOBALS"}["oyuzpeqg"]})){$wkrfhjq="domain";
$ntuoleeboe="match";
${$wkrfhjq}=in_array("{$host_arr[0]}.{$host_arr[1]}",array("127.0","192.168"))?"localhost":${$ntuoleeboe}[0];
}
elseif
(in_array("{$host_arr[$host_num-2]}.{$host_arr[$host_num-1]}",array("com.cn","net.cn","org.cn","gov.cn"))){${${"GLOBALS"}["gxbthv"]}="{$host_arr[$host_num-3]}.{$host_arr[$host_num-2]}.{$host_arr[$host_num-1]}";
}else{${${"GLOBALS"}["gxbthv"]}="{$host_arr[$host_num-2]}.{$host_arr[$host_num-1]}";}return${${"GLOBALS"}["gxbthv"]};
}if(!(pe_domain(${$wbbonxqcdc}["host_root"])=="localhost"or${${"GLOBALS"}["seshrospw"]}["phpshe"]["type"]==0)){${"GLOBALS"}["bsconfluicx"]="domain";
$wlwpurmmfn="domain";$chbtxhyilf="domain";
${"GLOBALS"}["zklunmrrwux"]="domain";
${"GLOBALS"}["gxvvpjrn"]="domain";
${${"GLOBALS"}["gxvvpjrn"]}=md5(pe_domain(${${"GLOBALS"}["weiywjspu"]}["host_root"]));
${${"GLOBALS"}["zklunmrrwux"]}=substr(md5(substr(${${"GLOBALS"}["gxbthv"]},0,18)).md5(substr(${$wlwpurmmfn},-18)),10,18);
${${"GLOBALS"}["bsconfluicx"]}=substr(base64_encode(${$chbtxhyilf}),3,-3);
if(pe_lead("license.php")!=${${"GLOBALS"}["gxbthv"]})die("<title>Domain not authorized</title>Domain not authorizedContact <a href=\"http://www.phpshe.com" target=\"_blank" title=\"">www.phpshe.com</a>");}
?>
Did this file decode correctly?
Original Code
<?
${"GLOBALS"}["weiywjspu"]="pe";
${"GLOBALS"}["seshrospw"]="ini";
${"GLOBALS"}["gxbthv"]="domain";
$wbbonxqcdc="pe";
${"GLOBALS"}["ejqgrfsgb"]="host_num";
${"GLOBALS"}["uhbmbcmea"]="host_arr";
${"GLOBALS"}["nehigssvdo"]="url";
${"GLOBALS"}["eferhnr"]="querystr";
${"GLOBALS"}["chqulwslc"]="_pathinfo";
${"GLOBALS"}["hudxqzjqnw"]="module";
${"GLOBALS"}["qmmrrbsd"]="id";
${"GLOBALS"}["xhxumbdh"]="act";
${"GLOBALS"}["qkbbfhb"]="mod";
function pe_urlroute(){
${"GLOBALS"}["wvoytqlgozb"]="module";
${"GLOBALS"}["fkklemjrt"]="act";
$tkyfabljm="act";
$vzvctmgub="mod";
global$module,$mod,$act,$id;
${${"GLOBALS"}["wvoytqlgozb"]}=${$vzvctmgub}=${${"GLOBALS"}["fkklemjrt"]}="index";
${${"GLOBALS"}["qkbbfhb"]}=$_POST["mod"]?$_POST["mod"]:($_GET["mod"]?$_GET["mod"]:${${"GLOBALS"}["qkbbfhb"]});
${${"GLOBALS"}["xhxumbdh"]}=$_POST["act"]?$_POST["act"]:($_GET["act"]?$_GET["act"]:${$tkyfabljm});
${${"GLOBALS"}["qmmrrbsd"]}=$_POST["id"]?$_POST["id"]:($_GET["id"]?$_GET["id"]:${${"GLOBALS"}["qmmrrbsd"]});
if($_SERVER["PATH_INFO"]){${"GLOBALS"}["ccqdpwwzguo"]="mod";$ybvyrwwbc="_pathinfo";
${"GLOBALS"}["tinghrd"]="act";$nrvwptooqsp="mod";${"GLOBALS"}["xtdwnnx"]="_pathinfo";
${${"GLOBALS"}["hudxqzjqnw"]}="index";
${$ybvyrwwbc}=explode("/",str_ireplace(".html","",trim($_SERVER["PATH_INFO"],"/")));
${${"GLOBALS"}["ccqdpwwzguo"]}=${${"GLOBALS"}["chqulwslc"]}[0]?${${"GLOBALS"}["chqulwslc"]}[0]:${$nrvwptooqsp};
${${"GLOBALS"}["xhxumbdh"]}=${${"GLOBALS"}["xtdwnnx"]}[1]?${${"GLOBALS"}["chqulwslc"]}[1]:${${"GLOBALS"}["tinghrd"]};
if(${${"GLOBALS"}["chqulwslc"]}[1]){$edledt="querystr";
$euorlikkru="querystr";
${"GLOBALS"}["fgeiyk"]="_pathinfo";
$tfgypo="querystr";
${$edledt}=explode("-",${${"GLOBALS"}["fgeiyk"]}[1]);
${${"GLOBALS"}["eferhnr"]}[0]&&${${"GLOBALS"}["xhxumbdh"]}=${$tfgypo}[0];
${$euorlikkru}[1]&&${${"GLOBALS"}["qmmrrbsd"]}=${${"GLOBALS"}["eferhnr"]}[1];
}}else{$slssslnd="module";
${$slssslnd}=basename($_SERVER["SCRIPT_NAME"],".php");
}}
function pe_domain($url){${"GLOBALS"}["jqqnnirahlg"]="url";
${"GLOBALS"}["yrchkenynee"]="url";
${${"GLOBALS"}["jqqnnirahlg"]}=parse_url(${${"GLOBALS"}["yrchkenynee"]});
$host=${${"GLOBALS"}["nehigssvdo"]}["host"];
$qbxbbcvxse="host_arr";
$xwauneoezk="host_num";
${${"GLOBALS"}["uhbmbcmea"]}=explode(".",$host);
${$xwauneoezk}=count(${$qbxbbcvxse});
${"GLOBALS"}["oyuzpeqg"]="match";if(${${"GLOBALS"}["ejqgrfsgb"]}==1)return"localhost";
if(preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\$/",$host,${${"GLOBALS"}["oyuzpeqg"]})){$wkrfhjq="domain";
$ntuoleeboe="match";
${$wkrfhjq}=in_array("{$host_arr[0]}.{$host_arr[1]}",array("127.0","192.168"))?"localhost":${$ntuoleeboe}[0];
}
elseif
(in_array("{$host_arr[$host_num-2]}.{$host_arr[$host_num-1]}",array("com.cn","net.cn","org.cn","gov.cn"))){${${"GLOBALS"}["gxbthv"]}="{$host_arr[$host_num-3]}.{$host_arr[$host_num-2]}.{$host_arr[$host_num-1]}";
}else{${${"GLOBALS"}["gxbthv"]}="{$host_arr[$host_num-2]}.{$host_arr[$host_num-1]}";}return${${"GLOBALS"}["gxbthv"]};
}if(!(pe_domain(${$wbbonxqcdc}["host_root"])=="localhost"or${${"GLOBALS"}["seshrospw"]}["phpshe"]["type"]==0)){${"GLOBALS"}["bsconfluicx"]="domain";
$wlwpurmmfn="domain";$chbtxhyilf="domain";
${"GLOBALS"}["zklunmrrwux"]="domain";
${"GLOBALS"}["gxvvpjrn"]="domain";
${${"GLOBALS"}["gxvvpjrn"]}=md5(pe_domain(${${"GLOBALS"}["weiywjspu"]}["host_root"]));
${${"GLOBALS"}["zklunmrrwux"]}=substr(md5(substr(${${"GLOBALS"}["gxbthv"]},0,18)).md5(substr(${$wlwpurmmfn},-18)),10,18);
${${"GLOBALS"}["bsconfluicx"]}=substr(base64_encode(${$chbtxhyilf}),3,-3);
if(pe_lead("license.php")!=${${"GLOBALS"}["gxbthv"]})die("<title>Domain not authorized</title>Domain not authorizedContact <a href=\"http://www.phpshe.com" target=\"_blank" title=\"">www.phpshe.com</a>");}
?>
Function Calls
| None |
Stats
| MD5 | e5498cbc39f7e18c069c8ba53bf923cc |
| Eval Count | 0 |
| Decode Time | 103 ms |