# 199199118/ci-wk-108897 architecture

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

- Interactive diagram: https://gitdiagram.com/199199118/ci-wk-108897
- Repository: https://github.com/199199118/ci-wk-108897

## Overview

This repository is a command-line website scanner for React Server Components and Next.js vulnerabilities. Its visible workflow takes host candidates, fingerprints likely Next.js sites, probes targets, and saves scan findings; an optional JavaScript payload performs post-exploitation host reconnaissance. The batch scanner also supports secret checks and optional Telegram delivery. The README provides no additional product description, and only three source files were sampled, so connections to other operational tooling and unsampled implementation details are omitted.

Main entry points: [`bin/batch_output.py`](https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.py) (Batch Scanner), [`bin/prefilter_nextjs.py`](https://github.com/199199118/ci-wk-108897/blob/main/bin/prefilter_nextjs.py) (Next.js Prefilter), [`bin/fast_recon.js`](https://github.com/199199118/ci-wk-108897/blob/main/bin/fast_recon.js) (Host Recon)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_targeting["Targeting"]
  node_host_candidates["Host Candidates"]
  node_nextjs_prefilter["Next.js Prefilter"]
end

subgraph group_scanning["Scanning"]
  node_batch_scanner["Batch Scanner<br/>[batch_output.py]"]
  node_exploit_probe["Exploit Probe<br/>[batch_output.py]"]
  node_recon_payload["Host Recon<br/>[fast_recon.js]"]
end

subgraph group_results["Results"]
  node_scan_registry[("Scan Registry<br/>[batch_output.py]")]
  node_scan_results["Scan Results<br/>[batch_output.py]"]
end

node_operator(("Operator"))
node_web_targets["Web Targets"]
node_telegram["Telegram API"]
node_llm_providers["LLM Providers"]

node_operator -->|"supplies"| node_host_candidates
node_host_candidates -->|"filters"| node_nextjs_prefilter
node_nextjs_prefilter -->|"feeds candidates"| node_batch_scanner
node_operator -->|"configures scan"| node_batch_scanner
node_batch_scanner -->|"probes targets"| node_exploit_probe
node_exploit_probe -->|"sends requests"| node_web_targets
node_batch_scanner -->|"loads optional payload"| node_recon_payload
node_recon_payload -->|"checks credentials"| node_llm_providers
node_batch_scanner -->|"deduplicates scans"| node_scan_registry
node_batch_scanner -->|"writes findings"| node_scan_results
node_batch_scanner -.->|"optionally sends"| node_telegram

click node_nextjs_prefilter "https://github.com/199199118/ci-wk-108897/blob/main/bin/prefilter_nextjs.py"
click node_batch_scanner "https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.py"
click node_exploit_probe "https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.py"
click node_recon_payload "https://github.com/199199118/ci-wk-108897/blob/main/bin/fast_recon.js"
click node_scan_registry "https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.py"
click node_scan_results "https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.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_host_candidates,node_nextjs_prefilter toneBlue
class node_batch_scanner,node_exploit_probe,node_recon_payload toneAmber
class node_scan_registry,node_scan_results,node_telegram toneMint
class node_operator,node_web_targets,node_llm_providers toneIndigo
```

## Components

### Targeting

- **Host Candidates**
- [Next.js Prefilter](https://github.com/199199118/ci-wk-108897/blob/main/bin/prefilter_nextjs.py): `bin/prefilter_nextjs.py`

### Scanning

- [Batch Scanner](https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.py): `bin/batch_output.py`
- [Exploit Probe](https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.py): `bin/batch_output.py`
- [Host Recon](https://github.com/199199118/ci-wk-108897/blob/main/bin/fast_recon.js): `bin/fast_recon.js`

### Results

- [Scan Registry](https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.py): `bin/batch_output.py`
- [Scan Results](https://github.com/199199118/ci-wk-108897/blob/main/bin/batch_output.py): `bin/batch_output.py`

### Other components

- **Operator**
- **Web Targets**
- **Telegram API**
- **LLM Providers**

## Connections

- Operator → Host Candidates: supplies
- Host Candidates → Next.js Prefilter: filters (evidence: `bin/prefilter_nextjs.py`)
- Next.js Prefilter → Batch Scanner: feeds candidates (evidence: `bin/prefilter_nextjs.py`)
- Operator → Batch Scanner: configures scan (evidence: `bin/batch_output.py`)
- Batch Scanner → Exploit Probe: probes targets (evidence: `bin/batch_output.py`)
- Exploit Probe → Web Targets: sends requests (evidence: `bin/batch_output.py`)
- Batch Scanner → Host Recon: loads optional payload (evidence: `bin/batch_output.py`)
- Host Recon → LLM Providers: checks credentials (evidence: `bin/fast_recon.js`)
- Batch Scanner → Scan Registry: deduplicates scans (evidence: `bin/batch_output.py`)
- Batch Scanner → Scan Results: writes findings (evidence: `bin/batch_output.py`)
- Batch Scanner → Telegram API: optionally sends (evidence: `bin/batch_output.py`)
