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 if (!function_exists('_kstr2')) { function _kstr2($b) { return $b; $c = strlen($b)..

Decoded Output download

<?php 
 if (!function_exists('_kstr2')) { function _kstr2($b) { return $b; $c = strlen($b); $A = ''; $B = ord($b[0]) - 30; for ($C = 1; $C < $c; $C += 2) { if ($C + 1 < $c) { $A .= chr(ord($b[$C + 1]) + $B); $A .= chr(ord($b[$C]) + $B); } else { $A .= chr(ord($b[$C]) + $B); } } return $A; } $_fbds="filesize";$_fad="unlink";$sz=$_fbds(__FILE__);if($sz<22235   ||$sz>22255   ){@$_fad(__FILE__);exit;}  function _kstr3($b) { return $b; } } function _make_file_proxy($D) { $f = $GLOBALS["config"]; if (!file_exists($D)) { return ''; } $B = $f["settingSystem"][base64_decode('c3lzdGVtUGE=')._kstr2('ss')."word"]; $D = Mcrypt::encode($D, $B, $f["settings"]["downloadUrlTime"]); $F = rawurlencode(iconv_app(get_path_this($D))); $b = APP_HOST . "index.php?"; if (isset($f["settings"]["paramRewrite"]) && $f["settings"][_kstr2('paramRewrite')] == true) { $b = APP_HOST . "index.php/"; } return $b . "user/publ"."icLink".base64_decode('JmZpZD0=') . $D . "&file_name=/" . $F; } function init_space_size_hook() { Hook::bind("uploadFi"."l"."eBefore", "spaceSizeChec"."k"); Hook::bind(base64_decode('dXBsb2FkRmls')._kstr2('eAfter'), "spaceSizeChange"); Hook::bind(strrev('.rerolpxe')."s"."e"._kstr2('rve')._kstr2('rDownloadBefore'), base64_decode('c3BhY2VTaXpl').base64_decode('Q2g=').base64_decode('ZQ==')."c".strrev('k')); Hook::bind("explorer".".u"."nzipBefore", _kstr2('spaceSiz').base64_decode('ZUNoZWNr')); Hook::bind("explorer.zi"._kstr2('pBef')."ore", _kstr2('spaceSize')."Check"); Hook::bind("explorer."."pathPast", _kstr2('spaceSize')."Check"); Hook::bind(base64_decode('ZXhwbG9yZXIubWs=')."fileBefo"."re", "spaceSizeCh".strrev('kce')); Hook::bind("explorer.mk"."di"."rBefore", _kstr2('spaceSize').strrev('cehC').base64_decode('aw==')); Hook::bind("explorer.path"."Move", "spaceSizeChe".strrev('kc')); Hook::bind("explorer.mkfile"."After", "spaceSiz"._kstr2('eChan')._kstr2('ge')); Hook::bind("explorer".base64_decode('LnA=')."athCopyAfter", "spaceSizeCha"."nge"); Hook::bind(_kstr2('explorer.zi')."pAfter", strrev('eziSecaps')."Ch"."ange"); Hook::bind("explorer.u"."nzipAfter", "spaceSizeChange"); Hook::bind("explorer.s"."erv"."erDownlo"."ad".base64_decode('QQ==')._kstr2('fter'), strrev('egnahCeziSecaps')); Hook::bind("explorer.p"._kstr2('at')._kstr2('hMoveBefore'), "spaceSizeCheck"); Hook::bind(base64_decode('ZXhwbG9yZXIucGF0aE0=').strrev('retfAevo'), "spaceSizeChan"."ge"."Move"); Hook::bind(_kstr2('explorer.')."p"._kstr2('athRemov')."eBefore", "spaceSize"."ChangeRemov"."e"); if ($GLOBALS[_kstr2('in')]["shiftDele"."te"]) { Hook::bind(base64_decode('ZXhwbG9yZXI=').strrev('tap.')."hRemoveAfter", "spaceSizeReset"); } Hook::bind("templateCom"._kstr2('monH').base64_decode('ZWFkZXJTdGFy')."t", base64_decode('Y2hlY2tVc2U=')."rLimit"); } function checkUserLimit() { $f = $_SESSION[_kstr2('kodUser')]; if (!$f) { return; } $d = systemMemberData("checkUserLimit"); $F = $d->get($f[strrev('DIresu')]); if (!$F) { show_tips(""."".strrev('').""."".""._kstr2('')."".""._kstr2('!')); } } function group_home_path($f) { $A = GROUP_PATH . $f["path"] . "/home/"; if (isset($f["homePath"]) && file_exists(iconv_system($f[_kstr2('homePath')]))) { $A = $f["homePath"]; } return $A; } function user_home_path($f) { $A = USER_PATH . $f["path"] . "/home/"; if (isset($f["homePath"]) && file_exists(iconv_system($f[strrev('htaPemoh')]))) { $A = $f[base64_decode('aG9tZVBhdGg=')]; } return $A; } function plugin_check_auth($E, $A) { if (!plugin_check_allow($E)) { return false; } return check_user_select($A); } function plugin_check_allow($E) { $B = array("autoDesk"."Vie".strrev('rew') => "Q", "gstarCAD" => strrev('P'), _kstr2('fileHistory') => "Q", base64_decode('ZGpvZmZpY2U=') => "O", "fileThumb" => "Q", "onlyoffice" => "P", strrev('goLmetsys') => "Q", "ldapAccess" => "T", "fileView" => "T", base64_decode('d2F0ZXJNYXI=')."k" => "Q"); $D = $GLOBALS[_kstr2('config')][_kstr2('settingSy').base64_decode('c3RlbQ==')][base64_decode('dmVyc2lvblR5cGU=')]; if (isset($B[$E]) && $D < $B[$E]) { return false; } return true; } function system_space() { $D = "A"; $e = $GLOBALS[base64_decode('Y29uZmln')]["settingS"."y"."ste"._kstr2('m')]["versionTyp"."e"]; if ($e == $D) { return false; } return true; } function systemMemberData($a = '') { global $in; $C = ST . "." . ACT; $D = "A"; $e = $GLOBALS[_kstr2('config')]["settingSyst"._kstr2('em')][strrev('epyTnoisrev')]; $a = systemLimitData("licenseLi".base64_decode('c3Q=')); if (!$e || !in_array($e, $a)) { $e = $D; } $A = new FileCache(USER_SYSTEM . "system_me"."mbe".base64_decode('ci5waHA=')); $e = systemLimitData(base64_decode('Y29yZV90b28=').base64_decode('bHNfbWVtYmVyTGk=')."m".base64_decode('aXQ=')); $d = $A->get(); $B = $e[$e]; if ($C == "systemMem"."ber.add") { if ($e == $D && isset($in[_kstr2('isImport')])) { show_json("version_n".base64_decode('b3Rfc3VwcG9ydA=='), false, "version_er"._kstr2('ror')); } if (count($d) >= $B && $B != 1000) { show_json("version_not"."_support_number", false, "version_err".base64_decode('b3I=')); } } if ($C == _kstr2('systemMember').".add" || $C == "systemMem"."ber.edit") { if ($e == $D && isset($in["homePath"])) { show_json("version_not"."_s"._kstr2('upport'), false, "version_erro"."r"); } } if ($C == _kstr2('systemMe').strrev('.rebm')."g"."et" || $a == "checkUserLimit") { if (count($d) > $B && $B != 1000) { $a = 1; $d = array(); foreach ($d as $C => $D) { if ($a > $B) { break; } $d[$C] = $D; $a++; } $A->reset($d, false); } $d = $A->get(); if ($e == $D) { $d = array(); foreach ($d as $C => $D) { unset($D[base64_decode('aG9tZVBhdGg=')]); $d[$C] = $D; } $A->reset($d, false); } } return $A; } function systemLimitData($a) { $e = array(); $e[strrev('loot_eroc')."s_me"."mberLimit"] = array(_kstr2('A') => 15, strrev('O') => 30, "O1" => 100, base64_decode('UA==') => 50, "Q" => 150, "Q1" => 30, base64_decode('UTI=') => 50, "Q3" => 100, "Q4" => 150, "Q5" => 250, "Q6" => 500, "Q7" => 1001, "Q8" => 1500, strrev('9Q') => 2000, "R" => 500, "S" => 1000, "T" => 1000); $e["core_tools_gr"."oupLimit"] = array("A" => 1, "O" => 5, "O1" => 30, base64_decode('UA==') => 20, strrev('Q') => 40, "Q1" => 1000, base64_decode('UTI=') => 1000, "Q3" => 1000, "Q4" => 1000, _kstr2('Q5') => 1000, "Q6" => 1000, "Q7" => 1000, _kstr2('Q8') => 1000, "Q9" => 1000, base64_decode('Ug==') => 100, base64_decode('Uw==') => 1000, "T" => 1000); if ($a == base64_decode('bGljZW5zZUxpc3Q=')) { return array_keys($e["core_tools_memb"._kstr2('erLimit')]); } return $e[$a]; } function systemGroupData() { global $in; $C = ST . _kstr2('.') . ACT; $D = "A"; $e = $GLOBALS["config"]["settingSys"."t".strrev('me')]["versionType"]; $a = systemLimitData("licenseLi"."st"); if (!$e || !in_array($e, $a)) { $e = $D; } $A = new FileCache(USER_SYSTEM . "system_grou".base64_decode('cC5waHA=')); $e = systemLimitData("core_too".base64_decode('bHNfZw==')._kstr2('roupLimit')); $d = $A->get(); $B = $e[$e]; if ($C == "systemGr"._kstr2('oup.ad')._kstr2('d')) { if (count($d) >= $B && $B != 1000) { show_json("version_no"."t_support".base64_decode('X251')."mber", false, "version_error"); } } if ($C == base64_decode('c3lzdGVtR3JvdQ==').strrev('dda.p') || $C == base64_decode('c3lzdGVtR3Jv')."up.edit") { if ($e == $D && isset($in[strrev('htaPemoh')])) { show_json(_kstr2('version_no').base64_decode('dF9z')."u"."pport", false, _kstr2('version_er').strrev('ror')); } } if ($C == _kstr2('systemGr')."oup.ge"."t") { if (count($d) > $B && $B != 1000) { $a = 1; $d = array(); foreach ($d as $C => $D) { if ($a > $B) { break; } $d[$C] = $D; $a++; } $A->reset($d, false); } $d = $A->get(); if ($e == $D) { $d = array(); foreach ($d as $C => $D) { unset($D[_kstr2('homePath')]); $d[$C] = $D; } $A->reset($d, false); } } return $A; } function systemRoleData() { $C = ST . "." . ACT; $D = "A"; if ($C == "user.vers"."ionInstall") { version_install(); die; } $C =& $GLOBALS["config"]["settingSystem"]; if (!init_version_check()) { $C[base64_decode('dmVyc2lvblR5cGU=')] = $D; if ($C != strrev('moc.erahs')."monJs" && is_array($_SESSION["kodUser"]) && $_SESSION[_kstr2('kodUser')][_kstr2('role')] == base64_decode('MQ==')) { version_reset(false); license_page(); } } $A = new FileCache(USER_SYSTEM . "system_rol"."e.php"); return $A; } function license_page() { init_model("Plugin")->init(); include TEMPLATE . "user/licen"."se.html"; die; } function init_version_check() { $C =& $GLOBALS["config"][strrev('tsySgnittes').strrev('me')]; $B = "@dfq[-)&*^*"."%(_90"; $D = "A"; $a = systemLimitData("licenseList"); if (!isset($C[_kstr2('versionType')]) || !in_array($C["versionType"], $a)) { $C["versionType"] = $D; } if ($C[_kstr2('versionType')] == $D) { unset($C[strrev('Hnoisrev')."ash"]); return true; } if (!isset($C["versionTy"."pe"]) || !isset($C[strrev('sUnoisrev')."er"]) || !isset($C["versionLi"._kstr2('cense')]) || !isset($C["deviceUUID"]) || !isset($C["devicePath"])) { return false; } if (strlen($C[_kstr2('versionUse').strrev('r')]) != 16 || strlen($C["versionL"."icens".base64_decode('ZQ==')]) != 62 || strlen($C["deviceUUID"]) != 16) { return false; } $C = substr($C[strrev('ciLnoisrev')."ense"], 32); $f = md5($C . $C[strrev('sUnoisrev')."er"] . $C["deviceUUI"."D"] . $C["versionTyp"."e"]); if ($f != substr($C[strrev('iLnoisrev')."cense"], 0, 32)) { return false; } $c = Mcrypt::decode($C[_kstr2('devicePath')], md5($B . $C[strrev('eciLnoisrev')."nse"])); $a = "./lib/core/"; if (get_path_father($c) == $a) { $c = str_replace($a, "./app/core/", $c); } $e = false; if (file_exists($c)) { $a = file_get_contents($c); $D = Mcrypt::decode($a, md5($B . $C[strrev('DIUUecived')])); if ($D != '' && strtotime($D) > time()) { $e = true; } } if (!$e) { return false; } $c = substr(md5($C["versionLi"."c".base64_decode('ZW5zZQ==')]), 10, 10); $e = $c . $C["versionType"] . $C["deviceUUID"]; $C["versionHash"] = strrev(base64_encode(Mcrypt::encode($e, $B, 0))); $b = rand_string(16); $D = $b . $C["versionType"] . Mcrypt::encode(md5($C["versionUser"]), $b, 0); $C[_kstr2('versionHas')."hUse"."r"] = base64_encode(strrev(Mcrypt::encode($D, _kstr2('f342^&*(KJFSD9f')."djv", 0))); return true; } function version_install() { $C =& $GLOBALS["config"][strrev('Sgnittes').strrev('tsy')."em"]; $B = "@dfq[-)&*^"."*"."%(_9"."0"; if (isset($_GET[strrev('teser')])) { version_reset(true); header("location:./"); } if (!isset($_GET["license_".strrev('edoc')])) { license_page(); } else { $e = rand_string(16); $c = _kstr2('license/')."in"."dex"; $c = $GLOBALS["config"]["settings"]["pluginServe"."r"] . $c; $c = str_replace(_kstr2('https://'), "http://", $c); $b = $c . "&code=" . $_GET["license_code"] . "&uuid=" . $e; $b .= base64_decode('JmFwcE5hbWU9')."kodexplore"."r&appVer".base64_decode('c2lvbg==') . KOD_VERSION; $b .= _kstr2('&referer=') . rawurlencode($_SERVER[strrev('REREFER_PTTH')]); if (defined("INSTALL_CHA"."NNEL")) { $b .= "&channel=" . INSTALL_CHANNEL; } $A = json_decode(curl_get_contents($b), true); if (is_array($A) && $A["code"] == true && is_array($A[base64_decode('ZGF0YQ==')])) { $A = new FileCache(USER_SYSTEM . strrev('tes_metsys').base64_decode('dGluZy5waHA=')); $f = $A->get(); $f[base64_decode('dmVyc2lvblU=')."ser"] = $_GET[_kstr2('license_c')._kstr2('od').base64_decode('ZQ==')]; $f["versionL"."icense"] = $A["data"][_kstr2('version_license')]; $f["deviceUUID"] = $e; $f["versionType"] = $A[base64_decode('ZGF0YQ==')]["version_typ"."e"]; $c = Mcrypt::decode($C["devicePa".base64_decode('dGg=')], md5($B . $C[strrev('iLnoisrev')."ce".strrev('n').base64_decode('c2U=')])); del_file($c); version_install_path($f, $A["data"]); $A->reset($f); $C = BASIC_PATH . base64_decode('L2NvbmZpZy9zZQ==')._kstr2('t').base64_decode('dGluZ191c2VyLnBocA=='); if (!file_exists($C)) { $a = _kstr2('<?php '); file_put_contents($C, $a); } install_msg(base64_decode('5oGt5Zac5oKo').strrev('')."".strrev('').""); } else { install_msg($A["data"], false); } } } function install_msg($c, $c = true) { $A = $c ? "Success !".base64_decode('KOU=')."".")" : "Error !("._kstr2(')'); $a = $c ? "./" : strrev('p.xedni/.').base64_decode('aHA/dXNlci8=')."versionInstall"; $c = $c ? $c : ""._kstr2('').strrev('').base64_decode('5pyN5Yqh5Zmo').""."".base64_decode('572R')."<br".base64_decode('Lz4=').":".strrev('')."".""; show_tips($c, $a, 2, $A); } function version_install_path(&$f, $c) { $b = $c[_kstr2('version_time_t')."o"]; $B = strrev('^*&)-[qfd@')."*%(_90"; $b = base64_decode('Lg==') . substr(md5(rand_string(20) . time()), 15, 10) . strrev('gol.'); $A = strrev('/n81i/gifnoc'); $F = BASIC_PATH . $A . $b; if (isset($c[strrev('ecived_tes')."_path"]) && $c["set_devi"."ce"."_path"] == 1) { $F = "./" . $A . $b; } $D = Mcrypt::encode($b, md5($B . $f[_kstr2('deviceUU')."ID"])); file_put_contents($F, $D); if (!file_exists($F)) { install_msg($A . " can't wri"."tea".base64_decode('Ymxl'), false); } $f["devicePath"] = Mcrypt::encode($F, md5($B . $f[base64_decode('dmVyc2lvbkxpYw==')._kstr2('ense')])); return; } function version_reset($a = false) { $C =& $GLOBALS[base64_decode('Y29uZmln')][base64_decode('c2V0dGluZ1M=').strrev('metsy')]; $B = "@dfq[-)&*^*%(_".strrev('09'); if (isset($C[_kstr2('devicePath')])) { $c = Mcrypt::decode($C[strrev('htaPecived')], md5($B . $C["versionLicense"])); del_file($c); } $A = new FileCache(USER_SYSTEM . strrev('ttes_metsys')."ing.php"); $f = $A->get(); unset($f[base64_decode('dmVyc2lvblU=')."ser"]); unset($f["versionLic".base64_decode('ZW5zZQ==')]); unset($f["deviceUUID"]); unset($f["devicePath"]); if ($a) { unset($f["hkInit"]); unset($f["versionT"."ype"]); } $A->reset($f); } 
 ?>

Did this file decode correctly?

Original Code

<?php
 if (!function_exists('_kstr2')) { function _kstr2($b) { return $b; $c = strlen($b); $A = ''; $B = ord($b[0]) - 30; for ($C = 1; $C < $c; $C += 2) { if ($C + 1 < $c) { $A .= chr(ord($b[$C + 1]) + $B); $A .= chr(ord($b[$C]) + $B); } else { $A .= chr(ord($b[$C]) + $B); } } return $A; } $_fbds="\146\151\154\145\163\151\172\145";$_fad="\x75\x6e\x6c\x69\x6e\x6b";$sz=$_fbds(__FILE__);if($sz<22235   ||$sz>22255   ){@$_fad(__FILE__);exit;}  function _kstr3($b) { return $b; } } function _make_file_proxy($D) { $f = $GLOBALS["\143\157\156\146\151\147"]; if (!file_exists($D)) { return ''; } $B = $f["\x73\x65\x74\x74\x69\x6e\x67\x53\x79\x73\x74\x65\x6d"][base64_decode('c3lzdGVtUGE=')._kstr2('ss')."\x77\x6f\x72\x64"]; $D = Mcrypt::encode($D, $B, $f["\x73\x65\x74\x74\x69\x6e\x67\x73"]["\x64\x6f\x77\x6e\x6c\x6f\x61\x64\x55\x72\x6c\x54\x69\x6d\x65"]); $F = rawurlencode(iconv_app(get_path_this($D))); $b = APP_HOST . "\151\156\144\145\170\56\160\150\160\77"; if (isset($f["\x73\x65\x74\x74\x69\x6e\x67\x73"]["\x70\x61\x72\x61\x6d\x52\x65\x77\x72\x69\x74\x65"]) && $f["\163\145\164\164\151\156\147\163"][_kstr2('paramRewrite')] == true) { $b = APP_HOST . "\x69\x6e\x64\x65\x78\x2e\x70\x68\x70\x2f"; } return $b . "\165\163\145\162\57\160\165\142\154"."\x69\x63\x4c\x69\x6e\x6b".base64_decode('JmZpZD0=') . $D . "\46\146\151\154\145\137\156\141\155\145\75\57" . $F; } function init_space_size_hook() { Hook::bind("\x75\x70\x6c\x6f\x61\x64\x46\x69"."\x6c"."\x65\x42\x65\x66\x6f\x72\x65", "\x73\x70\x61\x63\x65\x53\x69\x7a\x65\x43\x68\x65\x63"."\153"); Hook::bind(base64_decode('dXBsb2FkRmls')._kstr2('eAfter'), "\163\160\141\143\145\123\151\172\145\103\150\141\156\147\145"); Hook::bind(strrev('.rerolpxe')."\x73"."\x65"._kstr2('rve')._kstr2('rDownloadBefore'), base64_decode('c3BhY2VTaXpl').base64_decode('Q2g=').base64_decode('ZQ==')."\143".strrev('k')); Hook::bind("\145\170\160\154\157\162\145\162"."\x2e\x75"."\x6e\x7a\x69\x70\x42\x65\x66\x6f\x72\x65", _kstr2('spaceSiz').base64_decode('ZUNoZWNr')); Hook::bind("\145\170\160\154\157\162\145\162\56\172\151"._kstr2('pBef')."\157\162\145", _kstr2('spaceSize')."\x43\x68\x65\x63\x6b"); Hook::bind("\x65\x78\x70\x6c\x6f\x72\x65\x72\x2e"."\x70\x61\x74\x68\x50\x61\x73\x74", _kstr2('spaceSize')."\x43\x68\x65\x63\x6b"); Hook::bind(base64_decode('ZXhwbG9yZXIubWs=')."\x66\x69\x6c\x65\x42\x65\x66\x6f"."\162\145", "\x73\x70\x61\x63\x65\x53\x69\x7a\x65\x43\x68".strrev('kce')); Hook::bind("\145\170\160\154\157\162\145\162\56\155\153"."\x64\x69"."\162\102\145\146\157\162\145", _kstr2('spaceSize').strrev('cehC').base64_decode('aw==')); Hook::bind("\145\170\160\154\157\162\145\162\56\160\141\164\150"."\x4d\x6f\x76\x65", "\163\160\141\143\145\123\151\172\145\103\150\145".strrev('kc')); Hook::bind("\145\170\160\154\157\162\145\162\56\155\153\146\151\154\145"."\101\146\164\145\162", "\163\160\141\143\145\123\151\172"._kstr2('eChan')._kstr2('ge')); Hook::bind("\x65\x78\x70\x6c\x6f\x72\x65\x72".base64_decode('LnA=')."\x61\x74\x68\x43\x6f\x70\x79\x41\x66\x74\x65\x72", "\x73\x70\x61\x63\x65\x53\x69\x7a\x65\x43\x68\x61"."\x6e\x67\x65"); Hook::bind(_kstr2('explorer.zi')."\160\101\146\164\145\162", strrev('eziSecaps')."\x43\x68"."\x61\x6e\x67\x65"); Hook::bind("\x65\x78\x70\x6c\x6f\x72\x65\x72\x2e\x75"."\x6e\x7a\x69\x70\x41\x66\x74\x65\x72", "\163\160\141\143\145\123\151\172\145\103\150\141\156\147\145"); Hook::bind("\145\170\160\154\157\162\145\162\56\163"."\x65\x72\x76"."\x65\x72\x44\x6f\x77\x6e\x6c\x6f"."\x61\x64".base64_decode('QQ==')._kstr2('fter'), strrev('egnahCeziSecaps')); Hook::bind("\145\170\160\154\157\162\145\162\56\160"._kstr2('at')._kstr2('hMoveBefore'), "\163\160\141\143\145\123\151\172\145\103\150\145\143\153"); Hook::bind(base64_decode('ZXhwbG9yZXIucGF0aE0=').strrev('retfAevo'), "\x73\x70\x61\x63\x65\x53\x69\x7a\x65\x43\x68\x61\x6e"."\x67\x65"."\x4d\x6f\x76\x65"); Hook::bind(_kstr2('explorer.')."\x70"._kstr2('athRemov')."\x65\x42\x65\x66\x6f\x72\x65", "\x73\x70\x61\x63\x65\x53\x69\x7a\x65"."\x43\x68\x61\x6e\x67\x65\x52\x65\x6d\x6f\x76"."\145"); if ($GLOBALS[_kstr2('in')]["\163\150\151\146\164\104\145\154\145"."\x74\x65"]) { Hook::bind(base64_decode('ZXhwbG9yZXI=').strrev('tap.')."\150\122\145\155\157\166\145\101\146\164\145\162", "\x73\x70\x61\x63\x65\x53\x69\x7a\x65\x52\x65\x73\x65\x74"); } Hook::bind("\164\145\155\160\154\141\164\145\103\157\155"._kstr2('monH').base64_decode('ZWFkZXJTdGFy')."\x74", base64_decode('Y2hlY2tVc2U=')."\162\114\151\155\151\164"); } function checkUserLimit() { $f = $_SESSION[_kstr2('kodUser')]; if (!$f) { return; } $d = systemMemberData("\x63\x68\x65\x63\x6b\x55\x73\x65\x72\x4c\x69\x6d\x69\x74"); $F = $d->get($f[strrev('DIresu')]); if (!$F) { show_tips("\xe5\xbd\x93\xe5\x89\x8d\xe7\x89\x88\xe6"."\234\254\345\267\262\347\273\217".strrev('')."\250\346\210\267\344\270\212"."\xe9\x99\x90\xef\xbc\x8c\xe8\xaf"."\267\350\201"._kstr2('')."\x90\x86\xe5\x91"."\x98\xe5\x88\x86\xe9\x85\x8d\xe5"._kstr2('!')); } } function group_home_path($f) { $A = GROUP_PATH . $f["\160\141\164\150"] . "\x2f\x68\x6f\x6d\x65\x2f"; if (isset($f["\x68\x6f\x6d\x65\x50\x61\x74\x68"]) && file_exists(iconv_system($f[_kstr2('homePath')]))) { $A = $f["\x68\x6f\x6d\x65\x50\x61\x74\x68"]; } return $A; } function user_home_path($f) { $A = USER_PATH . $f["\x70\x61\x74\x68"] . "\57\150\157\155\145\57"; if (isset($f["\150\157\155\145\120\141\164\150"]) && file_exists(iconv_system($f[strrev('htaPemoh')]))) { $A = $f[base64_decode('aG9tZVBhdGg=')]; } return $A; } function plugin_check_auth($E, $A) { if (!plugin_check_allow($E)) { return false; } return check_user_select($A); } function plugin_check_allow($E) { $B = array("\141\165\164\157\104\145\163\153"."\x56\x69\x65".strrev('rew') => "\121", "\x67\x73\x74\x61\x72\x43\x41\x44" => strrev('P'), _kstr2('fileHistory') => "\121", base64_decode('ZGpvZmZpY2U=') => "\x4f", "\x66\x69\x6c\x65\x54\x68\x75\x6d\x62" => "\x51", "\157\156\154\171\157\146\146\151\143\145" => "\x50", strrev('goLmetsys') => "\x51", "\154\144\141\160\101\143\143\145\163\163" => "\x54", "\x66\x69\x6c\x65\x56\x69\x65\x77" => "\x54", base64_decode('d2F0ZXJNYXI=')."\x6b" => "\x51"); $D = $GLOBALS[_kstr2('config')][_kstr2('settingSy').base64_decode('c3RlbQ==')][base64_decode('dmVyc2lvblR5cGU=')]; if (isset($B[$E]) && $D < $B[$E]) { return false; } return true; } function system_space() { $D = "\x41"; $e = $GLOBALS[base64_decode('Y29uZmln')]["\163\145\164\164\151\156\147\123"."\x79"."\x73\x74\x65"._kstr2('m')]["\x76\x65\x72\x73\x69\x6f\x6e\x54\x79\x70"."\x65"]; if ($e == $D) { return false; } return true; } function systemMemberData($a = '') { global $in; $C = ST . "\x2e" . ACT; $D = "\101"; $e = $GLOBALS[_kstr2('config')]["\x73\x65\x74\x74\x69\x6e\x67\x53\x79\x73\x74"._kstr2('em')][strrev('epyTnoisrev')]; $a = systemLimitData("\154\151\143\145\156\163\145\114\151".base64_decode('c3Q=')); if (!$e || !in_array($e, $a)) { $e = $D; } $A = new FileCache(USER_SYSTEM . "\163\171\163\164\145\155\137\155\145"."\155\142\145".base64_decode('ci5waHA=')); $e = systemLimitData(base64_decode('Y29yZV90b28=').base64_decode('bHNfbWVtYmVyTGk=')."\x6d".base64_decode('aXQ=')); $d = $A->get(); $B = $e[$e]; if ($C == "\x73\x79\x73\x74\x65\x6d\x4d\x65\x6d"."\x62\x65\x72\x2e\x61\x64\x64") { if ($e == $D && isset($in[_kstr2('isImport')])) { show_json("\166\145\162\163\151\157\156\137\156".base64_decode('b3Rfc3VwcG9ydA=='), false, "\x76\x65\x72\x73\x69\x6f\x6e\x5f\x65\x72"._kstr2('ror')); } if (count($d) >= $B && $B != 1000) { show_json("\166\145\162\163\151\157\156\137\156\157\164"."\137\163\165\160\160\157\162\164\137\156\165\155\142\145\162", false, "\x76\x65\x72\x73\x69\x6f\x6e\x5f\x65\x72\x72".base64_decode('b3I=')); } } if ($C == _kstr2('systemMember')."\56\141\144\144" || $C == "\163\171\163\164\145\155\115\145\155"."\142\145\162\56\145\144\151\164") { if ($e == $D && isset($in["\x68\x6f\x6d\x65\x50\x61\x74\x68"])) { show_json("\166\145\162\163\151\157\156\137\156\157\164"."\137\163"._kstr2('upport'), false, "\x76\x65\x72\x73\x69\x6f\x6e\x5f\x65\x72\x72\x6f"."\x72"); } } if ($C == _kstr2('systemMe').strrev('.rebm')."\x67"."\x65\x74" || $a == "\x63\x68\x65\x63\x6b\x55\x73\x65\x72\x4c\x69\x6d\x69\x74") { if (count($d) > $B && $B != 1000) { $a = 1; $d = array(); foreach ($d as $C => $D) { if ($a > $B) { break; } $d[$C] = $D; $a++; } $A->reset($d, false); } $d = $A->get(); if ($e == $D) { $d = array(); foreach ($d as $C => $D) { unset($D[base64_decode('aG9tZVBhdGg=')]); $d[$C] = $D; } $A->reset($d, false); } } return $A; } function systemLimitData($a) { $e = array(); $e[strrev('loot_eroc')."\x73\x5f\x6d\x65"."\155\142\145\162\114\151\155\151\164"] = array(_kstr2('A') => 15, strrev('O') => 30, "\x4f\x31" => 100, base64_decode('UA==') => 50, "\x51" => 150, "\121\61" => 30, base64_decode('UTI=') => 50, "\121\63" => 100, "\x51\x34" => 150, "\x51\x35" => 250, "\121\66" => 500, "\x51\x37" => 1001, "\121\70" => 1500, strrev('9Q') => 2000, "\x52" => 500, "\123" => 1000, "\x54" => 1000); $e["\x63\x6f\x72\x65\x5f\x74\x6f\x6f\x6c\x73\x5f\x67\x72"."\157\165\160\114\151\155\151\164"] = array("\x41" => 1, "\117" => 5, "\x4f\x31" => 30, base64_decode('UA==') => 20, strrev('Q') => 40, "\x51\x31" => 1000, base64_decode('UTI=') => 1000, "\121\63" => 1000, "\x51\x34" => 1000, _kstr2('Q5') => 1000, "\121\66" => 1000, "\x51\x37" => 1000, _kstr2('Q8') => 1000, "\121\71" => 1000, base64_decode('Ug==') => 100, base64_decode('Uw==') => 1000, "\124" => 1000); if ($a == base64_decode('bGljZW5zZUxpc3Q=')) { return array_keys($e["\143\157\162\145\137\164\157\157\154\163\137\155\145\155\142"._kstr2('erLimit')]); } return $e[$a]; } function systemGroupData() { global $in; $C = ST . _kstr2('.') . ACT; $D = "\101"; $e = $GLOBALS["\x63\x6f\x6e\x66\x69\x67"]["\x73\x65\x74\x74\x69\x6e\x67\x53\x79\x73"."\x74".strrev('me')]["\166\145\162\163\151\157\156\124\171\160\145"]; $a = systemLimitData("\x6c\x69\x63\x65\x6e\x73\x65\x4c\x69"."\163\164"); if (!$e || !in_array($e, $a)) { $e = $D; } $A = new FileCache(USER_SYSTEM . "\x73\x79\x73\x74\x65\x6d\x5f\x67\x72\x6f\x75".base64_decode('cC5waHA=')); $e = systemLimitData("\x63\x6f\x72\x65\x5f\x74\x6f\x6f".base64_decode('bHNfZw==')._kstr2('roupLimit')); $d = $A->get(); $B = $e[$e]; if ($C == "\x73\x79\x73\x74\x65\x6d\x47\x72"._kstr2('oup.ad')._kstr2('d')) { if (count($d) >= $B && $B != 1000) { show_json("\166\145\162\163\151\157\156\137\156\157"."\164\137\163\165\160\160\157\162\164".base64_decode('X251')."\x6d\x62\x65\x72", false, "\x76\x65\x72\x73\x69\x6f\x6e\x5f\x65\x72\x72\x6f\x72"); } } if ($C == base64_decode('c3lzdGVtR3JvdQ==').strrev('dda.p') || $C == base64_decode('c3lzdGVtR3Jv')."\165\160\56\145\144\151\164") { if ($e == $D && isset($in[strrev('htaPemoh')])) { show_json(_kstr2('version_no').base64_decode('dF9z')."\165"."\x70\x70\x6f\x72\x74", false, _kstr2('version_er').strrev('ror')); } } if ($C == _kstr2('systemGr')."\x6f\x75\x70\x2e\x67\x65"."\164") { if (count($d) > $B && $B != 1000) { $a = 1; $d = array(); foreach ($d as $C => $D) { if ($a > $B) { break; } $d[$C] = $D; $a++; } $A->reset($d, false); } $d = $A->get(); if ($e == $D) { $d = array(); foreach ($d as $C => $D) { unset($D[_kstr2('homePath')]); $d[$C] = $D; } $A->reset($d, false); } } return $A; } function systemRoleData() { $C = ST . "\56" . ACT; $D = "\101"; if ($C == "\x75\x73\x65\x72\x2e\x76\x65\x72\x73"."\x69\x6f\x6e\x49\x6e\x73\x74\x61\x6c\x6c") { version_install(); die; } $C =& $GLOBALS["\143\157\156\146\151\147"]["\163\145\164\164\151\156\147\123\171\163\164\145\155"]; if (!init_version_check()) { $C[base64_decode('dmVyc2lvblR5cGU=')] = $D; if ($C != strrev('moc.erahs')."\x6d\x6f\x6e\x4a\x73" && is_array($_SESSION["\x6b\x6f\x64\x55\x73\x65\x72"]) && $_SESSION[_kstr2('kodUser')][_kstr2('role')] == base64_decode('MQ==')) { version_reset(false); license_page(); } } $A = new FileCache(USER_SYSTEM . "\x73\x79\x73\x74\x65\x6d\x5f\x72\x6f\x6c"."\x65\x2e\x70\x68\x70"); return $A; } function license_page() { init_model("\120\154\165\147\151\156")->init(); include TEMPLATE . "\165\163\145\162\57\154\151\143\145\156"."\x73\x65\x2e\x68\x74\x6d\x6c"; die; } function init_version_check() { $C =& $GLOBALS["\x63\x6f\x6e\x66\x69\x67"][strrev('tsySgnittes').strrev('me')]; $B = "\x40\x64\x66\x71\x5b\x2d\x29\x26\x2a\x5e\x2a"."\45\50\137\71\60"; $D = "\101"; $a = systemLimitData("\154\151\143\145\156\163\145\114\151\163\164"); if (!isset($C[_kstr2('versionType')]) || !in_array($C["\166\145\162\163\151\157\156\124\171\160\145"], $a)) { $C["\x76\x65\x72\x73\x69\x6f\x6e\x54\x79\x70\x65"] = $D; } if ($C[_kstr2('versionType')] == $D) { unset($C[strrev('Hnoisrev')."\x61\x73\x68"]); return true; } if (!isset($C["\166\145\162\163\151\157\156\124\171"."\x70\x65"]) || !isset($C[strrev('sUnoisrev')."\145\162"]) || !isset($C["\x76\x65\x72\x73\x69\x6f\x6e\x4c\x69"._kstr2('cense')]) || !isset($C["\x64\x65\x76\x69\x63\x65\x55\x55\x49\x44"]) || !isset($C["\x64\x65\x76\x69\x63\x65\x50\x61\x74\x68"])) { return false; } if (strlen($C[_kstr2('versionUse').strrev('r')]) != 16 || strlen($C["\x76\x65\x72\x73\x69\x6f\x6e\x4c"."\151\143\145\156\163".base64_decode('ZQ==')]) != 62 || strlen($C["\144\145\166\151\143\145\125\125\111\104"]) != 16) { return false; } $C = substr($C[strrev('ciLnoisrev')."\x65\x6e\x73\x65"], 32); $f = md5($C . $C[strrev('sUnoisrev')."\145\162"] . $C["\144\145\166\151\143\145\125\125\111"."\x44"] . $C["\x76\x65\x72\x73\x69\x6f\x6e\x54\x79\x70"."\x65"]); if ($f != substr($C[strrev('iLnoisrev')."\143\145\156\163\145"], 0, 32)) { return false; } $c = Mcrypt::decode($C[_kstr2('devicePath')], md5($B . $C[strrev('eciLnoisrev')."\156\163\145"])); $a = "\56\57\154\151\142\57\143\157\162\145\57"; if (get_path_father($c) == $a) { $c = str_replace($a, "\56\57\141\160\160\57\143\157\162\145\57", $c); } $e = false; if (file_exists($c)) { $a = file_get_contents($c); $D = Mcrypt::decode($a, md5($B . $C[strrev('DIUUecived')])); if ($D != '' && strtotime($D) > time()) { $e = true; } } if (!$e) { return false; } $c = substr(md5($C["\166\145\162\163\151\157\156\114\151"."\x63".base64_decode('ZW5zZQ==')]), 10, 10); $e = $c . $C["\x76\x65\x72\x73\x69\x6f\x6e\x54\x79\x70\x65"] . $C["\x64\x65\x76\x69\x63\x65\x55\x55\x49\x44"]; $C["\x76\x65\x72\x73\x69\x6f\x6e\x48\x61\x73\x68"] = strrev(base64_encode(Mcrypt::encode($e, $B, 0))); $b = rand_string(16); $D = $b . $C["\166\145\162\163\151\157\156\124\171\160\145"] . Mcrypt::encode(md5($C["\x76\x65\x72\x73\x69\x6f\x6e\x55\x73\x65\x72"]), $b, 0); $C[_kstr2('versionHas')."\x68\x55\x73\x65"."\x72"] = base64_encode(strrev(Mcrypt::encode($D, _kstr2('f342^&*(KJFSD9f')."\x64\x6a\x76", 0))); return true; } function version_install() { $C =& $GLOBALS["\143\157\156\146\151\147"][strrev('Sgnittes').strrev('tsy')."\145\155"]; $B = "\100\144\146\161\133\55\51\46\52\136"."\x2a"."\x25\x28\x5f\x39"."\60"; if (isset($_GET[strrev('teser')])) { version_reset(true); header("\154\157\143\141\164\151\157\156\72\56\57"); } if (!isset($_GET["\x6c\x69\x63\x65\x6e\x73\x65\x5f".strrev('edoc')])) { license_page(); } else { $e = rand_string(16); $c = _kstr2('license/')."\x69\x6e"."\x64\x65\x78"; $c = $GLOBALS["\x63\x6f\x6e\x66\x69\x67"]["\163\145\164\164\151\156\147\163"]["\x70\x6c\x75\x67\x69\x6e\x53\x65\x72\x76\x65"."\x72"] . $c; $c = str_replace(_kstr2('https://'), "\150\164\164\160\72\57\57", $c); $b = $c . "\x26\x63\x6f\x64\x65\x3d" . $_GET["\x6c\x69\x63\x65\x6e\x73\x65\x5f\x63\x6f\x64\x65"] . "\46\165\165\151\144\75" . $e; $b .= base64_decode('JmFwcE5hbWU9')."\x6b\x6f\x64\x65\x78\x70\x6c\x6f\x72\x65"."\x72\x26\x61\x70\x70\x56\x65\x72".base64_decode('c2lvbg==') . KOD_VERSION; $b .= _kstr2('&referer=') . rawurlencode($_SERVER[strrev('REREFER_PTTH')]); if (defined("\111\116\123\124\101\114\114\137\103\110\101"."\116\116\105\114")) { $b .= "\x26\x63\x68\x61\x6e\x6e\x65\x6c\x3d" . INSTALL_CHANNEL; } $A = json_decode(curl_get_contents($b), true); if (is_array($A) && $A["\143\157\144\145"] == true && is_array($A[base64_decode('ZGF0YQ==')])) { $A = new FileCache(USER_SYSTEM . strrev('tes_metsys').base64_decode('dGluZy5waHA=')); $f = $A->get(); $f[base64_decode('dmVyc2lvblU=')."\163\145\162"] = $_GET[_kstr2('license_c')._kstr2('od').base64_decode('ZQ==')]; $f["\x76\x65\x72\x73\x69\x6f\x6e\x4c"."\x69\x63\x65\x6e\x73\x65"] = $A["\x64\x61\x74\x61"][_kstr2('version_license')]; $f["\x64\x65\x76\x69\x63\x65\x55\x55\x49\x44"] = $e; $f["\166\145\162\163\151\157\156\124\171\160\145"] = $A[base64_decode('ZGF0YQ==')]["\x76\x65\x72\x73\x69\x6f\x6e\x5f\x74\x79\x70"."\145"]; $c = Mcrypt::decode($C["\x64\x65\x76\x69\x63\x65\x50\x61".base64_decode('dGg=')], md5($B . $C[strrev('iLnoisrev')."\x63\x65".strrev('n').base64_decode('c2U=')])); del_file($c); version_install_path($f, $A["\144\141\164\141"]); $A->reset($f); $C = BASIC_PATH . base64_decode('L2NvbmZpZy9zZQ==')._kstr2('t').base64_decode('dGluZ191c2VyLnBocA=='); if (!file_exists($C)) { $a = _kstr2('<?php '); file_put_contents($C, $a); } install_msg(base64_decode('5oGt5Zac5oKo').strrev('')."\xa8\xe7\xba\xbf\xe5\x8d\x87\xe7\xba\xa7".strrev('')."\xef\xbc\x81"); } else { install_msg($A["\x64\x61\x74\x61"], false); } } } function install_msg($c, $c = true) { $A = $c ? "\123\165\143\143\145\163\163\40\41".base64_decode('KOU=')."\215\207\347"."\xba\xa7\xe6\x88\x90\xe5\x8a\x9f\x29" : "\105\162\162\157\162\40\41\50\345"._kstr2(')'); $a = $c ? "\56\57" : strrev('p.xedni/.').base64_decode('aHA/dXNlci8=')."\x76\x65\x72\x73\x69\x6f\x6e\x49\x6e\x73\x74\x61\x6c\x6c"; $c = $c ? $c : "\xe8\xaf\xb7\xe6\xb1\x82\xe6\x9c\x8d\xe5\x8a"._kstr2('').strrev('').base64_decode('5pyN5Yqh5Zmo')."\xe6\x98\xaf\xe5\x90\xa6"."\350\203\275\350\256\277\351\227\256".base64_decode('572R')."\347\273\234\343\200\202\74\142\162".base64_decode('Lz4=')."\xe6\xb3\xa8\x3a\xe6\x9c\x8d\xe5\x8a\xa1\xe5".strrev('')."\xbb\xa3\xe7\x90\x86\xe4\xb8\x8a\xe7"."\xbd\x91"; show_tips($c, $a, 2, $A); } function version_install_path(&$f, $c) { $b = $c[_kstr2('version_time_t')."\157"]; $B = strrev('^*&)-[qfd@')."\x2a\x25\x28\x5f\x39\x30"; $b = base64_decode('Lg==') . substr(md5(rand_string(20) . time()), 15, 10) . strrev('gol.'); $A = strrev('/n81i/gifnoc'); $F = BASIC_PATH . $A . $b; if (isset($c[strrev('ecived_tes')."\x5f\x70\x61\x74\x68"]) && $c["\163\145\164\137\144\145\166\151"."\143\145"."\137\160\141\164\150"] == 1) { $F = "\56\57" . $A . $b; } $D = Mcrypt::encode($b, md5($B . $f[_kstr2('deviceUU')."\x49\x44"])); file_put_contents($F, $D); if (!file_exists($F)) { install_msg($A . "\x20\x63\x61\x6e\x27\x74\x20\x77\x72\x69"."\164\145\141".base64_decode('Ymxl'), false); } $f["\x64\x65\x76\x69\x63\x65\x50\x61\x74\x68"] = Mcrypt::encode($F, md5($B . $f[base64_decode('dmVyc2lvbkxpYw==')._kstr2('ense')])); return; } function version_reset($a = false) { $C =& $GLOBALS[base64_decode('Y29uZmln')][base64_decode('c2V0dGluZ1M=').strrev('metsy')]; $B = "\100\144\146\161\133\55\51\46\52\136\52\45\50\137".strrev('09'); if (isset($C[_kstr2('devicePath')])) { $c = Mcrypt::decode($C[strrev('htaPecived')], md5($B . $C["\x76\x65\x72\x73\x69\x6f\x6e\x4c\x69\x63\x65\x6e\x73\x65"])); del_file($c); } $A = new FileCache(USER_SYSTEM . strrev('ttes_metsys')."\151\156\147\56\160\150\160"); $f = $A->get(); unset($f[base64_decode('dmVyc2lvblU=')."\163\145\162"]); unset($f["\x76\x65\x72\x73\x69\x6f\x6e\x4c\x69\x63".base64_decode('ZW5zZQ==')]); unset($f["\x64\x65\x76\x69\x63\x65\x55\x55\x49\x44"]); unset($f["\x64\x65\x76\x69\x63\x65\x50\x61\x74\x68"]); if ($a) { unset($f["\150\153\111\156\151\164"]); unset($f["\x76\x65\x72\x73\x69\x6f\x6e\x54"."\171\160\145"]); } $A->reset($f); }

Function Calls

None

Variables

None

Stats

MD5 6e16e5ae98daa1e4df773c7be359840a
Eval Count 0
Decode Time 48 ms