# epsylon/cintruder architecture

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

- Interactive diagram: https://gitdiagram.com/epsylon/cintruder
- Repository: https://github.com/epsylon/cintruder

## Overview

CIntruder is a CAPTCHA penetration-testing tool. The principal workflow accepts a local or fetched CAPTCHA, preprocesses/trains OCR or matches symbols against a dictionary, then presents a suggested solution; tracking, a web GUI, modules, proxy support, XML export, and update checking are additional documented capabilities. Source excerpts support OCR, cracking, HTTP retrieval, and export internals; main orchestration and GUI behavior are not sampled, so their links are left unasserted where call ownership is unknown.

Main entry points: [`core/main.py`](https://github.com/epsylon/cintruder/blob/master/core/main.py) (Application runtime), [`core/ocr.py`](https://github.com/epsylon/cintruder/blob/master/core/ocr.py) (OCR training), [`core/crack.py`](https://github.com/epsylon/cintruder/blob/master/core/crack.py) (Dictionary matching), [`core/curl.py`](https://github.com/epsylon/cintruder/blob/master/core/curl.py) (HTTP retrieval)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry"]
  node_cli["CLI options<br/>[options.py]"]
  node_runtime["Application runtime<br/>[main.py]"]
end

subgraph group_capture["Captcha input"]
  node_tracking["Captcha tracking<br/>[main.py]"]
  node_http["HTTP retrieval<br/>[curl.py]"]
  node_localinput["Local CAPTCHA"]
end

subgraph group_analysis["OCR and cracking"]
  node_preprocess["OCR training<br/>[ocr.py]"]
  node_easyocr["EasyCaptcha OCR<br/>[easy_ocr.py]"]
  node_dictionary[("Symbol dictionaries")]
  node_easydict[("Easy dictionaries")]
  node_crack["Dictionary matching<br/>[crack.py]"]
  node_easycrack["EasyCaptcha matching<br/>[easy_crack.py]"]
  node_words[("OCR word images")]
end

subgraph group_interface["Results and interface"]
  node_gui["Web GUI<br/>[webgui.py]"]
  node_webui["GUI interactions<br/>[web.js]"]
  node_result["Suggested solution"]
  node_xml["XML report<br/>[xml_export.py]"]
end

subgraph group_support["Extensions"]
  node_modules["OCR modules"]
  node_update["Version check<br/>[update.py]"]
end

node_user(("Operator"))
node_remote(("Captcha source"))

node_user -->|"sets options"| node_cli
node_cli -.->|"configures"| node_runtime
node_runtime -.->|"dispatches"| node_tracking
node_tracking -.->|"retrieves via"| node_http
node_remote -->|"serves captcha"| node_http
node_http -.->|"writes payload"| node_localinput
node_runtime -.->|"selects input"| node_localinput
node_runtime -.->|"dispatches"| node_preprocess
node_runtime -.->|"dispatches"| node_crack
node_preprocess -->|"writes images"| node_words
node_preprocess -.->|"reports training"| node_result
node_crack -->|"reads samples"| node_dictionary
node_crack -->|"returns guess"| node_result
node_easyocr -.->|"uses module assets"| node_easydict
node_easyocr -->|"writes images"| node_words
node_easycrack -->|"reads samples"| node_easydict
node_easycrack -->|"returns guess"| node_result
node_runtime -.->|"loads modules"| node_modules
node_runtime -.->|"exports result"| node_xml
node_xml -.->|"serializes"| node_result
node_user -.->|"opens interface"| node_gui
node_gui -.->|"serves interactions"| node_webui
node_webui -.->|"submits settings"| node_gui
node_runtime -.->|"checks version"| node_update

click node_cli "https://github.com/epsylon/cintruder/blob/master/core/options.py"
click node_runtime "https://github.com/epsylon/cintruder/blob/master/core/main.py"
click node_gui "https://github.com/epsylon/cintruder/blob/master/core/webgui.py"
click node_webui "https://github.com/epsylon/cintruder/blob/master/core/js/web.js"
click node_tracking "https://github.com/epsylon/cintruder/blob/master/core/main.py"
click node_http "https://github.com/epsylon/cintruder/blob/master/core/curl.py"
click node_localinput "https://github.com/epsylon/cintruder/tree/master/inputs"
click node_preprocess "https://github.com/epsylon/cintruder/blob/master/core/ocr.py"
click node_easyocr "https://github.com/epsylon/cintruder/blob/master/mods/easy/easy_ocr.py"
click node_dictionary "https://github.com/epsylon/cintruder/tree/master/dictionary"
click node_easydict "https://github.com/epsylon/cintruder/tree/master/mods/easy/dictionary"
click node_crack "https://github.com/epsylon/cintruder/blob/master/core/crack.py"
click node_easycrack "https://github.com/epsylon/cintruder/blob/master/mods/easy/easy_crack.py"
click node_words "https://github.com/epsylon/cintruder/tree/master/outputs/words"
click node_xml "https://github.com/epsylon/cintruder/blob/master/core/xml_export.py"
click node_modules "https://github.com/epsylon/cintruder/tree/master/mods"
click node_update "https://github.com/epsylon/cintruder/blob/master/core/update.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_cli,node_runtime toneBlue
class node_tracking,node_http,node_localinput toneAmber
class node_preprocess,node_easyocr,node_dictionary,node_easydict,node_crack,node_easycrack,node_words toneMint
class node_gui,node_webui,node_result,node_xml toneRose
class node_modules,node_update,node_user,node_remote toneIndigo
```

## Components

### User entry

- [CLI options](https://github.com/epsylon/cintruder/blob/master/core/options.py): `core/options.py`
- [Application runtime](https://github.com/epsylon/cintruder/blob/master/core/main.py): `core/main.py`

### Captcha input

- [Captcha tracking](https://github.com/epsylon/cintruder/blob/master/core/main.py): `core/main.py`
- [HTTP retrieval](https://github.com/epsylon/cintruder/blob/master/core/curl.py): `core/curl.py`
- [Local CAPTCHA](https://github.com/epsylon/cintruder/tree/master/inputs): `inputs`

### OCR and cracking

- [OCR training](https://github.com/epsylon/cintruder/blob/master/core/ocr.py): `core/ocr.py`
- [EasyCaptcha OCR](https://github.com/epsylon/cintruder/blob/master/mods/easy/easy_ocr.py): `mods/easy/easy_ocr.py`
- [Symbol dictionaries](https://github.com/epsylon/cintruder/tree/master/dictionary): `dictionary`
- [Easy dictionaries](https://github.com/epsylon/cintruder/tree/master/mods/easy/dictionary): `mods/easy/dictionary`
- [Dictionary matching](https://github.com/epsylon/cintruder/blob/master/core/crack.py): `core/crack.py`
- [EasyCaptcha matching](https://github.com/epsylon/cintruder/blob/master/mods/easy/easy_crack.py): `mods/easy/easy_crack.py`
- [OCR word images](https://github.com/epsylon/cintruder/tree/master/outputs/words): `outputs/words`

### Results and interface

- [Web GUI](https://github.com/epsylon/cintruder/blob/master/core/webgui.py): `core/webgui.py`
- [GUI interactions](https://github.com/epsylon/cintruder/blob/master/core/js/web.js): `core/js/web.js`
- **Suggested solution**
- [XML report](https://github.com/epsylon/cintruder/blob/master/core/xml_export.py): `core/xml_export.py`

### Extensions

- [OCR modules](https://github.com/epsylon/cintruder/tree/master/mods): `mods`
- [Version check](https://github.com/epsylon/cintruder/blob/master/core/update.py): `core/update.py`

### Other components

- **Operator**
- **Captcha source**

## Connections

- Operator → CLI options: sets options (evidence: `core/options.py`)
- CLI options → Application runtime: configures
- Application runtime → Captcha tracking: dispatches
- Captcha tracking → HTTP retrieval: retrieves via
- Captcha source → HTTP retrieval: serves captcha (evidence: `core/curl.py`)
- HTTP retrieval → Local CAPTCHA: writes payload
- Application runtime → Local CAPTCHA: selects input
- Application runtime → OCR training: dispatches
- Application runtime → Dictionary matching: dispatches
- OCR training → OCR word images: writes images (evidence: `core/ocr.py`)
- OCR training → Suggested solution: reports training
- Dictionary matching → Symbol dictionaries: reads samples (evidence: `core/crack.py`)
- Dictionary matching → Suggested solution: returns guess (evidence: `core/crack.py`)
- EasyCaptcha OCR → Easy dictionaries: uses module assets
- EasyCaptcha OCR → OCR word images: writes images (evidence: `mods/easy/easy_ocr.py`)
- EasyCaptcha matching → Easy dictionaries: reads samples (evidence: `mods/easy/easy_crack.py`)
- EasyCaptcha matching → Suggested solution: returns guess (evidence: `mods/easy/easy_crack.py`)
- Application runtime → OCR modules: loads modules
- Application runtime → XML report: exports result
- XML report → Suggested solution: serializes
- Operator → Web GUI: opens interface
- Web GUI → GUI interactions: serves interactions
- GUI interactions → Web GUI: submits settings
- Application runtime → Version check: checks version
