# you7ef3li-alt/blackbox architecture

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

- Interactive diagram: https://gitdiagram.com/you7ef3li-alt/blackbox
- Repository: https://github.com/you7ef3li-alt/blackbox

## Overview

BlackBox is an interactive and CLI reconnaissance framework. Users supply a host, CIDR range, or domain; the entry point validates targets and dispatches network discovery, TCP port assessment, or domain OSINT, then displays results and can export OSINT reports. Its internal module runner and registry provide a separate dispatch path for registered modules. OSINT includes DNS, registration, geolocation, subdomain, web, and certificate collection stages. The README documents these capabilities; several stages share one implementation file, and unsampled internals are represented only where documented.

Main entry points: [`main.py`](https://github.com/you7ef3li-alt/blackbox/blob/main/main.py) (CLI Entry), [`modules/reconnaissance/osint.py`](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py) (OSINT Workflow), [`modules/core/registry.py`](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/core/registry.py) (Module Registry), [`utils/report_export.py`](https://github.com/you7ef3li-alt/blackbox/blob/main/utils/report_export.py) (Report Export)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["CLI and Results"]
  node_main["CLI Entry<br/>[main.py]"]
  node_formatter["Result Formatting<br/>[formatter.py]"]
  node_report_export["Report Export<br/>[report_export.py]"]
  node_reports[("Report Files")]
  node_spinner["Scan Progress<br/>[spinner.py]"]
end

subgraph group_dispatch["Module Dispatch"]
  node_runner["Module Runner<br/>[runner.py]"]
  node_registry["Module Registry<br/>[registry.py]"]
  node_base["Module Base<br/>[base.py]"]
end

subgraph group_recon["Network Reconnaissance"]
  node_dns_info["DNS Info<br/>[dns.py]"]
  node_network_discovery["Network Discovery<br/>[network.py]"]
  node_port_assessment["Port Assessment<br/>[ports.py]"]
end

subgraph group_osint["Domain OSINT"]
  node_osint_workflow["OSINT Workflow<br/>[osint.py]"]
  node_dns_records["DNS Records<br/>[osint.py]"]
  node_registration["Registration Data<br/>[osint.py]"]
  node_geolocation["Geolocation<br/>[osint.py]"]
  node_subdomains["Subdomain Search<br/>[osint.py]"]
  node_web_analysis["Web Analysis<br/>[osint.py]"]
  node_certificate["TLS Certificate<br/>[osint.py]"]
end

subgraph group_support["Shared Support"]
  node_target_validation["Target Validation<br/>[validators.py]"]
  node_logger["Application Logging<br/>[logger.py]"]
  node_settings["Runtime Settings<br/>[settings.py]"]
end

node_user(("Authorized User"))
node_external_services{{"Public Internet Services"}}

node_user -->|"starts"| node_main
node_main -->|"validates targets"| node_target_validation
node_main -->|"dispatches modules"| node_runner
node_runner -->|"resolves module"| node_registry
node_registry -->|"routes network"| node_network_discovery
node_registry -->|"routes ports"| node_port_assessment
node_registry -->|"routes DNS"| node_dns_info
node_main -->|"runs discovery"| node_network_discovery
node_main -->|"runs assessment"| node_port_assessment
node_main -->|"collects OSINT"| node_osint_workflow
node_osint_workflow -->|"resolves records"| node_dns_records
node_osint_workflow -->|"collects RDAP"| node_registration
node_osint_workflow -.->|"looks up location"| node_geolocation
node_osint_workflow -->|"searches subdomains"| node_subdomains
node_osint_workflow -->|"checks web"| node_web_analysis
node_osint_workflow -->|"analyzes certificate"| node_certificate
node_dns_records -->|"queries DNS"| node_external_services
node_registration -.->|"requests RDAP"| node_external_services
node_geolocation -->|"requests geodata"| node_external_services
node_web_analysis -->|"fetches web data"| node_external_services
node_certificate -->|"opens TLS connection"| node_external_services
node_main -->|"formats results"| node_formatter
node_main -->|"saves reports"| node_report_export
node_report_export -->|"formats report text"| node_formatter
node_report_export -->|"writes files"| node_reports
node_main -->|"shows progress"| node_spinner
node_main -->|"records errors"| node_logger
node_port_assessment -->|"uses timeout"| node_settings
node_dns_info -->|"uses base"| node_base

click node_main "https://github.com/you7ef3li-alt/blackbox/blob/main/main.py"
click node_target_validation "https://github.com/you7ef3li-alt/blackbox/blob/main/utils/validators.py"
click node_runner "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/core/runner.py"
click node_registry "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/core/registry.py"
click node_base "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/core/base.py"
click node_dns_info "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/dns.py"
click node_network_discovery "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/network.py"
click node_port_assessment "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/ports.py"
click node_osint_workflow "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py"
click node_dns_records "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py"
click node_registration "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py"
click node_geolocation "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py"
click node_subdomains "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py"
click node_web_analysis "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py"
click node_certificate "https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py"
click node_formatter "https://github.com/you7ef3li-alt/blackbox/blob/main/utils/formatter.py"
click node_report_export "https://github.com/you7ef3li-alt/blackbox/blob/main/utils/report_export.py"
click node_logger "https://github.com/you7ef3li-alt/blackbox/blob/main/utils/logger.py"
click node_spinner "https://github.com/you7ef3li-alt/blackbox/blob/main/utils/spinner.py"
click node_settings "https://github.com/you7ef3li-alt/blackbox/blob/main/config/settings.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_main,node_formatter,node_report_export,node_reports,node_spinner,node_user toneBlue
class node_runner,node_registry,node_base toneAmber
class node_dns_info,node_network_discovery,node_port_assessment toneMint
class node_osint_workflow,node_dns_records,node_registration,node_geolocation,node_subdomains,node_web_analysis,node_certificate toneRose
class node_target_validation,node_logger,node_settings,node_external_services toneIndigo
```

## Components

### CLI and Results

- [CLI Entry](https://github.com/you7ef3li-alt/blackbox/blob/main/main.py): `main.py`
- [Result Formatting](https://github.com/you7ef3li-alt/blackbox/blob/main/utils/formatter.py): `utils/formatter.py`
- [Report Export](https://github.com/you7ef3li-alt/blackbox/blob/main/utils/report_export.py): `utils/report_export.py`
- **Report Files**
- [Scan Progress](https://github.com/you7ef3li-alt/blackbox/blob/main/utils/spinner.py): `utils/spinner.py`

### Module Dispatch

- [Module Runner](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/core/runner.py): `modules/core/runner.py`
- [Module Registry](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/core/registry.py): `modules/core/registry.py`
- [Module Base](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/core/base.py): `modules/core/base.py`

### Network Reconnaissance

- [DNS Info](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/dns.py): `modules/reconnaissance/dns.py`
- [Network Discovery](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/network.py): `modules/reconnaissance/network.py`
- [Port Assessment](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/ports.py): `modules/reconnaissance/ports.py`

### Domain OSINT

- [OSINT Workflow](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py): `modules/reconnaissance/osint.py`
- [DNS Records](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py): `modules/reconnaissance/osint.py`
- [Registration Data](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py): `modules/reconnaissance/osint.py`
- [Geolocation](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py): `modules/reconnaissance/osint.py`
- [Subdomain Search](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py): `modules/reconnaissance/osint.py`
- [Web Analysis](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py): `modules/reconnaissance/osint.py`
- [TLS Certificate](https://github.com/you7ef3li-alt/blackbox/blob/main/modules/reconnaissance/osint.py): `modules/reconnaissance/osint.py`

### Shared Support

- [Target Validation](https://github.com/you7ef3li-alt/blackbox/blob/main/utils/validators.py): `utils/validators.py`
- [Application Logging](https://github.com/you7ef3li-alt/blackbox/blob/main/utils/logger.py): `utils/logger.py`
- [Runtime Settings](https://github.com/you7ef3li-alt/blackbox/blob/main/config/settings.py): `config/settings.py`

### Other components

- **Authorized User**
- **Public Internet Services**

## Connections

- Authorized User → CLI Entry: starts (evidence: `README.md`)
- CLI Entry → Target Validation: validates targets (evidence: `main.py`)
- CLI Entry → Module Runner: dispatches modules (evidence: `main.py`)
- Module Runner → Module Registry: resolves module (evidence: `modules/core/runner.py`)
- Module Registry → Network Discovery: routes network (evidence: `modules/core/registry.py`)
- Module Registry → Port Assessment: routes ports (evidence: `modules/core/registry.py`)
- Module Registry → DNS Info: routes DNS (evidence: `modules/core/registry.py`)
- CLI Entry → Network Discovery: runs discovery (evidence: `main.py`)
- CLI Entry → Port Assessment: runs assessment (evidence: `main.py`)
- CLI Entry → OSINT Workflow: collects OSINT (evidence: `main.py`)
- OSINT Workflow → DNS Records: resolves records (evidence: `modules/reconnaissance/osint.py`)
- OSINT Workflow → Registration Data: collects RDAP (evidence: `modules/reconnaissance/osint.py`)
- OSINT Workflow → Geolocation: looks up location (evidence: `README.md`)
- OSINT Workflow → Subdomain Search: searches subdomains (evidence: `modules/reconnaissance/osint.py`)
- OSINT Workflow → Web Analysis: checks web (evidence: `modules/reconnaissance/osint.py`)
- OSINT Workflow → TLS Certificate: analyzes certificate (evidence: `README.md`)
- DNS Records → Public Internet Services: queries DNS (evidence: `modules/reconnaissance/osint.py`)
- Registration Data → Public Internet Services: requests RDAP
- Geolocation → Public Internet Services: requests geodata (evidence: `modules/reconnaissance/osint.py`)
- Web Analysis → Public Internet Services: fetches web data (evidence: `modules/reconnaissance/osint.py`)
- TLS Certificate → Public Internet Services: opens TLS connection (evidence: `modules/reconnaissance/osint.py`)
- CLI Entry → Result Formatting: formats results (evidence: `main.py`)
- CLI Entry → Report Export: saves reports (evidence: `main.py`)
- Report Export → Result Formatting: formats report text (evidence: `utils/report_export.py`)
- Report Export → Report Files: writes files (evidence: `utils/report_export.py`)
- CLI Entry → Scan Progress: shows progress (evidence: `main.py`)
- CLI Entry → Application Logging: records errors (evidence: `main.py`)
- Port Assessment → Runtime Settings: uses timeout (evidence: `modules/reconnaissance/ports.py`)
- DNS Info → Module Base: uses base (evidence: `modules/reconnaissance/dns.py`)
