network enabled community medium v1.0.0

mail

GNU mail processor that can spawn a shell via exec flag or mail interactive mode.

📋 Live Preview
mail {exec} {f}
๐Ÿ“Ž exec ๐Ÿ“Ž f
mail {exec} {f}

Sandbox: execFile · Timeout: 30s

Capabilities

security.privilege-escalation.shell
network.email.client

Parameters

Name Type Required Default Description Aliases
exec string No - Execute command after processing --exec
f file No - Read mailbox from file -f

Contract

Outputs

process.output

Shell output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory4 MB
Networklow
Disk I/Olow

Examples

Spawn interactive shell via --exec flag

mail --exec='!/bin/sh'

Spawn shell via interactive mail command

mail -f /etc/hosts
!/bin/sh

Documentation

mail โ€” GNU Mail Processor

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.

Related Tools

alpinemutt

References