How dxrie/binspy works
BinSpy is a terminal ELF inspection tool. The user supplies a binary; the entry point loads and validates it, then launches the TUI, which discovers functions, disassembles selected code, checks mitigations, and displays contextual vulnerability findings. The graph separates ELF analysis, vulnerability analysis, and presentation. The standalone display module is included, but no call to it is shown. Relationships involving unsampled implementation details are omitted; README statements support documented capabilities, while source excerpts support the shown calls.
Main entry points: tui.c Interactive TUI · main.c Program entry · elf_parser.c ELF loading and validation · vuln_analyzer.c Vulnerability analysis
Components 12
Entry workflow
- Program entry
src/main.c
ELF analysis
- ELF loading and validation
src/elf_parser.c - Function discovery
src/elf_parser.c - Mitigation checks
src/elf_parser.c
Security analysis
- Vulnerability analysis
src/vuln_analyzer.c
Presentation
- Interactive TUI
src/tui.c - Assembly rendering
src/tui.c - Terminal display helpers
src/display.c
Other components
- Analyst
- ELF file
- Capstone disassembler
- Ncurses terminal UI
Connections 10
- Analyst → Program entry: starts with
src/main.c - ELF file → ELF loading and validation: loads
src/elf_parser.c - Program entry → ELF loading and validation: initializes and validates
src/main.c - Program entry → Interactive TUI: launches
src/main.c - Interactive TUI → Function discovery: finds functions
src/tui.c - Interactive TUI → Mitigation checks: checks protections
src/tui.c - Interactive TUI → Assembly rendering: renders selected code
src/tui.c - Assembly rendering → Capstone disassembler: disassembles bytes
src/tui.c - Interactive TUI → Vulnerability analysis: analyzes instructions
src/tui.c - Interactive TUI → Ncurses terminal UI: draws interface
src/tui.c