From 61f79ef933d2a69fbf3b4e53685f88d42041b0b5 Mon Sep 17 00:00:00 2001 From: Wlayzz <34021743+wlayzz@users.noreply.github.com> Date: Sat, 25 Jun 2022 18:02:16 +0200 Subject: [PATCH] Update vim Co-authored-by: Andrea Cardaci --- _gtfobins/vim.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/_gtfobins/vim.md b/_gtfobins/vim.md index 530c135..f460320 100644 --- a/_gtfobins/vim.md +++ b/_gtfobins/vim.md @@ -2,10 +2,7 @@ functions: shell: - code: vim -c ':!/bin/sh' - - code: | - vim - :set shell=/bin/sh - :shell + - code: vim --cmd ':set shell=/bin/sh|:shell' - 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")' - description: This requires that `vim` is compiled with Lua support.