# h4x0rpeter/cookiestealer architecture

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

- Interactive diagram: https://gitdiagram.com/h4x0rpeter/cookiestealer
- Repository: https://github.com/h4x0rpeter/cookiestealer

## Overview

Cookie-Stealer is a Windows credential-and-cookie theft tool whose C# console program prepares a batch launcher and embeds a Python payload. The documented workflow starts with the builder, which obtains missing configuration and payload files, reads Telegram settings, and writes a launcher; that launcher runs the Python payload, which gathers browser data and reports it to Telegram. The excerpts show builder and reporting behavior, but omit parts of the Python collection flow, so those links are marked unverified. The README also claims startup persistence and antivirus evasion; the sampled code supports startup configuration but does not substantiate antivirus evasion.

Main entry points: [`stub.py`](https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py) (Python payload), [`CookieStealer/Program.cs`](https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs) (Console builder), [`telegram.txt`](https://github.com/h4x0rpeter/cookiestealer/blob/main/telegram.txt) (Telegram settings), [`CookieStealer/Json.cs`](https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Json.cs) (JSON parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_builder["Builder"]
  node_builder_app["Console builder<br/>[Program.cs]"]
  node_config_fetch["Config download<br/>[Program.cs]"]
  node_settings["Telegram settings<br/>[telegram.txt]"]
  node_json_parser["JSON parser<br/>[Json.cs]"]
  node_launcher["Launcher assembly<br/>[Program.cs]"]
end

subgraph group_payload["Payload"]
  node_python_archive["Python runtime archive<br/>[Program.cs]"]
  node_startup_setup["Startup setup<br/>[Program.cs]"]
  node_python_payload["Python payload<br/>[stub.py]"]
end

subgraph group_collection["Data collection"]
  node_browser_profiles["Browser profiles<br/>[stub.py]"]
  node_credential_reading["Credential extraction<br/>[stub.py]"]
  node_cookie_reading["Cookie extraction<br/>[stub.py]"]
end

subgraph group_reporting["Reporting"]
  node_archive_data["Data packaging<br/>[stub.py]"]
  node_telegram["Telegram API"]
  node_ipinfo["IP geolocation"]
end

node_operator(("Operator"))

node_operator -->|"runs"| node_builder_app
node_builder_app -->|"invokes"| node_config_fetch
node_config_fetch -->|"downloads if missing"| node_settings
node_config_fetch -->|"downloads if missing"| node_python_payload
node_builder_app -->|"parses settings"| node_json_parser
node_builder_app -->|"reads"| node_settings
node_builder_app -->|"builds"| node_launcher
node_launcher -->|"downloads and extracts"| node_python_archive
node_launcher -->|"configures startup"| node_startup_setup
node_launcher -->|"runs"| node_python_payload
node_python_payload -.->|"reads profiles"| node_browser_profiles
node_browser_profiles -.->|"collects credentials"| node_credential_reading
node_browser_profiles -.->|"collects cookies"| node_cookie_reading
node_python_payload -->|"requests location data"| node_ipinfo
node_python_payload -.->|"uploads archive"| node_archive_data
node_python_payload -->|"posts report"| node_telegram

click node_builder_app "https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs"
click node_config_fetch "https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs"
click node_settings "https://github.com/h4x0rpeter/cookiestealer/blob/main/telegram.txt"
click node_json_parser "https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Json.cs"
click node_launcher "https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs"
click node_python_archive "https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs"
click node_startup_setup "https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs"
click node_python_payload "https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py"
click node_browser_profiles "https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py"
click node_credential_reading "https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py"
click node_cookie_reading "https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py"
click node_archive_data "https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.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_builder_app,node_config_fetch,node_settings,node_json_parser,node_launcher toneBlue
class node_python_archive,node_startup_setup,node_python_payload toneAmber
class node_browser_profiles,node_credential_reading,node_cookie_reading toneMint
class node_archive_data,node_telegram,node_ipinfo toneRose
class node_operator toneIndigo
```

## Components

### Builder

- [Console builder](https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs): `CookieStealer/Program.cs`
- [Config download](https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs): `CookieStealer/Program.cs`
- [Telegram settings](https://github.com/h4x0rpeter/cookiestealer/blob/main/telegram.txt): `telegram.txt`
- [JSON parser](https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Json.cs): `CookieStealer/Json.cs`
- [Launcher assembly](https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs): `CookieStealer/Program.cs`

### Payload

- [Python runtime archive](https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs): `CookieStealer/Program.cs`
- [Startup setup](https://github.com/h4x0rpeter/cookiestealer/blob/main/CookieStealer/Program.cs): `CookieStealer/Program.cs`
- [Python payload](https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py): `stub.py`

### Data collection

- [Browser profiles](https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py): `stub.py`
- [Credential extraction](https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py): `stub.py`
- [Cookie extraction](https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py): `stub.py`

### Reporting

- [Data packaging](https://github.com/h4x0rpeter/cookiestealer/blob/main/stub.py): `stub.py`
- **Telegram API**
- **IP geolocation**

### Other components

- **Operator**

## Connections

- Operator → Console builder: runs (evidence: `README.md`)
- Console builder → Config download: invokes (evidence: `CookieStealer/Program.cs`)
- Config download → Telegram settings: downloads if missing (evidence: `CookieStealer/Program.cs`)
- Config download → Python payload: downloads if missing (evidence: `CookieStealer/Program.cs`)
- Console builder → JSON parser: parses settings (evidence: `CookieStealer/Program.cs`)
- Console builder → Telegram settings: reads (evidence: `CookieStealer/Program.cs`)
- Console builder → Launcher assembly: builds (evidence: `CookieStealer/Program.cs`)
- Launcher assembly → Python runtime archive: downloads and extracts (evidence: `CookieStealer/Program.cs`)
- Launcher assembly → Startup setup: configures startup (evidence: `CookieStealer/Program.cs`)
- Launcher assembly → Python payload: runs (evidence: `CookieStealer/Program.cs`)
- Python payload → Browser profiles: reads profiles (evidence: `stub.py`)
- Browser profiles → Credential extraction: collects credentials (evidence: `stub.py`)
- Browser profiles → Cookie extraction: collects cookies (evidence: `stub.py`)
- Python payload → IP geolocation: requests location data (evidence: `stub.py`)
- Python payload → Data packaging: uploads archive (evidence: `stub.py`)
- Python payload → Telegram API: posts report (evidence: `stub.py`)
