mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-08-10 05:04:11 +02:00
29 lines
594 B
Plaintext
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
|
|
...
|