math enabled community medium v1.0.0

dc

Reverse-polish desk calculator that can execute shell commands via the ! operator.

📋 Live Preview
dc {e}
📎 e
dc {e}

Sandbox: execFile · Timeout: 30s

Capabilities

security.privilege-escalation.shell
math.calculate

Parameters

Name Type Required Default Description Aliases
e string No - Evaluate expression -e

Contract

Inputs

system.command.string

Command to execute via dc -e

Outputs

process.output

Shell or command output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Consumes

system.command.string

Resource Profile

ResourceValue
CPUlow
Memory2 MB
Networklow
Disk I/Olow

Examples

Spawn interactive shell via dc -e with ! operator

dc -e '!/bin/sh'

Documentation

dc — Desk Calculator

dc is a reverse-polish desk calculator. The ! operator executes shell commands, making it useful for privilege escalation when used with sudo or SUID.

Related Tools

bc

References