# talha/crash_monitor architecture

> Architecture diagram of the GitHub repository talha/crash_monitor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/talha/crash_monitor
- Repository: https://github.com/talha/crash_monitor

## Overview

Crash Monitor is a Windows debugger for fuzzed 32-bit processes. The user supplies a target executable; the monitor launches or attaches to it, watches debug events, and on an access violation records crash status and writes a dump. A separate status service lets an external fuzzer check whether the target crashed. The graph preserves the Boofuzz example as a distinct integration. Source excerpts show process/debug and dump handling, but omit portions of the listener and orchestration, so uncertain internal calls are not asserted.

Main entry points: [`src/main.rs`](https://github.com/talha/crash_monitor/blob/master/src/main.rs) (Debug events), [`boofuzz_fuzzer.py`](https://github.com/talha/crash_monitor/blob/master/boofuzz_fuzzer.py) (Boofuzz client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_monitor["Monitor runtime"]
  node_input["Target input<br/>[main.rs]"]
  node_debugger["Process debugger<br/>[main.rs]"]
  node_events["Debug events<br/>[main.rs]"]
end

subgraph group_crash["Crash handling"]
  node_crash_status[("Crash status<br/>[main.rs]")]
  node_dump["Crash dump<br/>[main.rs]"]
end

subgraph group_integration["Fuzzer integration"]
  node_status_service["Status service<br/>[main.rs]"]
  node_boofuzz["Boofuzz client<br/>[boofuzz_fuzzer.py]"]
end

node_user(("Operator"))
node_target["Fuzz target"]

node_user -->|"provides path"| node_input
node_input -->|"starts target"| node_debugger
node_debugger -->|"observes events"| node_events
node_events -->|"updates status"| node_crash_status
node_events -->|"writes dump"| node_dump
node_boofuzz -->|"sends cases"| node_target
node_boofuzz -->|"checks status"| node_status_service
node_status_service -.->|"reads status"| node_crash_status

click node_input "https://github.com/talha/crash_monitor/blob/master/src/main.rs"
click node_debugger "https://github.com/talha/crash_monitor/blob/master/src/main.rs"
click node_events "https://github.com/talha/crash_monitor/blob/master/src/main.rs"
click node_crash_status "https://github.com/talha/crash_monitor/blob/master/src/main.rs"
click node_dump "https://github.com/talha/crash_monitor/blob/master/src/main.rs"
click node_status_service "https://github.com/talha/crash_monitor/blob/master/src/main.rs"
click node_boofuzz "https://github.com/talha/crash_monitor/blob/master/boofuzz_fuzzer.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_input,node_debugger,node_events toneBlue
class node_crash_status,node_dump toneAmber
class node_status_service,node_boofuzz toneMint
class node_user,node_target toneIndigo
```

## Components

### Monitor runtime

- [Target input](https://github.com/talha/crash_monitor/blob/master/src/main.rs): `src/main.rs`
- [Process debugger](https://github.com/talha/crash_monitor/blob/master/src/main.rs): `src/main.rs`
- [Debug events](https://github.com/talha/crash_monitor/blob/master/src/main.rs): `src/main.rs`

### Crash handling

- [Crash status](https://github.com/talha/crash_monitor/blob/master/src/main.rs): `src/main.rs`
- [Crash dump](https://github.com/talha/crash_monitor/blob/master/src/main.rs): `src/main.rs`

### Fuzzer integration

- [Status service](https://github.com/talha/crash_monitor/blob/master/src/main.rs): `src/main.rs`
- [Boofuzz client](https://github.com/talha/crash_monitor/blob/master/boofuzz_fuzzer.py): `boofuzz_fuzzer.py`

### Other components

- **Operator**
- **Fuzz target**

## Connections

- Operator → Target input: provides path (evidence: `README.md`)
- Target input → Process debugger: starts target (evidence: `README.md`)
- Process debugger → Debug events: observes events (evidence: `src/main.rs`)
- Debug events → Crash status: updates status (evidence: `src/main.rs`)
- Debug events → Crash dump: writes dump (evidence: `src/main.rs`)
- Boofuzz client → Fuzz target: sends cases (evidence: `boofuzz_fuzzer.py`)
- Boofuzz client → Status service: checks status (evidence: `boofuzz_fuzzer.py`)
- Status service → Crash status: reads status (evidence: `src/main.rs`)
