mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
3f62ed36f2
Co-authored-by: Kernel-ROM <Kernel-ROM> Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
15 lines
364 B
Markdown
15 lines
364 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
|
|
USER=somebody
|
|
./setfacl -m u:$USER:rwx $LFILE
|
|
sudo:
|
|
- code: |
|
|
LFILE=file_to_change
|
|
USER=somebody
|
|
sudo setfacl -m -u:$USER:rwx $LFILE
|
|
---
|