Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(gzinflate(base64_decode('zVZRaxtHEH6WfsVkEdEpqFJs+hRzCcY+104dW5XsgAnucbpbWdecdi97q9ii..

Decoded Output download


//  
if (!defined("THORD")) {
	die("who are you?");
}  

error_reporting(E_ALL ^ E_NOTICE); 
ini_set("display_errors", "1");
//error_reporting(E_ALL);  
//ini_set("display_errors", "1");

if (!defined("admDocRoot")) {
	define("admDocRoot", DocRoot . "/cjeMng");
}
if (!defined("AdminPath")) {//
	define("AdminPath", "/cjeMng");
}

if (!defined("ServerAddr")) {
	define("ServerAddr", $_SERVER["SERVER_ADDR"]);  
}  
if (!defined("ServerName")) {
	define("ServerName", $_SERVER["SERVER_NAME"]);  
}  
if (!defined("EnvRoot")) {
	define("EnvRoot", DocRoot."/_Env");
}
if (!defined("ExtRoot")) {
	define("ExtRoot", DocRoot."/_Ext");
} 
if (!defined("FileRoot")) {
	define("FileRoot", DocRoot."/_File");
} 
if (!defined("ProgRoot")) {
	define("ProgRoot", DocRoot."/_Prog");
} 
if (!defined("urlReferer")) {
	define("urlReferer", $_SERVER["HTTP_REFERER"]); 
}


$curUrl = "http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; 
$curPage = basename($_SERVER["PHP_SELF"]);

$sitePos = strpos($curUrl, AdminPath);
$curSite = ($sitePos!==false) ? "admin" : "user";
if (!defined("curSitePath")) {
	define("curSitePath", $curSite);  
}


// common library
include_once ExtRoot . "/lib.php";    
include_once ExtRoot . "/lib2.php"; 
$crytpKey = "thordCMS";
include_once ExtRoot . "/decencrypt.php";  

if (!defined("RemoteAddr")) {
	define("RemoteAddr", get_client_ip()); 
}

// adodb database 
include EnvRoot . "/dbconn.php";
// session
include EnvRoot . "/session.php"; 

if (ServerName!="chamhospital.mycafe24.com" && ServerName!="chamhosp.co.kr" && ServerName!="www.chamhosp.co.kr") {
	echo "  .";
	exit;
}

//  
include EnvRoot . "/var.php";  

//   
include EnvRoot . "/var2.php";  

//
//$linkParams = "&sitesession=".$sessionId;
//$linkParamsJs = "&sitesession=".$sessionId;

//  
$query = "select * from tb_connectIpConfig order by idx desc limit 1";
$ipConf = $db->getrow($query);
$connectIpAdm = $ipConf['adminIpConnYn'];
$connectIpUser = $ipConf['userIpConnYn'];

//
if (curSitePath=='admin') {
	if ($connectIpAdm=="Y") {
		$queryI = "select count(*) from tb_connectIpMng where connectIp='".RemoteAddr."' and userGubun in ('admin') and useYn='Y' and delYn='N' ";
		$ableCnt = $db->getone($queryI);
		if ($ableCnt==0) {
			echo "  .";
			exit;
		}
	}
}

//
if (curSitePath=='user') {
	if ($connectIpUser=="Y") {
		$queryI = "select count(*) from tb_connectIpMng where connectIp='".RemoteAddr."' and userGubun in ('user') and useYn='Y' and delYn='N' ";
		$ableCnt = $db->getone($queryI);
		if ($ableCnt==0) {
			echo "  .";
			exit;
		}

	}
}

$p = reqStr(getVariance("p"), '1'); 
$pSplit = explode('_', $p);
if (count($pSplit)>1) {
	$pl=$pSplit[0];
} else {
	$pl=$p;
}
$page = reqStr(getVariance("page"), 1);

Did this file decode correctly?

Original Code

eval(gzinflate(base64_decode('zVZRaxtHEH6WfsVkEdEpqFJs+hRzCcY+104dW5XsgAnucbpbWdecdi97q9iiBJKSGpNQ2lKbhjYJfggtgTy4sV1caP+Qdf4Pnb07SSfl0tCXUjBYmvnm25lvZ3aUr1ahf3wSHuyFj1+FhwfhT68h77ZAu+TQlsuoo5G1xdX6PCmV4Mt8znGpRrbbHCxBoce7N0hpJv8AIJ+nQnBhCupzIV22pRnm7PIyfA6GubK6tjRnlGaQl7lmQKVGHDfwPatnRkEBKQOZUkTVaiYLhgL6PhQ9kbbldOa5XedcDnKPPGOOMiSfoAKkan9Bb7GtqKIJrlmn47KaJdsRVbUa/vxH/9dHF4/ejFhHkPIE1QRXg4r7VMw6jpjIK+UoQ8FsGPXbRv0Oif+bs/PzdbIZSaH0zuJcsTo0kzNyZHCuzN4y3st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NVV1Zkqpr+481TVL530maaFrw8UBB7zWk0PDI25ZwLdwDGvFJqQzFqaJ6rQt+w/dclRrd8T3uUK1oFnF/+aV49cWqJajS9akos4Lv6YnpztVN9TuC4v4cedRrV/DjzZ2ZALpUDlNqc/8N')));?>

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 4d6744f6246aab7fa07c3e409f1e7ed1
Eval Count 1
Decode Time 64 ms