database enabled community medium v1.0.0

psql

PostgreSQL client, can execute SQL queries and read files via COPY.

📋 Live Preview
psql -c "COPY (SELECT '') TO PROGRAM '/bin/sh'"
psql -c "COPY (SELECT '') TO PROGRAM '/bin/sh'"

Sandbox: execFile · Timeout: 60s

Capabilities

system.file.read
security.execution.command

Contract

Outputs

process.output

Query output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory8 MB
Networknone
Disk I/Olow

Examples

Execute command via psql

psql -c "COPY (SELECT '') TO PROGRAM '/bin/sh'"

Related Tools

mysqlsqlite3

References