REA binary layout notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

REA’s inspect-binary-layout path answers what an explicit file contains — sections/segments, original symbols/relocations, static linkage names and mitigation indicators — without an active Hopper/Ghidra/IDA target. Prefer binary-diagnostics.md.

Minimal path

export REA_PWNTOOLS_PYTHON=/absolute/isolated-env/bin/python
rea inspect-binary-layout /absolute/path/selected.elf --json

MCP inspect_binary_layout needs an absolute path.

Mental model

  1. Bring your own verified Python env; REA isolates the process and does not mutate your init files.
  2. Parsing reads an owned stable snapshot — the original file is unchanged.
  3. Duplicate symbol names stay separate entries; unresolved cases stay explicit unknowns.
  4. CTF is one use; crash triage and ordinary inspection share the same capability.

Layout facts are not permission to exploit a binary. Inspect only files you are authorized to examine; do not ask RepoRead for exploit PoCs.

RepoRead is unofficial. Prefer binary-diagnostics.md.

FAQ

Does REA install pwntools or GDB?

No. Upstream states REA never installs Python, packages or GDB. You point REA_PWNTOOLS_PYTHON at an absolute interpreter whose env already has unchanged pwntools 4.15.0, pyelftools 0.33 and Unicorn 2.1.2.

What was initially verified?

Docs say initial real verification covers Linux x64, ELF64 x86-64 little-endian EXEC/DYN/REL.

CLI example?

REA_PWNTOOLS_PYTHON=/absolute/env/bin/python rea inspect-binary-layout ./selected.elf --json

Are reported addresses runtime addresses?

No. Docs emphasize linked addresses/offsets are not runtime addresses; runtime load base remains null in this path.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources