CatalogGTFOBins

GTFO · Tool

run-mailcap

4 techniquesLinuxGTFOBinsGPL-3.0

inherit ← less

ExecutionFile ReadFile WritePrivilege EscalationLinux
run-mailcap --action=view text/plain:/etc/hosts
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
inherit, from:less

inherit ← less

ExecutionFile ReadFile WriteLinux
run-mailcap --action=view text/plain:/etc/hosts
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
inherit, from:less

inherit ← vi

File ReadFile WriteExecutionPrivilege EscalationLinux

The file must exist and be not empty.

run-mailcap --action=edit text/plain:/path/to/output-file
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
inherit, from:vi

inherit ← vi

File ReadFile WriteExecutionLinux

The file must exist and be not empty.

run-mailcap --action=edit text/plain:/path/to/output-file
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
inherit, from:vi