lang enabled community medium v1.0.0

ghc

Glasgow Haskell Compiler, can execute code and spawn shells via compiled binaries.

📋 Live Preview
ghc -e 'System.Posix.Process.executeFile "/bin/sh" False [] Nothing'
ghc -e 'System.Posix.Process.executeFile "/bin/sh" False [] Nothing'

Sandbox: execFile · Timeout: 60s

Capabilities

security.privilege-escalation.shell
security.execution.command

Contract

Outputs

process.output

Shell output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory32 MB
Networknone
Disk I/Olow

Examples

Spawn a shell via ghc

ghc -e 'System.Posix.Process.executeFile "/bin/sh" False [] Nothing'

Related Tools

ghcirunghc

References