mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2026-03-07 14:36:23 +01:00
38 lines
642 B
Plaintext
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
|
|
...
|