From bd1d10bd03f31c517af453a78c65a68d8e8b15b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Meira=20Vital?= Date: Mon, 8 Jul 2019 13:59:40 -0300 Subject: [PATCH] Updating git sudo to not drop capabilities Close #66 --- _gtfobins/git.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_gtfobins/git.md b/_gtfobins/git.md index 5d0443c..e9d0a92 100644 --- a/_gtfobins/git.md +++ b/_gtfobins/git.md @@ -8,9 +8,9 @@ functions: !/bin/sh sudo: - code: PAGER='sh -c "exec sh 0<&1"' sudo -E git -p help - - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. Several capabilities might be dropped in the child process using this method. + - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. code: | - sudo git help config + sudo git -p help config !/bin/sh limited-suid: - code: PAGER='sh -c "exec sh 0<&1"' ./git -p help