From 3f03bc2af963ea2eacf025c1bcb3e012703993ae Mon Sep 17 00:00:00 2001 From: _Magenta_ <0_magenta_0@mail.ru> Date: Fri, 16 Dec 2022 20:13:01 +0300 Subject: [PATCH] Add vi(m)-style shell spawning to the less binary Co-authored-by: Andrea Cardaci --- _gtfobins/less.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_gtfobins/less.md b/_gtfobins/less.md index 3d4ea2d..14a5daa 100644 --- a/_gtfobins/less.md +++ b/_gtfobins/less.md @@ -7,6 +7,9 @@ functions: - code: | VISUAL="/bin/sh -c '/bin/sh'" less /etc/profile v + - code: | + less /etc/profile + v:shell file-read: - code: less file_to_read - description: This is useful when `less` is used as a pager by another binary to read a different file.