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('zVVdaxtHFH2WfsX1IKpVULVxHiM2wdib2qk/VEkOGOMuK+1Y2nY1s5ld2RYl..
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 . "/godoAdm");
}
if (!defined("AdminPath")) {//
define("AdminPath", "/godoAdm");
}
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!="godo.soijeong.com") {
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('zVVdaxtHFH2WfsX1IKpVULVxHiM2wdib2qk/VEkOGOMuK+1Y2nY1s5ld2RYlkBTXmITSlto0tE7wQ2gJ+MGN7eJC+4es9X/ond2VtFLXDX0pBYO195575syZe2eyqgr9s/PgcD/YfRMcHwY/voWsvQnKlEU3bUYthdTnV6pzpFCAL7IZy6YK2W5zMAWFHu/eJ4Vy9glANkuF4MIQ1OXCt1lL0Y2ZxUX4FHRjeaW+MKsXysjLbMOjvkIs23Mds2eERR4pApmWRKqayoKlgLn3VU/INq3OHG9WOfcH2sPMWKII8S8oAVFb3OIzVifc0gQZhm1WMf12yKWqwU+/9395dv3sZEQ7ghQnuSbIalRsUTFjWWJCWSJRhJxR06uP9Oo6if4bM3NzVbIRmiEdT+NcNjs0lTNMpHAuzyzpN3LqbCvFvkF06F2JqAYG02zTd/w0hjg6zrDjR700QfHAdmgKxzA8RiKjqSwVwVspLMPwGIuMprJ0hVOlm1TQyYNLJJImz9frFaOqP9CrenRysheyuWZXrAoHNCBt33fvq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1 |
base64_decode | 1 |
Stats
MD5 | 45a818918f5299c444073db72130c2df |
Eval Count | 1 |
Decode Time | 48 ms |