# senzdetta/comet architecture

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

- Interactive diagram: https://gitdiagram.com/senzdetta/comet
- Repository: https://github.com/senzdetta/comet

## Overview

Comet is a reconnaissance and vulnerability-scanning CLI. Its user workflow begins at the command-line entry point, routes into a selected scan, performs network or local-list analysis, and presents findings in the terminal. The feature set spans network discovery, web assessment, and identity/link reconnaissance; subdomain takeover detection explicitly reuses DNS brute force. Dispatch links not shown in the sampled source are marked unverified. The graph reflects README capabilities and indexed modules without assuming unsampled call relationships.

Main entry points: [`console/console.go`](https://github.com/senzdetta/comet/blob/main/console/console.go) (Command interface), [`comet.go`](https://github.com/senzdetta/comet/blob/main/comet.go) (Comet entry), [`module/subdomain/execute.go`](https://github.com/senzdetta/comet/blob/main/module/subdomain/execute.go) (Subdomain discovery), [`module/hostsearch/execute.go`](https://github.com/senzdetta/comet/blob/main/module/hostsearch/execute.go) (Host search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["CLI entry"]
  node_entry["Comet entry<br/>[comet.go]"]
  node_commands["Command interface<br/>[console.go]"]
end

subgraph group_discovery["Network discovery"]
  node_dns["DNS lookup<br/>[execute.go]"]
  node_port["Port scanner<br/>[execute.go]"]
  node_subdomain["Subdomain discovery<br/>[execute.go]"]
  node_hostsearch["Host search<br/>[execute.go]"]
  node_takeover["Takeover scanner<br/>[execute.go]"]
end

subgraph group_web["Web assessment"]
  node_cors["CORS scanner<br/>[execute.go]"]
  node_headers["Header analysis<br/>[execute.go]"]
  node_pathfuzzer["Path fuzzer<br/>[execute.go]"]
  node_paramscan["Parameter scan<br/>[execute.go]"]
  node_sqlscan["SQL injection scan<br/>[execute.go]"]
end

subgraph group_recon["Identity and links"]
  node_tracelink["Link crawler<br/>[execute.go]"]
  node_userhunt["Username hunt<br/>[execute.go]"]
end

node_user(("CLI user"))
node_hostsearch_api["Host search API"]

node_user -.->|"runs CLI"| node_entry
node_entry -->|"enters console"| node_commands
node_commands -.->|"dispatches"| node_dns
node_commands -.->|"dispatches"| node_port
node_commands -.->|"dispatches"| node_subdomain
node_commands -->|"dispatches"| node_hostsearch
node_commands -.->|"dispatches"| node_takeover
node_commands -.->|"dispatches"| node_cors
node_commands -.->|"dispatches"| node_headers
node_commands -.->|"dispatches"| node_pathfuzzer
node_commands -.->|"dispatches"| node_paramscan
node_commands -.->|"dispatches"| node_sqlscan
node_commands -.->|"dispatches"| node_tracelink
node_commands -.->|"dispatches"| node_userhunt
node_subdomain -->|"brute-forces DNS"| node_takeover
node_hostsearch -->|"queries"| node_hostsearch_api

click node_entry "https://github.com/senzdetta/comet/blob/main/comet.go"
click node_commands "https://github.com/senzdetta/comet/blob/main/console/console.go"
click node_dns "https://github.com/senzdetta/comet/blob/main/module/dnslookup/execute.go"
click node_port "https://github.com/senzdetta/comet/blob/main/module/portscan/execute.go"
click node_subdomain "https://github.com/senzdetta/comet/blob/main/module/subdomain/execute.go"
click node_hostsearch "https://github.com/senzdetta/comet/blob/main/module/hostsearch/execute.go"
click node_takeover "https://github.com/senzdetta/comet/blob/main/module/subtakeover/execute.go"
click node_cors "https://github.com/senzdetta/comet/blob/main/module/corsscan/execute.go"
click node_headers "https://github.com/senzdetta/comet/blob/main/module/header/execute.go"
click node_pathfuzzer "https://github.com/senzdetta/comet/blob/main/module/pathfuzzer/execute.go"
click node_paramscan "https://github.com/senzdetta/comet/blob/main/module/paramscan/execute.go"
click node_sqlscan "https://github.com/senzdetta/comet/blob/main/module/sqlscan/execute.go"
click node_tracelink "https://github.com/senzdetta/comet/blob/main/module/tracelink/execute.go"
click node_userhunt "https://github.com/senzdetta/comet/blob/main/module/userhunt/execute.go"

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_entry,node_commands,node_user toneBlue
class node_dns,node_port,node_subdomain,node_hostsearch,node_takeover toneAmber
class node_cors,node_headers,node_pathfuzzer,node_paramscan,node_sqlscan,node_hostsearch_api toneMint
class node_tracelink,node_userhunt toneRose
```

## Components

### CLI entry

- [Comet entry](https://github.com/senzdetta/comet/blob/main/comet.go): `comet.go`
- [Command interface](https://github.com/senzdetta/comet/blob/main/console/console.go): `console/console.go`

### Network discovery

- [DNS lookup](https://github.com/senzdetta/comet/blob/main/module/dnslookup/execute.go): `module/dnslookup/execute.go`
- [Port scanner](https://github.com/senzdetta/comet/blob/main/module/portscan/execute.go): `module/portscan/execute.go`
- [Subdomain discovery](https://github.com/senzdetta/comet/blob/main/module/subdomain/execute.go): `module/subdomain/execute.go`
- [Host search](https://github.com/senzdetta/comet/blob/main/module/hostsearch/execute.go): `module/hostsearch/execute.go`
- [Takeover scanner](https://github.com/senzdetta/comet/blob/main/module/subtakeover/execute.go): `module/subtakeover/execute.go`

### Web assessment

- [CORS scanner](https://github.com/senzdetta/comet/blob/main/module/corsscan/execute.go): `module/corsscan/execute.go`
- [Header analysis](https://github.com/senzdetta/comet/blob/main/module/header/execute.go): `module/header/execute.go`
- [Path fuzzer](https://github.com/senzdetta/comet/blob/main/module/pathfuzzer/execute.go): `module/pathfuzzer/execute.go`
- [Parameter scan](https://github.com/senzdetta/comet/blob/main/module/paramscan/execute.go): `module/paramscan/execute.go`
- [SQL injection scan](https://github.com/senzdetta/comet/blob/main/module/sqlscan/execute.go): `module/sqlscan/execute.go`

### Identity and links

- [Link crawler](https://github.com/senzdetta/comet/blob/main/module/tracelink/execute.go): `module/tracelink/execute.go`
- [Username hunt](https://github.com/senzdetta/comet/blob/main/module/userhunt/execute.go): `module/userhunt/execute.go`

### Other components

- **CLI user**
- **Host search API**

## Connections

- CLI user → Comet entry: runs CLI
- Comet entry → Command interface: enters console (evidence: `comet.go`)
- Command interface → DNS lookup: dispatches
- Command interface → Port scanner: dispatches
- Command interface → Subdomain discovery: dispatches
- Command interface → Host search: dispatches
- Command interface → Takeover scanner: dispatches
- Command interface → CORS scanner: dispatches
- Command interface → Header analysis: dispatches
- Command interface → Path fuzzer: dispatches
- Command interface → Parameter scan: dispatches
- Command interface → SQL injection scan: dispatches
- Command interface → Link crawler: dispatches
- Command interface → Username hunt: dispatches
- Subdomain discovery → Takeover scanner: brute-forces DNS (evidence: `module/subtakeover/execute.go`)
- Host search → Host search API: queries (evidence: `module/hostsearch/execute.go`)
