# blackhatethicalhacking/terminatorz architecture

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

- Interactive diagram: https://gitdiagram.com/blackhatethicalhacking/terminatorz
- Repository: https://github.com/blackhatethicalhacking/terminatorz

## Overview

TerminatorZ is a Bash offensive vulnerability-exploitation framework. Its documented workflow gathers URLs through passive reconnaissance, validates live endpoints, pauses for operator confirmation, runs deterministic checks, and offers reports. The README documents these stages and capabilities, but no source excerpts were supplied, so module-level calls are not verified; uncertain internal links are shown as dashed with no evidence path.

Main entry points: [`terminatorz.sh`](https://github.com/blackhatethicalhacking/terminatorz/blob/main/terminatorz.sh) (TerminatorZ), [`modules/scanner.sh`](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh) (CVE Checks), [`modules/reporter.sh`](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/reporter.sh) (Report Generation), [`modules/ui.sh`](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/ui.sh) (Interrupt Handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scan["Recon And Scanning"]
  node_framework["TerminatorZ<br/>[terminatorz.sh]"]
  node_recon["URL Recon<br/>[scanner.sh]"]
  node_subfinder["Subdomain Discovery"]
  node_wayback["Archived URLs"]
  node_passive_sources["Passive Sources"]
  node_sanitizer["URL Sanitization<br/>[utils.sh]"]
  node_validation["Live Validation<br/>[scanner.sh]"]
  node_httpx["httpx"]
  node_curl["curl Fallback"]
  node_attack["CVE Checks<br/>[scanner.sh]"]
  node_payload_config["Payload Configuration<br/>[payloads.conf]"]
  node_asset_routing["Asset-Type Checks<br/>[scanner.sh]"]
end

subgraph group_operator["Operator Experience"]
  node_confirmation["Confirmation Gate<br/>[ui.sh]"]
  node_live_output["Live Progress UI<br/>[ui.sh]"]
  node_interrupt_handling["Interrupt Handling<br/>[ui.sh]"]
end

subgraph group_results["Findings And Reports"]
  node_findings[("Finding Records")]
  node_reporting["Report Generation<br/>[reporter.sh]"]
  node_html_report["HTML Report"]
  node_markdown_report["Markdown Report"]
end

node_operator_actor(("Operator"))

node_operator_actor -->|"starts scan"| node_framework
node_framework -.->|"begins recon"| node_recon
node_recon -->|"discovers subdomains"| node_subfinder
node_subfinder -->|"queries sources"| node_passive_sources
node_recon -->|"gathers archives"| node_wayback
node_recon -->|"sanitizes URLs"| node_sanitizer
node_framework -.->|"validates URLs"| node_validation
node_validation -->|"probes URLs"| node_httpx
node_validation -->|"falls back"| node_curl
node_framework -.->|"requests approval"| node_confirmation
node_operator_actor -->|"confirms or cancels"| node_confirmation
node_framework -.->|"starts checks"| node_attack
node_attack -.->|"uses payloads"| node_payload_config
node_attack -->|"selects check set"| node_asset_routing
node_attack -->|"writes findings"| node_findings
node_attack -->|"streams progress"| node_live_output
node_operator_actor -->|"interrupts scan"| node_interrupt_handling
node_interrupt_handling -->|"preserves partials"| node_findings
node_framework -.->|"offers reports"| node_reporting
node_reporting -.->|"renders findings"| node_findings
node_reporting -->|"generates HTML"| node_html_report
node_reporting -->|"generates Markdown"| node_markdown_report

click node_framework "https://github.com/blackhatethicalhacking/terminatorz/blob/main/terminatorz.sh"
click node_recon "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh"
click node_sanitizer "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/utils.sh"
click node_validation "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh"
click node_confirmation "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/ui.sh"
click node_attack "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh"
click node_payload_config "https://github.com/blackhatethicalhacking/terminatorz/blob/main/payloads.conf"
click node_asset_routing "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh"
click node_live_output "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/ui.sh"
click node_interrupt_handling "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/ui.sh"
click node_reporting "https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/reporter.sh"

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_framework,node_recon,node_subfinder,node_wayback,node_passive_sources,node_sanitizer,node_validation,node_httpx,node_curl,node_attack,node_payload_config,node_asset_routing toneBlue
class node_confirmation,node_live_output,node_interrupt_handling toneAmber
class node_findings,node_reporting,node_html_report,node_markdown_report toneMint
class node_operator_actor toneIndigo
```

## Components

### Recon And Scanning

- [TerminatorZ](https://github.com/blackhatethicalhacking/terminatorz/blob/main/terminatorz.sh): `terminatorz.sh`
- [URL Recon](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh): `modules/scanner.sh`
- **Subdomain Discovery**
- **Archived URLs**
- **Passive Sources**
- [URL Sanitization](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/utils.sh): `modules/utils.sh`
- [Live Validation](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh): `modules/scanner.sh`
- **httpx**
- **curl Fallback**
- [CVE Checks](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh): `modules/scanner.sh`
- [Payload Configuration](https://github.com/blackhatethicalhacking/terminatorz/blob/main/payloads.conf): `payloads.conf`
- [Asset-Type Checks](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/scanner.sh): `modules/scanner.sh`

### Operator Experience

- [Confirmation Gate](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/ui.sh): `modules/ui.sh`
- [Live Progress UI](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/ui.sh): `modules/ui.sh`
- [Interrupt Handling](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/ui.sh): `modules/ui.sh`

### Findings And Reports

- **Finding Records**
- [Report Generation](https://github.com/blackhatethicalhacking/terminatorz/blob/main/modules/reporter.sh): `modules/reporter.sh`
- **HTML Report**
- **Markdown Report**

### Other components

- **Operator**

## Connections

- Operator → TerminatorZ: starts scan (evidence: `README.md`)
- TerminatorZ → URL Recon: begins recon
- URL Recon → Subdomain Discovery: discovers subdomains (evidence: `README.md`)
- Subdomain Discovery → Passive Sources: queries sources (evidence: `README.md`)
- URL Recon → Archived URLs: gathers archives (evidence: `README.md`)
- URL Recon → URL Sanitization: sanitizes URLs (evidence: `README.md`)
- TerminatorZ → Live Validation: validates URLs
- Live Validation → httpx: probes URLs (evidence: `README.md`)
- Live Validation → curl Fallback: falls back (evidence: `README.md`)
- TerminatorZ → Confirmation Gate: requests approval
- Operator → Confirmation Gate: confirms or cancels (evidence: `README.md`)
- TerminatorZ → CVE Checks: starts checks
- CVE Checks → Payload Configuration: uses payloads
- CVE Checks → Asset-Type Checks: selects check set (evidence: `README.md`)
- CVE Checks → Finding Records: writes findings (evidence: `README.md`)
- CVE Checks → Live Progress UI: streams progress (evidence: `README.md`)
- Operator → Interrupt Handling: interrupts scan (evidence: `README.md`)
- Interrupt Handling → Finding Records: preserves partials (evidence: `README.md`)
- TerminatorZ → Report Generation: offers reports
- Report Generation → Finding Records: renders findings
- Report Generation → HTML Report: generates HTML (evidence: `README.md`)
- Report Generation → Markdown Report: generates Markdown (evidence: `README.md`)
