Linux capability shell wrapper that can spawn a privileged shell by dropping or manipulating capabilities.
capsh {0} 📎 0 capsh {0} Sandbox: execFile · Timeout: 30s
security.privilege-escalation.shell security.capabilities.manage Outputs
process.output Shell output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 4 MB |
| Network | low |
| Disk I/O | low |
Spawn a shell with current capabilities
capsh -- Spawn a root shell with SUID (set gid and uid to 0)
capsh --gid=0 --uid=0 -- capsh is a wrapper for manipulating Linux capabilities and spawning shells. When installed with SUID, it can spawn a root shell by setting gid and uid to 0.