# dotx-47/wp-dex architecture

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

- Interactive diagram: https://gitdiagram.com/dotx-47/wp-dex
- Repository: https://github.com/dotx-47/wp-dex

## Overview

WP-Dex is a single-file Python tool for passive WordPress reconnaissance. The principal workflow is: a researcher supplies a target, the tool gathers publicly exposed WordPress, server, content, contact, and security information, matches discovered plugins against its offline vulnerability data, then presents a structured terminal report and optionally JSON. The README documents the capabilities and outputs; the sampled source confirms representative probes and checks. The main orchestration and several feature implementations fall in omitted excerpts, so their relationships are based on README statements rather than inspected call sites.

Main entry points: [`WP-Dex.py`](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py) (Recon Scanner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Site Discovery"]
  node_scanner["Recon Scanner<br/>[WP-Dex.py]"]
  node_detection["WordPress Detection<br/>[WP-Dex.py]"]
  node_fingerprinting["Technology Fingerprinting<br/>[WP-Dex.py]"]
  node_version["Version Detection<br/>[WP-Dex.py]"]
end

subgraph group_inventory["Site Inventory"]
  node_users["User Enumeration<br/>[WP-Dex.py]"]
  node_plugins["Plugin Detection<br/>[WP-Dex.py]"]
  node_themes["Theme Detection<br/>[WP-Dex.py]"]
  node_structure["Site Structure Mapping<br/>[WP-Dex.py]"]
  node_contacts["Contact Harvesting<br/>[WP-Dex.py]"]
end

subgraph group_security["Security Analysis"]
  node_security_checks["Security Checks<br/>[WP-Dex.py]"]
  node_vuln_matching["Vulnerability Matching<br/>[WP-Dex.py]"]
  node_vuln_db[("Offline CVE Data<br/>[WP-Dex.py]")]
end

subgraph group_reporting["Results"]
  node_report["Report Formatter<br/>[WP-Dex.py]"]
  node_terminal(("Terminal Output"))
  node_json["JSON Report"]
end

node_researcher(("Researcher"))
node_target(("WordPress Target"))

node_researcher -->|"starts scan"| node_scanner
node_scanner -->|"scans passively"| node_target
node_scanner -->|"checks"| node_detection
node_scanner -->|"identifies"| node_fingerprinting
node_scanner -->|"detects"| node_version
node_scanner -->|"enumerates"| node_users
node_scanner -->|"detects"| node_plugins
node_scanner -->|"identifies"| node_themes
node_scanner -->|"maps"| node_structure
node_scanner -->|"extracts"| node_contacts
node_scanner -->|"checks"| node_security_checks
node_scanner -->|"matches"| node_vuln_matching
node_vuln_matching -->|"matches against"| node_vuln_db
node_scanner -->|"formats results"| node_report
node_report -->|"prints"| node_terminal
node_report -->|"optionally writes"| node_json

click node_scanner "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_detection "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_fingerprinting "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_version "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_users "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_plugins "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_themes "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_structure "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_contacts "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_security_checks "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_vuln_matching "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_vuln_db "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py"
click node_report "https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.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_scanner,node_detection,node_fingerprinting,node_version toneBlue
class node_users,node_plugins,node_themes,node_structure,node_contacts toneAmber
class node_security_checks,node_vuln_matching,node_vuln_db toneMint
class node_report,node_terminal,node_json toneRose
class node_researcher,node_target toneIndigo
```

## Components

### Site Discovery

- [Recon Scanner](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [WordPress Detection](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [Technology Fingerprinting](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [Version Detection](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`

### Site Inventory

- [User Enumeration](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [Plugin Detection](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [Theme Detection](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [Site Structure Mapping](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [Contact Harvesting](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`

### Security Analysis

- [Security Checks](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [Vulnerability Matching](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- [Offline CVE Data](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`

### Results

- [Report Formatter](https://github.com/dotx-47/wp-dex/blob/main/WP-Dex.py): `WP-Dex.py`
- **Terminal Output**
- **JSON Report**

### Other components

- **Researcher**
- **WordPress Target**

## Connections

- Researcher → Recon Scanner: starts scan (evidence: `README.md`)
- Recon Scanner → WordPress Target: scans passively (evidence: `README.md`)
- Recon Scanner → WordPress Detection: checks (evidence: `README.md`)
- Recon Scanner → Technology Fingerprinting: identifies (evidence: `README.md`)
- Recon Scanner → Version Detection: detects (evidence: `README.md`)
- Recon Scanner → User Enumeration: enumerates (evidence: `README.md`)
- Recon Scanner → Plugin Detection: detects (evidence: `README.md`)
- Recon Scanner → Theme Detection: identifies (evidence: `README.md`)
- Recon Scanner → Site Structure Mapping: maps (evidence: `README.md`)
- Recon Scanner → Contact Harvesting: extracts (evidence: `README.md`)
- Recon Scanner → Security Checks: checks (evidence: `README.md`)
- Recon Scanner → Vulnerability Matching: matches (evidence: `README.md`)
- Vulnerability Matching → Offline CVE Data: matches against (evidence: `WP-Dex.py`)
- Recon Scanner → Report Formatter: formats results (evidence: `README.md`)
- Report Formatter → Terminal Output: prints (evidence: `README.md`)
- Report Formatter → JSON Report: optionally writes (evidence: `README.md`)
