2018-09-05 16:59:07 +00:00
|
|
|
---
|
2020-12-20 20:23:28 +00:00
|
|
|
description: This can be run with elevated privileges to change permissions (`6` denotes the SUID bits) and then read, write, or execute a file.
|
2018-09-05 16:59:07 +00:00
|
|
|
functions:
|
2018-10-05 17:55:38 +00:00
|
|
|
suid:
|
2018-09-05 16:59:07 +00:00
|
|
|
- code: |
|
|
|
|
LFILE=file_to_change
|
2020-12-20 20:23:28 +00:00
|
|
|
./chmod 6777 $LFILE
|
2018-10-05 17:55:38 +00:00
|
|
|
sudo:
|
2018-09-05 16:59:07 +00:00
|
|
|
- code: |
|
|
|
|
LFILE=file_to_change
|
2020-12-20 20:23:28 +00:00
|
|
|
sudo chmod 6777 $LFILE
|
2018-09-05 16:59:07 +00:00
|
|
|
---
|