1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-16 17:01:38 +02:00
GTFOBins.github.io/_gtfobins/yarn.md

13 lines
403 B
Markdown
Raw Permalink 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
---