Catalog GTFOBins

GTFO · Tool

rustc

6 techniques LinuxGTFOBins GPL-3.0

file-read

File ReadPrivilege Escalation Linux

The compiler leaks some file lines in the compiler error.

rustc /path/to/input-file
Context
sudo
Native
file-read
MITRE
T1005

file-read

File Read Linux

The compiler leaks some file lines in the compiler error.

rustc /path/to/input-file
Context
unprivileged
Native
file-read
MITRE
T1005

file-write

File WritePrivilege Escalation Linux

The comment appears in the compiled program.

echo 'fn main() { println!("DATA"); }' >/path/to/temp-file
rustc /path/to/temp-file -o /path/to/output-file
Context
sudo
Native
file-write
MITRE
T1565

file-write

File Write Linux

The comment appears in the compiled program.

echo 'fn main() { println!("DATA"); }' >/path/to/temp-file
rustc /path/to/temp-file -o /path/to/output-file
Context
unprivileged
Native
file-write
MITRE
T1565