# rbijo/exploitscope architecture

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

- Interactive diagram: https://gitdiagram.com/rbijo/exploitscope
- Repository: https://github.com/rbijo/exploitscope

## Overview

#### Purpose and Entry Point
Exploit Scope is an early-stage Python web vulnerability scanner for recursively discovering web pages and applying basic OWASP-oriented checks: security headers, SQL injection, reflected XSS, and directory listing exposure. The executable workflow starts in `code/scanner.py`, which is intended to be run locally with target and output paths adjusted for the environment.

#### Scan Orchestration
`code/scanner.py` is the control-plane entry point. It coordinates target crawling, reconnaissance, vulnerability checks, and report generation. The scanner is file-driven rather than a service or web application; no deployed runtime, API layer, or dashboard is present.

Paths:
- `code/scanner.py`
- `code/config.md`

#### Discovery and Crawl Boundary
URL discovery is isolated in the crawler module. It recursively follows links from the supplied target, producing the attack surface that downstream checks operate on. This creates the core boundary between untrusted remote HTTP content and scanner-side analysis.

Paths:
- `code/utils/crawler.py`
- `code/scanner.py`

#### Reconnaissance Stage
Reconnaissance gathers target-level information needed before or alongside vulnerability probing. It is a distinct stage from crawling and active attack checks, allowing scan orchestration to separate discovery/context collection from payload-based testing.

Paths:
- `code/utils/recon.py`
- `code/scanner.py`

#### Vulnerability-Checking Stage
The active security checks reside in `code/utils/vuln_checks.py`. Based on the documented feature set, this stage evaluates missing security headers, sends simple SQL-injection payloads, tests reflected-XSS behavior, and checks for exposed directory listings. Its inputs are crawled or target URLs; its outputs feed reporting.

Paths:
- `code/utils/vuln_checks.py`
- `code/utils/crawler.py`
- `code/scanner.py`

#### Reporting and Output
Findings are consolidated into a reporting layer rather than emitted solely during scanning. `code/reports/reporting.py` is the output boundary for vulnerability results and scan logs/reports; report destination paths appear to require local configuration.

Paths:
- `code/reports/reporting.py`
- `code/reports/config.md`
- `code/scanner.py`

#### Runtime and External Dependencies
The project is a local Python scanner organized under `code/`. Its material external dependency is the scanned website: crawling and probes issue HTTP requests against arbitrary target URLs, initially developed against `http://testphp.vulnweb.com/`. Configuration is documented separately for the overall scanner and utility/reporting areas.

Paths:
- `code/config.md`
- `code/utils/config.md`
- `code/reports/config.md`

