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/vim
Andrea Cardaci 18b34f78fa Add vim file write
Adapted from and close #410.
2026-01-16 20:35:46 +01:00

38 lines
642 B
Plaintext

---
functions:
file-read:
- binary: false
code: |-
vim -c ':redir! >/path/to/output-file | echo "DATA" | redir END | q'
contexts:
sudo:
suid:
unprivileged:
inherit:
- code: |-
vim -c ':py ...'
comment: |-
This allows to run Python code (`...`).
contexts:
sudo:
suid:
unprivileged:
from: python
- code: |-
vim -c ':lua ...'
comment: |-
This allows to run Lua code (`...`).
contexts:
sudo:
suid:
unprivileged:
from: lua
- code: |-
vim
contexts:
sudo:
suid:
unprivileged:
from: vi
...