# shack2/snetcracker architecture

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

- Interactive diagram: https://gitdiagram.com/shack2/snetcracker
- Repository: https://github.com/shack2/snetcracker

## Overview

SNETCracker is a Windows weak-password auditing tool. Users configure targets, services, ports, and credential dictionaries; the application can expand IP ranges, optionally scan ports, and run service-specific login checks concurrently, then display results. Service handlers cover the protocols listed in the README, with a dedicated RDP client. The graph preserves the main workflow and the thread-pool execution layer. Some protocol handlers and UI paths were not sampled, so their connections are documented capabilities rather than inspected calls.

Main entry points: [`SNETCracker/Main.cs`](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs) (Audit UI), [`SNETCracker/Model`](https://github.com/shack2/snetcracker/tree/master/SNETCracker/Model) (Protocol checks), [`SNETCracker/rdp/RdpClient.cs`](https://github.com/shack2/snetcracker/blob/master/SNETCracker/rdp/RdpClient.cs) (RDP client), [`SNETCracker/SmartThread/SmartThreadPool.cs`](https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/SmartThreadPool.cs) (Smart thread pool)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Audit workflow"]
  node_ui["Audit UI<br/>[Main.cs]"]
  node_targets["Target selection<br/>[Main.cs]"]
  node_portscan["Port scanning<br/>[Main.cs]"]
  node_credentialconfig["Credential setup<br/>[Seting.cs]"]
  node_results["Audit results<br/>[Main.cs]"]
end

subgraph group_protocols["Service checks"]
  node_servicechecks["Protocol checks"]
  node_rdp["RDP client<br/>[RdpClient.cs]"]
  node_rdpresponse["RDP response types<br/>[ResponseType.cs]"]
end

subgraph group_threading["Thread execution"]
  node_smartpool["Smart thread pool<br/>[SmartThreadPool.cs]"]
  node_workitems["Work items<br/>[WorkItem.cs]"]
  node_groups["Work item groups"]
  node_queue["Work queue<br/>[WorkItemsQueue.cs]"]
  node_workinfo["Work configuration<br/>[WIGStartInfo.cs]"]
end

subgraph group_support["Models and utilities"]
  node_servicebase["Service contract<br/>[CrackService.cs]"]
  node_server["Server state<br/>[Server.cs]"]
  node_servicemodel["Service configuration<br/>[ServiceModel.cs]"]
  node_filetool["Dictionary files<br/>[FileTool.cs]"]
  node_telnet["Telnet utility<br/>[TelnetClient.cs]"]
end

node_operator(("Operator"))

node_operator -->|"configures"| node_ui
node_ui -->|"selects targets"| node_targets
node_ui -->|"loads settings"| node_credentialconfig
node_credentialconfig -->|"reads dictionaries"| node_filetool
node_ui -->|"scans ports"| node_portscan
node_ui -->|"queues checks"| node_smartpool
node_ui -->|"dispatches checks"| node_servicechecks
node_servicechecks -->|"implements contract"| node_servicebase
node_servicechecks -->|"returns state"| node_server
node_ui -->|"shows outcomes"| node_results
node_ui -->|"uses service settings"| node_servicemodel
node_smartpool -->|"creates groups"| node_groups
node_groups -->|"creates work"| node_workitems
node_groups -.->|"enqueues work"| node_queue
node_smartpool -->|"configures groups"| node_workinfo
node_ui -->|"starts RDP checks"| node_rdp
node_rdp -->|"updates state"| node_server
node_rdp -->|"raises responses"| node_rdpresponse
node_servicechecks -.->|"uses Telnet helper"| node_telnet

click node_ui "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs"
click node_targets "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs"
click node_portscan "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs"
click node_credentialconfig "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Seting.cs"
click node_results "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs"
click node_servicechecks "https://github.com/shack2/snetcracker/tree/master/SNETCracker/Model"
click node_rdp "https://github.com/shack2/snetcracker/blob/master/SNETCracker/rdp/RdpClient.cs"
click node_servicebase "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Model/CrackService.cs"
click node_server "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Model/Server.cs"
click node_servicemodel "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Model/ServiceModel.cs"
click node_filetool "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Tools/FileTool.cs"
click node_smartpool "https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/SmartThreadPool.cs"
click node_workitems "https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/WorkItem.cs"
click node_groups "https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/WorkItemsGroupBase.cs"
click node_queue "https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/WorkItemsQueue.cs"
click node_workinfo "https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/WIGStartInfo.cs"
click node_telnet "https://github.com/shack2/snetcracker/blob/master/SNETCracker/Tools/TelnetClient.cs"
click node_rdpresponse "https://github.com/shack2/snetcracker/blob/master/SNETCracker/rdp/ResponseType.cs"

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_ui,node_targets,node_portscan,node_credentialconfig,node_results toneBlue
class node_servicechecks,node_rdp,node_rdpresponse toneAmber
class node_smartpool,node_workitems,node_groups,node_queue,node_workinfo toneMint
class node_servicebase,node_server,node_servicemodel,node_filetool,node_telnet toneRose
class node_operator toneIndigo
```

## Components

### Audit workflow

- [Audit UI](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs): `SNETCracker/Main.cs`
- [Target selection](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs): `SNETCracker/Main.cs`
- [Port scanning](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs): `SNETCracker/Main.cs`
- [Credential setup](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Seting.cs): `SNETCracker/Seting.cs`
- [Audit results](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Main.cs): `SNETCracker/Main.cs`

### Service checks

- [Protocol checks](https://github.com/shack2/snetcracker/tree/master/SNETCracker/Model): `SNETCracker/Model`
- [RDP client](https://github.com/shack2/snetcracker/blob/master/SNETCracker/rdp/RdpClient.cs): `SNETCracker/rdp/RdpClient.cs`
- [RDP response types](https://github.com/shack2/snetcracker/blob/master/SNETCracker/rdp/ResponseType.cs): `SNETCracker/rdp/ResponseType.cs`

### Thread execution

- [Smart thread pool](https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/SmartThreadPool.cs): `SNETCracker/SmartThread/SmartThreadPool.cs`
- [Work items](https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/WorkItem.cs): `SNETCracker/SmartThread/WorkItem.cs`
- [Work item groups](https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/WorkItemsGroupBase.cs): `SNETCracker/SmartThread/WorkItemsGroupBase.cs`
- [Work queue](https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/WorkItemsQueue.cs): `SNETCracker/SmartThread/WorkItemsQueue.cs`
- [Work configuration](https://github.com/shack2/snetcracker/blob/master/SNETCracker/SmartThread/WIGStartInfo.cs): `SNETCracker/SmartThread/WIGStartInfo.cs`

### Models and utilities

- [Service contract](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Model/CrackService.cs): `SNETCracker/Model/CrackService.cs`
- [Server state](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Model/Server.cs): `SNETCracker/Model/Server.cs`
- [Service configuration](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Model/ServiceModel.cs): `SNETCracker/Model/ServiceModel.cs`
- [Dictionary files](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Tools/FileTool.cs): `SNETCracker/Tools/FileTool.cs`
- [Telnet utility](https://github.com/shack2/snetcracker/blob/master/SNETCracker/Tools/TelnetClient.cs): `SNETCracker/Tools/TelnetClient.cs`

### Other components

- **Operator**

## Connections

- Operator → Audit UI: configures
- Audit UI → Target selection: selects targets (evidence: `SNETCracker/Main.cs`)
- Audit UI → Credential setup: loads settings (evidence: `SNETCracker/Main.cs`)
- Credential setup → Dictionary files: reads dictionaries (evidence: `SNETCracker/Seting.cs`)
- Audit UI → Port scanning: scans ports (evidence: `SNETCracker/Main.cs`)
- Audit UI → Smart thread pool: queues checks (evidence: `SNETCracker/Main.cs`)
- Audit UI → Protocol checks: dispatches checks (evidence: `SNETCracker/Main.cs`)
- Protocol checks → Service contract: implements contract (evidence: `SNETCracker/Model/CrackService.cs`)
- Protocol checks → Server state: returns state (evidence: `SNETCracker/Model/CrackService.cs`)
- Audit UI → Audit results: shows outcomes (evidence: `SNETCracker/Main.cs`)
- Audit UI → Service configuration: uses service settings (evidence: `SNETCracker/Main.cs`)
- Smart thread pool → Work item groups: creates groups (evidence: `SNETCracker/SmartThread/SmartThreadPool.cs`)
- Work item groups → Work items: creates work (evidence: `SNETCracker/SmartThread/WorkItemsGroupBase.cs`)
- Work item groups → Work queue: enqueues work
- Smart thread pool → Work configuration: configures groups (evidence: `SNETCracker/SmartThread/SmartThreadPool.cs`)
- Audit UI → RDP client: starts RDP checks (evidence: `SNETCracker/Main.cs`)
- RDP client → Server state: updates state (evidence: `SNETCracker/rdp/RdpClient.cs`)
- RDP client → RDP response types: raises responses (evidence: `SNETCracker/rdp/RdpClient.cs`)
- Protocol checks → Telnet utility: uses Telnet helper
