build enabled community medium v1.0.0

gcc

GNU C compiler that can read files, delete files, and spawn shells via wrapper/plugin options.

📋 Live Preview
gcc {x} {E} {o} {wrapper}
๐Ÿ“Ž x ๐Ÿ“Ž E ๐Ÿ“Ž o ๐Ÿ“Ž wrapper
gcc {x} {E} {o} {wrapper}

Sandbox: execFile · Timeout: 60s

Capabilities

system.file.read
system.file.write
security.privilege-escalation.shell
build.compile.c

Parameters

Name Type Required Default Description Aliases
x string No - Specify language -x
E string No - Preprocess only -E
at-file file No - Read options from file @
o file No - Output file -o
wrapper string No - Invoke command with wrapper -wrapper

Artifacts

TypeDescriptionMIMESchemaTrust
build.compiled.binaryCompiled executableapplication/x-executable-community

Contract

Inputs

system.file.path

Path to source file

Outputs

build.compiled.binary

Compiled output

Side effects: process_spawn

Workflow Edges

Produces

build.compiled.binary

Consumes

system.file.path

Resource Profile

ResourceValue
CPUhigh
Memory128 MB
Networklow
Disk I/Omedium

Examples

Read arbitrary file via C preprocessing

gcc -x c -E /path/to/input-file

Read file via @file directive leaked as error messages

gcc @/path/to/input-file

Spawn interactive shell via wrapper

gcc -wrapper /bin/sh,-s x

Documentation

gcc โ€” GNU C Compiler

gcc is the GNU C compiler. When available via sudo, it can read arbitrary files through preprocessing (-x c -E) or the @file directive, delete files, and spawn shells via the -wrapper option.

Related Tools

g++asld

References