# efeysk/discord-exploit-poc architecture

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

- Interactive diagram: https://gitdiagram.com/efeysk/discord-exploit-poc
- Repository: https://github.com/efeysk/discord-exploit-poc

## Overview

This is a single-file Discord webhook PoC. Its main workflow inventories configured and channel webhooks, creates more if needed, then offers continuous or count-limited sending. An optional branch creates a server invite and sends it to a selected user by DM. The map reflects the sampled `main.py`; the README confirms the PoC and dependencies but adds no further capabilities.

Main entry points: [`main.py`](https://github.com/efeysk/discord-exploit-poc/blob/main/main.py) (Workflow runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow"]
  node_main["Workflow runner<br/>[main.py]"]
end

subgraph group_discord_ops["Discord operations"]
  node_user_ops["User operations<br/>[main.py]"]
  node_discord["Discord API"]
end

subgraph group_delivery["Webhook delivery"]
  node_webhook_sender["Webhook sender<br/>[main.py]"]
  node_send_modes["Send modes<br/>[main.py]"]
end

node_operator(("Operator"))

node_operator -->|"configures and selects"| node_main
node_main -->|"checks and provisions"| node_user_ops
node_user_ops -->|"calls REST API"| node_discord
node_main -->|"requests invite and DM"| node_user_ops
node_main -->|"starts selected mode"| node_send_modes
node_send_modes -->|"schedules sends"| node_webhook_sender
node_webhook_sender -->|"posts webhook payload"| node_discord

click node_main "https://github.com/efeysk/discord-exploit-poc/blob/main/main.py"
click node_user_ops "https://github.com/efeysk/discord-exploit-poc/blob/main/main.py"
click node_webhook_sender "https://github.com/efeysk/discord-exploit-poc/blob/main/main.py"
click node_send_modes "https://github.com/efeysk/discord-exploit-poc/blob/main/main.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_main toneBlue
class node_user_ops,node_discord toneAmber
class node_webhook_sender,node_send_modes toneMint
class node_operator toneIndigo
```

## Components

### Workflow

- [Workflow runner](https://github.com/efeysk/discord-exploit-poc/blob/main/main.py): `main.py`

### Discord operations

- [User operations](https://github.com/efeysk/discord-exploit-poc/blob/main/main.py): `main.py`
- **Discord API**

### Webhook delivery

- [Webhook sender](https://github.com/efeysk/discord-exploit-poc/blob/main/main.py): `main.py`
- [Send modes](https://github.com/efeysk/discord-exploit-poc/blob/main/main.py): `main.py`

### Other components

- **Operator**

## Connections

- Operator → Workflow runner: configures and selects (evidence: `main.py`)
- Workflow runner → User operations: checks and provisions (evidence: `main.py`)
- User operations → Discord API: calls REST API (evidence: `main.py`)
- Workflow runner → User operations: requests invite and DM (evidence: `main.py`)
- Workflow runner → Send modes: starts selected mode (evidence: `main.py`)
- Send modes → Webhook sender: schedules sends (evidence: `main.py`)
- Webhook sender → Discord API: posts webhook payload (evidence: `main.py`)
