Manage file locks from shell scripts, can spawn a shell when used with privileges.
flock {u} 📎 u flock {u} Sandbox: execFile · Timeout: 30s
security.privilege-escalation.shell | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
u | string | No | - | Unlock a file descriptor | -u |
Outputs
process.output Shell output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 2 MB |
| Network | low |
| Disk I/O | low |
Spawn interactive shell via flock unlock
flock -u / /bin/sh Spawn privileged shell with SUID
flock -u / /bin/sh -p flock manages file locks from shell scripts. The -u / flag unlocks the root filesystem and can spawn a shell, useful for privilege escalation when used with sudo or SUID.