From a48303c2b98f2090acd82121007e1218a98d35ec Mon Sep 17 00:00:00 2001 From: Shikata Date: Mon, 11 Jan 2021 16:18:18 +0200 Subject: [PATCH] Remove redundant sudo from SUID category in nohup --- _gtfobins/nohup.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_gtfobins/nohup.md b/_gtfobins/nohup.md index 2024e07..ff669c2 100644 --- a/_gtfobins/nohup.md +++ b/_gtfobins/nohup.md @@ -7,8 +7,8 @@ functions: COMMAND='/usr/bin/id' nohup "$COMMAND" cat nohup.out - sudo: - - code: nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)" suid: - - code: sudo nohup /bin/sh -p -c "sh -p <$(tty) >$(tty) 2>$(tty)" + - code: nohup /bin/sh -p -c "sh -p <$(tty) >$(tty) 2>$(tty)" + sudo: + - code: sudo nohup /bin/sh -c "sh <$(tty) >$(tty) 2>$(tty)" ---