r2_command
Execute allowed radare2 commands on a binary to retrieve raw output for analysis, disassembly, info, search, and configuration. Directly access radare2's functionality for binary inspection.
Instructions
Execute a radare2 command directly and return the raw output. Only commands starting with these prefixes are allowed: a (analysis: aa, aaa, afl, af, ag, ax), p (print: pd, px, pf, pi), i (info: ij, iS, iE, ii, iz), s (seek), f (flags), / (search: /x, /R), e (eval/config), af (analysis functions), ag (analysis graphs), ax (analysis xrefs), CC (comments), dr (debug registers), om (open file map). Blocked characters: ; | > < ` ! ~ { } ( ) $ #!.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The r2 command to execute (must be on the allowlist) | |
| binary_path | Yes | Absolute path to the binary file | |
| analysis_level | No | Analysis level to run before executing the command | aaa |