From a3b63dae9e1930a2863e11cd03c84e65e5eddbd5 Mon Sep 17 00:00:00 2001 From: nightshiba <49189362+nightshiba@users.noreply.github.com> Date: Sat, 27 Feb 2021 12:39:48 +0100 Subject: [PATCH 1/2] Improved man.md shell function Replaced a command requiring interactive actions with a one-liner --- _gtfobins/man.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_gtfobins/man.md b/_gtfobins/man.md index dafd551..b8ef2bc 100644 --- a/_gtfobins/man.md +++ b/_gtfobins/man.md @@ -3,8 +3,7 @@ description: This invokes the default pager, which is likely to be [`less`](/gt functions: shell: - code: | - man man - !/bin/sh + man --html='$(sh > /dev/tty)' sh file-read: - code: man file_to_read sudo: From eda1cde6a1adffe3bffbc455a1b31c131422b5c6 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sat, 27 Feb 2021 17:09:41 +0100 Subject: [PATCH 2/2] Improve the alternative shell function --- _gtfobins/man.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_gtfobins/man.md b/_gtfobins/man.md index b8ef2bc..eb3b8d2 100644 --- a/_gtfobins/man.md +++ b/_gtfobins/man.md @@ -3,7 +3,11 @@ description: This invokes the default pager, which is likely to be [`less`](/gt functions: shell: - code: | - man --html='$(sh > /dev/tty)' sh + man man + !/bin/sh + - description: This only works for GNU `man` and requires GNU `troff` (`groff` to be installed). + code: | + man '-H/bin/sh #' man file-read: - code: man file_to_read sudo: