# nightbringer21/fridump architecture

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

- Interactive diagram: https://gitdiagram.com/nightbringer21/fridump
- Repository: https://github.com/nightbringer21/fridump

## Overview

Fridump is a command-line memory-dumping tool for processes accessible through Frida. The workflow parses options, attaches to the selected process, enumerates permitted memory ranges through an injected Frida script, and saves each range—splitting oversized ranges into chunks. An optional pass extracts printable strings from dump files. The graph reflects the sampled implementation and documented Frida prerequisites; the tool’s attachment and memory access depend on the external Frida runtime and target process.

Main entry points: [`fridump.py`](https://github.com/nightbringer21/fridump/blob/master/fridump.py) (Dump controller), [`utils.py`](https://github.com/nightbringer21/fridump/blob/master/utils.py) (String extraction), [`dumper.py`](https://github.com/nightbringer21/fridump/blob/master/dumper.py) (Range dumper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["CLI and control"]
  node_cli["CLI and options<br/>[fridump.py]"]
  node_controller["Dump controller<br/>[fridump.py]"]
end

subgraph group_memory["Memory capture"]
  node_rpc["Injected RPC agent<br/>[fridump.py]"]
  node_ranges["Memory ranges<br/>[fridump.py]"]
  node_dump["Range dumper<br/>[dumper.py]"]
  node_chunker["Chunk splitter<br/>[dumper.py]"]
end

subgraph group_output["Output processing"]
  node_files[("Dump files<br/>[dumper.py]")]
  node_strings["String extraction<br/>[utils.py]"]
  node_progress["Progress display<br/>[utils.py]"]
  node_messages["Message callback<br/>[utils.py]"]
end

node_user(("Operator"))
node_frida["Frida runtime"]
node_target["Target process"]

node_user -->|"provides options"| node_cli
node_cli -->|"configures"| node_controller
node_controller -->|"attaches via"| node_frida
node_frida -.->|"attaches to"| node_target
node_controller -->|"creates and loads"| node_rpc
node_rpc -->|"reads memory"| node_target
node_controller -->|"requests ranges"| node_ranges
node_controller -->|"writes ranges"| node_dump
node_controller -->|"splits oversized ranges"| node_chunker
node_chunker -->|"writes chunks"| node_dump
node_dump -->|"saves bytes"| node_files
node_controller -->|"optionally extracts"| node_strings
node_strings -->|"reads dumps"| node_files
node_strings -->|"appends strings"| node_files
node_controller -->|"updates progress"| node_progress
node_controller -->|"registers callback"| node_messages

click node_cli "https://github.com/nightbringer21/fridump/blob/master/fridump.py"
click node_controller "https://github.com/nightbringer21/fridump/blob/master/fridump.py"
click node_rpc "https://github.com/nightbringer21/fridump/blob/master/fridump.py"
click node_ranges "https://github.com/nightbringer21/fridump/blob/master/fridump.py"
click node_dump "https://github.com/nightbringer21/fridump/blob/master/dumper.py"
click node_chunker "https://github.com/nightbringer21/fridump/blob/master/dumper.py"
click node_files "https://github.com/nightbringer21/fridump/blob/master/dumper.py"
click node_strings "https://github.com/nightbringer21/fridump/blob/master/utils.py"
click node_progress "https://github.com/nightbringer21/fridump/blob/master/utils.py"
click node_messages "https://github.com/nightbringer21/fridump/blob/master/utils.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_cli,node_controller toneBlue
class node_rpc,node_ranges,node_dump,node_chunker toneAmber
class node_files,node_strings,node_progress,node_messages toneMint
class node_user,node_frida,node_target toneIndigo
```

## Components

### CLI and control

- [CLI and options](https://github.com/nightbringer21/fridump/blob/master/fridump.py): `fridump.py`
- [Dump controller](https://github.com/nightbringer21/fridump/blob/master/fridump.py): `fridump.py`

### Memory capture

- [Injected RPC agent](https://github.com/nightbringer21/fridump/blob/master/fridump.py): `fridump.py`
- [Memory ranges](https://github.com/nightbringer21/fridump/blob/master/fridump.py): `fridump.py`
- [Range dumper](https://github.com/nightbringer21/fridump/blob/master/dumper.py): `dumper.py`
- [Chunk splitter](https://github.com/nightbringer21/fridump/blob/master/dumper.py): `dumper.py`

### Output processing

- [Dump files](https://github.com/nightbringer21/fridump/blob/master/dumper.py): `dumper.py`
- [String extraction](https://github.com/nightbringer21/fridump/blob/master/utils.py): `utils.py`
- [Progress display](https://github.com/nightbringer21/fridump/blob/master/utils.py): `utils.py`
- [Message callback](https://github.com/nightbringer21/fridump/blob/master/utils.py): `utils.py`

### Other components

- **Operator**
- **Frida runtime**
- **Target process**

## Connections

- Operator → CLI and options: provides options (evidence: `README.md`)
- CLI and options → Dump controller: configures (evidence: `fridump.py`)
- Dump controller → Frida runtime: attaches via (evidence: `fridump.py`)
- Frida runtime → Target process: attaches to (evidence: `README.md`)
- Dump controller → Injected RPC agent: creates and loads (evidence: `fridump.py`)
- Injected RPC agent → Target process: reads memory (evidence: `fridump.py`)
- Dump controller → Memory ranges: requests ranges (evidence: `fridump.py`)
- Dump controller → Range dumper: writes ranges (evidence: `fridump.py`)
- Dump controller → Chunk splitter: splits oversized ranges (evidence: `fridump.py`)
- Chunk splitter → Range dumper: writes chunks (evidence: `dumper.py`)
- Range dumper → Dump files: saves bytes (evidence: `dumper.py`)
- Dump controller → String extraction: optionally extracts (evidence: `fridump.py`)
- String extraction → Dump files: reads dumps (evidence: `utils.py`)
- String extraction → Dump files: appends strings (evidence: `utils.py`)
- Dump controller → Progress display: updates progress (evidence: `fridump.py`)
- Dump controller → Message callback: registers callback (evidence: `fridump.py`)
