mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-03-07 06:31:33 +01:00
20 lines
450 B
Plaintext
20 lines
450 B
Plaintext
---
|
|
functions:
|
|
file-write:
|
|
- code: |-
|
|
echo DATA >/path/to/temp-file
|
|
mv /path/to/temp-file /path/to/output-file
|
|
contexts:
|
|
sudo:
|
|
suid:
|
|
unprivileged:
|
|
privilege-escalation:
|
|
- code: |-
|
|
mv /path/to/input-file /path/to/output-file
|
|
comment: |-
|
|
This can be used to move and then read or write files from a restricted file systems or with elevated privileges.
|
|
contexts:
|
|
sudo:
|
|
suid:
|
|
...
|