# ilyasscodex/artex architecture

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

- Interactive diagram: https://gitdiagram.com/ilyasscodex/artex
- Repository: https://github.com/ilyasscodex/artex

## Overview

ARTEX is a Flask-based reconnaissance and security-assessment application. A user starts a scan through the web/API entry point; a background scan gathers domain and service findings, which are analyzed and presented or exported as reports. The README also documents scan profiles, parallel execution, AI recommendations, and PDF/JSON export. The graph emphasizes relationships visible in excerpts or the README; dashed links mark wiring not established by the sampled code.

Main entry points: [`app.py`](https://github.com/ilyasscodex/artex/blob/main/app.py) (Flask scan API), [`modules/real_ip_discovery.py`](https://github.com/ilyasscodex/artex/blob/main/modules/real_ip_discovery.py) (Real IP discovery), [`modules/dns_scan.py`](https://github.com/ilyasscodex/artex/blob/main/modules/dns_scan.py) (DNS assessment), [`modules/AI_analyst.py`](https://github.com/ilyasscodex/artex/blob/main/modules/AI_analyst.py) (AI recommendations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scan_flow["Scan orchestration"]
  node_app["Flask scan API<br/>[app.py]"]
  node_scan_state["Scan status/results<br/>[app.py]"]
end

subgraph group_discovery["Reconnaissance"]
  node_subdomains["Subdomain discovery<br/>[subdomains.py]"]
  node_real_ip["Real IP discovery"]
  node_dns_scan["DNS assessment<br/>[dns_scan.py]"]
  node_dns_utils["DNS utilities<br/>[dns_utils.py]"]
  node_http_client["HTTP client<br/>[http_client.py]"]
  node_ip_utils["IP utilities<br/>[ip_utils.py]"]
end

subgraph group_assessment["Security assessment"]
  node_ports["Port assessment<br/>[port_scanner.py]"]
  node_ssl["TLS assessment<br/>[ssl_scanner.py]"]
  node_tech["Technology fingerprinting<br/>[tech_detector.py]"]
  node_auth_enum["Auth/email discovery<br/>[enumeration.py]"]
end

subgraph group_analysis["Analysis and reporting"]
  node_fast_analysis["Rule-based analysis<br/>[FastAnalyst.py]"]
  node_ai_analysis["AI recommendations<br/>[AI_analyst.py]"]
  node_reporting["PDF/JSON reports<br/>[reporting.py]"]
  node_helpers["Shared helpers<br/>[helpers.py]"]
end

subgraph group_web["Web interface"]
  node_scan_page["Scan form<br/>[scan.html]"]
  node_results_page["Results view<br/>[results.html]"]
end

node_user(("Scan user"))
node_groq["Groq API"]

node_user -->|"starts scan"| node_app
node_app -.->|"tracks status"| node_scan_state
node_app -->|"enumerates"| node_subdomains
node_app -->|"scans ports"| node_ports
node_app -->|"scans TLS"| node_ssl
node_app -->|"detects stack"| node_tech
node_app -.->|"runs DNS scan"| node_dns_scan
node_app -.->|"discovers IPs"| node_real_ip
node_app -.->|"runs enumeration"| node_auth_enum
node_app -->|"analyzes findings"| node_fast_analysis
node_app -.->|"requests recommendations"| node_ai_analysis
node_app -.->|"exports reports"| node_reporting
node_dns_scan -->|"queries records"| node_dns_utils
node_real_ip -->|"makes requests"| node_http_client
node_real_ip -->|"checks addresses"| node_ip_utils
node_ai_analysis -->|"requests analysis"| node_groq
node_reporting -->|"uses utilities"| node_helpers
node_user -.->|"opens form"| node_scan_page
node_scan_page -.->|"submits scan"| node_app
node_app -.->|"renders results"| node_results_page

click node_app "https://github.com/ilyasscodex/artex/blob/main/app.py"
click node_scan_state "https://github.com/ilyasscodex/artex/blob/main/app.py"
click node_subdomains "https://github.com/ilyasscodex/artex/blob/main/modules/subdomains.py"
click node_real_ip "https://github.com/ilyasscodex/artex/blob/main/modules/real_ip_discovery.py"
click node_dns_scan "https://github.com/ilyasscodex/artex/blob/main/modules/dns_scan.py"
click node_dns_utils "https://github.com/ilyasscodex/artex/blob/main/core/dns_utils.py"
click node_http_client "https://github.com/ilyasscodex/artex/blob/main/core/http_client.py"
click node_ip_utils "https://github.com/ilyasscodex/artex/blob/main/core/ip_utils.py"
click node_ports "https://github.com/ilyasscodex/artex/blob/main/modules/port_scanner.py"
click node_ssl "https://github.com/ilyasscodex/artex/blob/main/modules/ssl_scanner.py"
click node_tech "https://github.com/ilyasscodex/artex/blob/main/modules/tech_detector.py"
click node_auth_enum "https://github.com/ilyasscodex/artex/blob/main/modules/enumeration.py"
click node_fast_analysis "https://github.com/ilyasscodex/artex/blob/main/modules/FastAnalyst.py"
click node_ai_analysis "https://github.com/ilyasscodex/artex/blob/main/modules/AI_analyst.py"
click node_reporting "https://github.com/ilyasscodex/artex/blob/main/utils/reporting.py"
click node_helpers "https://github.com/ilyasscodex/artex/blob/main/utils/helpers.py"
click node_scan_page "https://github.com/ilyasscodex/artex/blob/main/templates/scan.html"
click node_results_page "https://github.com/ilyasscodex/artex/blob/main/templates/results.html"

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_app,node_scan_state,node_user toneBlue
class node_subdomains,node_real_ip,node_dns_scan,node_dns_utils,node_http_client,node_ip_utils toneAmber
class node_ports,node_ssl,node_tech,node_auth_enum,node_groq toneMint
class node_fast_analysis,node_ai_analysis,node_reporting,node_helpers toneRose
class node_scan_page,node_results_page toneIndigo
```

## Components

### Scan orchestration

- [Flask scan API](https://github.com/ilyasscodex/artex/blob/main/app.py): `app.py`
- [Scan status/results](https://github.com/ilyasscodex/artex/blob/main/app.py): `app.py`

### Reconnaissance

- [Subdomain discovery](https://github.com/ilyasscodex/artex/blob/main/modules/subdomains.py): `modules/subdomains.py`
- [Real IP discovery](https://github.com/ilyasscodex/artex/blob/main/modules/real_ip_discovery.py): `modules/real_ip_discovery.py`
- [DNS assessment](https://github.com/ilyasscodex/artex/blob/main/modules/dns_scan.py): `modules/dns_scan.py`
- [DNS utilities](https://github.com/ilyasscodex/artex/blob/main/core/dns_utils.py): `core/dns_utils.py`
- [HTTP client](https://github.com/ilyasscodex/artex/blob/main/core/http_client.py): `core/http_client.py`
- [IP utilities](https://github.com/ilyasscodex/artex/blob/main/core/ip_utils.py): `core/ip_utils.py`

### Security assessment

- [Port assessment](https://github.com/ilyasscodex/artex/blob/main/modules/port_scanner.py): `modules/port_scanner.py`
- [TLS assessment](https://github.com/ilyasscodex/artex/blob/main/modules/ssl_scanner.py): `modules/ssl_scanner.py`
- [Technology fingerprinting](https://github.com/ilyasscodex/artex/blob/main/modules/tech_detector.py): `modules/tech_detector.py`
- [Auth/email discovery](https://github.com/ilyasscodex/artex/blob/main/modules/enumeration.py): `modules/enumeration.py`

### Analysis and reporting

- [Rule-based analysis](https://github.com/ilyasscodex/artex/blob/main/modules/FastAnalyst.py): `modules/FastAnalyst.py`
- [AI recommendations](https://github.com/ilyasscodex/artex/blob/main/modules/AI_analyst.py): `modules/AI_analyst.py`
- [PDF/JSON reports](https://github.com/ilyasscodex/artex/blob/main/utils/reporting.py): `utils/reporting.py`
- [Shared helpers](https://github.com/ilyasscodex/artex/blob/main/utils/helpers.py): `utils/helpers.py`

### Web interface

- [Scan form](https://github.com/ilyasscodex/artex/blob/main/templates/scan.html): `templates/scan.html`
- [Results view](https://github.com/ilyasscodex/artex/blob/main/templates/results.html): `templates/results.html`

### Other components

- **Scan user**
- **Groq API**

## Connections

- Scan user → Flask scan API: starts scan (evidence: `README.md`)
- Flask scan API → Scan status/results: tracks status (evidence: `app.py`)
- Flask scan API → Subdomain discovery: enumerates (evidence: `app.py`)
- Flask scan API → Port assessment: scans ports (evidence: `app.py`)
- Flask scan API → TLS assessment: scans TLS (evidence: `app.py`)
- Flask scan API → Technology fingerprinting: detects stack (evidence: `app.py`)
- Flask scan API → DNS assessment: runs DNS scan (evidence: `app.py`)
- Flask scan API → Real IP discovery: discovers IPs (evidence: `app.py`)
- Flask scan API → Auth/email discovery: runs enumeration (evidence: `app.py`)
- Flask scan API → Rule-based analysis: analyzes findings (evidence: `app.py`)
- Flask scan API → AI recommendations: requests recommendations (evidence: `app.py`)
- Flask scan API → PDF/JSON reports: exports reports (evidence: `app.py`)
- DNS assessment → DNS utilities: queries records (evidence: `modules/dns_scan.py`)
- Real IP discovery → HTTP client: makes requests (evidence: `modules/real_ip_discovery.py`)
- Real IP discovery → IP utilities: checks addresses (evidence: `modules/real_ip_discovery.py`)
- AI recommendations → Groq API: requests analysis (evidence: `modules/AI_analyst.py`)
- PDF/JSON reports → Shared helpers: uses utilities (evidence: `utils/reporting.py`)
- Scan user → Scan form: opens form
- Scan form → Flask scan API: submits scan
- Flask scan API → Results view: renders results
