52 lines
1.3 KiB
Markdown
52 lines
1.3 KiB
Markdown
# ls - List Directory Contents
|
|
|
|
List directory contents with detailed file information.
|
|
|
|
## Description
|
|
|
|
The `ls` command lists directory contents with detailed file information including type (File/Directory), size, modification date, and name. It supports wildcards and works seamlessly with Mythic's File Browser for interactive file management.
|
|
|
|
## Syntax
|
|
|
|
```
|
|
ls [path]
|
|
```
|
|
|
|
## Parameters
|
|
|
|
- `path` (optional): Directory path to list. If omitted, lists current working directory.
|
|
|
|
## Examples
|
|
|
|
```
|
|
ls
|
|
ls C:\Users
|
|
ls C:\Windows\*.exe
|
|
```
|
|
|
|
## Features
|
|
|
|
- Supports wildcards (e.g., `*.exe`, `*.txt`)
|
|
- Displays file type (File/Directory), size, modification date, and name
|
|
- Compatible with Mythic File Browser for interactive file management
|
|
- Relative paths are resolved using current working directory
|
|
|
|
## Output
|
|
|
|
```
|
|
Type Size Modified Name
|
|
------ ---------- ------------------- --------------------
|
|
File 1024 2024-01-15 10:30:00 file.txt
|
|
Directory 0 2024-01-15 09:00:00 Documents
|
|
```
|
|
|
|
## Related
|
|
|
|
[File Browser Integration](../../../features.md#file-browser-integration)
|
|
|
|
---
|
|
|
|
**Command Category:** File System
|
|
**Requires Admin:** No
|
|
**MITRE ATT&CK:** [T1083 - File and Directory Discovery](https://attack.mitre.org/techniques/T1083/)
|