Vi text editor; can execute commands, read/write files, and spawn shells.
vi vi Sandbox: execFile · Timeout: 30s
system.file.read system.file.write security.privilege-escalation.shell Outputs
process.output Command execution output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | none |
| Disk I/O | low |
Read arbitrary files (sudo, suid, unprivileged)
vi /path/to/input-file Write to arbitrary files (sudo, suid, unprivileged)
vi /path/to/output-file
iDATA
^[
w Spawn an interactive shell (sudo, suid, unprivileged)
vi -c ':!/bin/sh' /dev/null Spawn an interactive shell (sudo, suid, unprivileged)
vi -c ':shell' Spawn an interactive shell (sudo, suid, unprivileged)
vi -c ':set shell=/bin/sh | shell' Spawn an interactive shell (sudo, suid, unprivileged)
vi -c :terminal /bin/sh vi is a command-line utility. Visual editor, can execute commands and read/write files; can also read arbitrary files, write to arbitrary files, spawn an interactive shell.