From c3710d7396b2b4ea8711e9fbbbd50b4dd78f297a Mon Sep 17 00:00:00 2001 From: Emilio Pinna Date: Mon, 28 May 2018 18:37:15 +0100 Subject: [PATCH] Add read-write to less, man, more, and vi --- _gtfobins/less.md | 3 +++ _gtfobins/man.md | 3 +++ _gtfobins/more.md | 3 +++ _gtfobins/vi.md | 7 +++++++ 4 files changed, 16 insertions(+) diff --git a/_gtfobins/less.md b/_gtfobins/less.md index 07f76c4..68854dc 100644 --- a/_gtfobins/less.md +++ b/_gtfobins/less.md @@ -15,4 +15,7 @@ functions: - code: |- ./less /etc/profile !/bin/sh + file-read: + - code: | + less file_to_read --- diff --git a/_gtfobins/man.md b/_gtfobins/man.md index e25fa87..14d36c7 100644 --- a/_gtfobins/man.md +++ b/_gtfobins/man.md @@ -12,4 +12,7 @@ functions: - code: |- ./man man !/bin/sh + file-read: + - code: | + man file_to_read --- diff --git a/_gtfobins/more.md b/_gtfobins/more.md index 0e50f41..2ef498a 100644 --- a/_gtfobins/more.md +++ b/_gtfobins/more.md @@ -12,4 +12,7 @@ functions: - code: |- TERM= ./more /etc/profile !/bin/sh + file-read: + - code: | + more file_to_read --- diff --git a/_gtfobins/vi.md b/_gtfobins/vi.md index 41520ca..94f557d 100644 --- a/_gtfobins/vi.md +++ b/_gtfobins/vi.md @@ -10,4 +10,11 @@ functions: - code: sudo vi -c ':!/bin/sh' suid-enabled: - code: ./vi -c ':!/bin/sh -p' + file-read: + - code: | + vi file_to_read + file-write: + - code: | + vi file_to_write + w ---