Main entry points: [`code/scanner.py`](https://github.com/rbijo/exploitscope/blob/main/code/scanner.py) (Scanner Orchestrator), [`code/utils/vuln_checks.py`](https://github.com/rbijo/exploitscope/blob/main/code/utils/vuln_checks.py) (OWASP Checks), [`code/utils/crawler.py`](https://github.com/rbijo/exploitscope/blob/main/code/utils/crawler.py) (Recursive Crawler), [`code/reports/reporting.py`](https://github.com/rbijo/exploitscope/blob/main/code/reports/reporting.py) (Report Generator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_scanner["Scanner Control"]
  node_entry["Scanner Orchestrator<br/>Python entry point<br/>[scanner.py]"]
  node_scanner_config["Scanner Configuration<br/>configuration guide<br/>[config.md]"]
end

subgraph group_discovery["Discovery &amp; Analysis"]
  node_crawler["Recursive Crawler<br/>discovery module<br/>[crawler.py]"]
  node_urls["Discovered URLs<br/>attack surface"]
  node_recon["Reconnaissance<br/>recon module<br/>[recon.py]"]
  node_vuln_checks["OWASP Checks<br/>vulnerability module<br/>[vuln_checks.py]"]
  node_utils_config["Utility Configuration<br/>configuration guide<br/>[config.md]"]
end

subgraph group_reporting["Reporting"]
  node_findings["Findings<br/>scan results"]
  node_reporting_module["Report Generator<br/>reporting module<br/>[reporting.py]"]
  node_report_config["Reporting Configuration<br/>configuration guide<br/>[config.md]"]
  node_reports["Local Reports<br/>file output"]
end

node_target{{"Scanned Website<br/>external HTTP target"}}

node_scanner_config -.->|"configures"| node_entry
node_entry -->|"starts crawl"| node_crawler
node_target -->|"HTTP content"| node_crawler
node_crawler -->|"discovers"| node_urls
node_entry -->|"runs"| node_recon
node_recon -->|"collects context"| node_target
node_entry -->|"runs checks"| node_vuln_checks
node_urls -->|"probe targets"| node_vuln_checks
node_vuln_checks -->|"active HTTP probes"| node_target
node_vuln_checks -->|"produces"| node_findings
node_recon -->|"adds context"| node_findings
node_entry -->|"generates report"| node_reporting_module
node_findings -->|"consolidates"| node_reporting_module
node_report_config -.->|"configures"| node_reporting_module
node_reporting_module -->|"writes"| node_reports
node_utils_config -.->|"documents setup"| node_crawler
node_utils_config -.->|"documents setup"| node_vuln_checks

click node_entry "https://github.com/rbijo/exploitscope/blob/main/code/scanner.py"
click node_scanner_config "https://github.com/rbijo/exploitscope/blob/main/code/config.md"
click node_crawler "https://github.com/rbijo/exploitscope/blob/main/code/utils/crawler.py"
click node_recon "https://github.com/rbijo/exploitscope/blob/main/code/utils/recon.py"
click node_vuln_checks "https://github.com/rbijo/exploitscope/blob/main/code/utils/vuln_checks.py"
click node_utils_config "https://github.com/rbijo/exploitscope/blob/main/code/utils/config.md"
click node_reporting_module "https://github.com/rbijo/exploitscope/blob/main/code/reports/reporting.py"
click node_report_config "https://github.com/rbijo/exploitscope/blob/main/code/reports/config.md"

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_scanner_config toneBlue
class node_crawler,node_urls,node_recon,node_vuln_checks,node_utils_config toneAmber
class node_findings,node_reporting_module,node_report_config,node_reports toneMint
class node_target toneNeutral
```

## Components

### Scanner Control

- [Scanner Orchestrator](https://github.com/rbijo/exploitscope/blob/main/code/scanner.py): Python entry point · Coordinates the local scan workflow. · `code/scanner.py`
- [Scanner Configuration](https://github.com/rbijo/exploitscope/blob/main/code/config.md): configuration guide · Documents target and output path setup. · `code/config.md`

### Discovery & Analysis

- [Recursive Crawler](https://github.com/rbijo/exploitscope/blob/main/code/utils/crawler.py): discovery module · Follows links to build the attack surface. · `code/utils/crawler.py`
- **Discovered URLs**: attack surface · URLs passed to downstream checks.
- [Reconnaissance](https://github.com/rbijo/exploitscope/blob/main/code/utils/recon.py): recon module · Collects target-level context separately from active probes. · `code/utils/recon.py`
- [OWASP Checks](https://github.com/rbijo/exploitscope/blob/main/code/utils/vuln_checks.py): vulnerability module · Tests headers, SQL injection, reflected XSS, and directory listings. · `code/utils/vuln_checks.py`
- [Utility Configuration](https://github.com/rbijo/exploitscope/blob/main/code/utils/config.md): configuration guide · `code/utils/config.md`

### Reporting

- **Findings**: scan results · Vulnerability results collected for output.
- [Report Generator](https://github.com/rbijo/exploitscope/blob/main/code/reports/reporting.py): reporting module · Consolidates findings into scan logs and reports. · `code/reports/reporting.py`
- [Reporting Configuration](https://github.com/rbijo/exploitscope/blob/main/code/reports/config.md): configuration guide · Documents report destination setup. · `code/reports/config.md`
- **Local Reports**: file output · Generated vulnerability reports and scan logs.

### Other components

- **Scanned Website**: external HTTP target · Untrusted remote target URLs and content.

## Connections

- Scanner Configuration → Scanner Orchestrator: configures
- Scanner Orchestrator → Recursive Crawler: starts crawl
- Scanned Website → Recursive Crawler: HTTP content
- Recursive Crawler → Discovered URLs: discovers
- Scanner Orchestrator → Reconnaissance: runs
- Reconnaissance → Scanned Website: collects context
- Scanner Orchestrator → OWASP Checks: runs checks
- Discovered URLs → OWASP Checks: probe targets
- OWASP Checks → Scanned Website: active HTTP probes
- OWASP Checks → Findings: produces
- Reconnaissance → Findings: adds context
- Scanner Orchestrator → Report Generator: generates report
- Findings → Report Generator: consolidates
- Reporting Configuration → Report Generator: configures
- Report Generator → Local Reports: writes
- Utility Configuration → Recursive Crawler: documents setup
- Utility Configuration → OWASP Checks: documents setup
