1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/ln
2026-01-06 12:05:16 +01:00

12 lines
354 B
Plaintext

---
functions:
privilege-escalation:
- code: |-
ln -fs /bin/sh /bin/ln
ln
comment: |-
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.
contexts:
sudo:
...