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('lVbfa9tWFH6Owf/D6Z0pMjhS0pKy1aSdW6tkkMTBdvsyOiFL17aopKteybFN..
Decoded Output download
//
if (!defined("THORD")) {
die("who are you?");
}
error_reporting(E_ALL ^ E_NOTICE);
ini_set("display_errors", "0");
//error_reporting(E_ALL);
//ini_set("display_errors", "1");
if (!defined("admDocRoot")) {
define("admDocRoot", DocRoot . "/cmsMng");
}
if (!defined("AdminPath")) {//
define("AdminPath", "/cmsMng");
}
if (!defined("RemoteAddr")) {
define("RemoteAddr", $_SERVER["REMOTE_ADDR"]);
}
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"];
// common library
include_once ExtRoot . "/lib.php";
include_once ExtRoot . "/lib_n.php";
include ExtRoot."/adodb5/adodb-exceptions.inc.php";
include ExtRoot."/adodb5/adodb-errorhandler.inc.php";
include ExtRoot."/adodb5/adodb.inc.php";
$DB_HOST = "localhost";
$DB_NAME = "sscf_moi9_kr";
$DB_USER = "root";
$DB_PASS = "inh5365";
try {
$dsn = "pdo_mysql://".$DB_USER.":".$DB_PASS."@".$DB_HOST."/".$DB_NAME."?persist";
$db = ADONewConnection($dsn); # persist is optional
$db->Execute("set names utf8");
$db->debug=0;
} catch (exception $e) {
//adodb_pr($e);
//$e = adodb_backtrace($e->trace);
//var_dump($e);
//adodb_backtrace($e->gettrace());
//echo "DB .";
Header("Location:".$curUrl);
exit;
}
// session
include EnvRoot . "/session.php";
if (ServerName!="sscf.moi9.kr" && ServerName!="www.sscf2016.or.kr" && ServerName!="sscf2016.or.kr") {
echo " .";
exit;
}
//
include EnvRoot . "/var.php";
//
include EnvRoot . "/var2.php";
$p = reqStr(getVariance("p"), 1);
$page = reqStr(getVariance("page"), 1);
Did this file decode correctly?
Original Code
eval(gzinflate(base64_decode('lVbfa9tWFH6Owf/D6Z0pMjhS0pKy1aSdW6tkkMTBdvsyOiFL17aopKteybFNKbRbNkL7sMESOrZ05KFsFPJQ2m1ksP1Dkfo/7P6QHdlR0u7Juuc759O93/nukYsFTYP43R/J/m6y8yo53E9+fg3FgtMF5ZKNu46PbQW11xrNOiqX4VGxsGA7WEHDPgGTYhiTwU1UrhYLj4FVFQuYUkINigNCI8fvKbpRW1+Hr0A3NhvtL27r5Son9x0jxJGCbCcMXHNsiKoQVQAtCTJNy+VhxcDBC+qXRf38/k3bqxOrSUg0PYSAZpAKpE+gAtIsL9zwe0i+8vE8Yc32HH/LjPqCT9OSX/6Of3/6/ulRhvo0p/JBvib2SIRrtk3nN5hBKlAyWnrznt78EjX1jUabiVKvN9F9IeoZzham25jmcWaQLKf8PeWEtKt5tJumh/NpBZJDu1nb0C+g1f3tvP5MwtPmqEgzWFB67gzJKMolScOzJKMoNe48yx3HxXk00/gMD4+eQ7RFSS+PaBqfIeLRc4gG1G3iLqb4TCszSFbztXZ7y2jqd/SmnvFHsVCyBvQudWEVUD+Kguuahpjb5+rWGq02ul8V95kNB4t4HvHBdTrUpGN+ey13YGOD+BaGVFpxZViGGvQDVJWj4KI8w8/JnCQxMUyb2J0V+bOIRxYOIof4ocoyZeGHi/hI6Ju+7WL68WXZTKZW/ZYQY4HJ5RLLdPskjDjEAe5nDoSh1TU84nxmPKAT7C7Tk2OUNzmNbdVaLR5z/P7K1WsrSOob0TE8Ai7DQskOfd6YwCaGNw4furw76oRORdflgvOo6HO54LtjR5ALviM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