1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/rustc
2026-01-23 13:44:43 +01:00

29 lines
594 B
Plaintext

---
functions:
file-read:
- binary: false
code: |-
rustc /path/to/input-file
comment: |-
The compiler leaks some file lines in the compiler error.
contexts:
sudo:
unprivileged:
file-write:
- code: |-
echo 'fn main() { println!("DATA"); }' >/path/to/temp-file
rustc /path/to/temp-file -o /path/to/output-file
comment: |-
The comment appears in the compiled program.
contexts:
sudo:
unprivileged:
inherit:
- code: |-
rustc --explain E0001
contexts:
sudo:
unprivileged:
from: less
...