# s3cur3th1ssh1t/winpwn architecture

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

- Interactive diagram: https://gitdiagram.com/s3cur3th1ssh1t/winpwn
- Repository: https://github.com/s3cur3th1ssh1t/winpwn

## Overview

WinPwn is a Windows PowerShell penetration-testing toolkit. Its principal workflow is to invoke the imported WinPwn entry point interactively or noninteractively, select local or domain reconnaissance and other security operations, then display results or save loot/reports. The README documents broad capabilities but no source excerpts were provided, so subsystem nodes share the documented WinPwn.ps1 path and their edges represent documented dispatch or invocation, not inspected function calls. Offline_WinPwn.ps1 is documented as a bundled alternative for systems without internet access.

Main entry points: [`WinPwn.ps1`](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1) (WinPwn entry), [`Offline_WinPwn.ps1`](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/Offline_WinPwn.ps1) (Offline bundle)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and offline"]
  node_winpwn["WinPwn entry<br/>[WinPwn.ps1]"]
  node_offline["Offline bundle<br/>[Offline_WinPwn.ps1]"]
end

subgraph group_recon["Reconnaissance"]
  node_localrecon["Local recon<br/>[WinPwn.ps1]"]
  node_domainrecon["Domain recon<br/>[WinPwn.ps1]"]
  node_shareenum["Share enumeration<br/>[WinPwn.ps1]"]
  node_domainshares["Domain share search<br/>[WinPwn.ps1]"]
  node_groupsearch["Group policy mapping<br/>[WinPwn.ps1]"]
  node_dotnet[".NET assembly search<br/>[WinPwn.ps1]"]
end

subgraph group_assessment["Attack and assessment"]
  node_credentials["Credential collection<br/>[WinPwn.ps1]"]
  node_kerberoast["Kerberoasting<br/>[WinPwn.ps1]"]
  node_powersql["SQL auditing<br/>[WinPwn.ps1]"]
  node_sharphound["BloodHound collection<br/>[WinPwn.ps1]"]
  node_passwordspray["Domain password spray<br/>[WinPwn.ps1]"]
  node_adidns["AD-integrated DNS<br/>[WinPwn.ps1]"]
end

subgraph group_execution["Privilege and execution"]
  node_privesc["Privilege escalation checks<br/>[WinPwn.ps1]"]
  node_kernel["Kernel exploits<br/>[WinPwn.ps1]"]
  node_uac["UAC bypass<br/>[WinPwn.ps1]"]
  node_systemshell["SYSTEM shell<br/>[WinPwn.ps1]"]
  node_inveigh["Inveigh relay<br/>[WinPwn.ps1]"]
  node_sharpcradle["Sharp cradle<br/>[WinPwn.ps1]"]
end

node_operator(("Operator / C2"))
node_localrepo["Local repository server"]

node_operator -->|"imports or invokes"| node_winpwn
node_winpwn -->|"dispatches"| node_localrecon
node_winpwn -->|"dispatches"| node_domainrecon
node_winpwn -->|"invokes"| node_shareenum
node_winpwn -->|"invokes"| node_domainshares
node_winpwn -->|"invokes"| node_groupsearch
node_winpwn -->|"invokes"| node_dotnet
node_winpwn -->|"invokes"| node_credentials
node_winpwn -->|"invokes"| node_kerberoast
node_winpwn -->|"invokes"| node_powersql
node_winpwn -->|"invokes"| node_sharphound
node_winpwn -->|"invokes"| node_passwordspray
node_winpwn -->|"invokes"| node_adidns
node_winpwn -->|"invokes"| node_privesc
node_winpwn -->|"invokes"| node_kernel
node_winpwn -->|"invokes"| node_uac
node_winpwn -->|"invokes"| node_systemshell
node_winpwn -->|"invokes"| node_inveigh
node_winpwn -->|"invokes"| node_sharpcradle
node_operator -->|"uses without internet"| node_offline
node_winpwn -->|"uses with -repo"| node_localrepo

click node_winpwn "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_offline "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/Offline_WinPwn.ps1"
click node_localrecon "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_domainrecon "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_shareenum "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_domainshares "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_groupsearch "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_dotnet "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_credentials "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_kerberoast "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_powersql "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_sharphound "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_passwordspray "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_adidns "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_privesc "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_kernel "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_uac "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_systemshell "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_inveigh "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"
click node_sharpcradle "https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1"

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_winpwn,node_offline toneBlue
class node_localrecon,node_domainrecon,node_shareenum,node_domainshares,node_groupsearch,node_dotnet toneAmber
class node_credentials,node_kerberoast,node_powersql,node_sharphound,node_passwordspray,node_adidns,node_localrepo toneMint
class node_privesc,node_kernel,node_uac,node_systemshell,node_inveigh,node_sharpcradle toneRose
class node_operator toneIndigo
```

## Components

### Entry and offline

- [WinPwn entry](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Offline bundle](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/Offline_WinPwn.ps1): `Offline_WinPwn.ps1`

### Reconnaissance

- [Local recon](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Domain recon](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Share enumeration](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Domain share search](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Group policy mapping](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [.NET assembly search](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`

### Attack and assessment

- [Credential collection](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Kerberoasting](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [SQL auditing](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [BloodHound collection](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Domain password spray](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [AD-integrated DNS](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`

### Privilege and execution

- [Privilege escalation checks](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Kernel exploits](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [UAC bypass](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [SYSTEM shell](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Inveigh relay](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`
- [Sharp cradle](https://github.com/s3cur3th1ssh1t/winpwn/blob/master/WinPwn.ps1): `WinPwn.ps1`

### Other components

- **Operator / C2**
- **Local repository server**

## Connections

- Operator / C2 → WinPwn entry: imports or invokes (evidence: `README.md`)
- WinPwn entry → Local recon: dispatches (evidence: `README.md`)
- WinPwn entry → Domain recon: dispatches (evidence: `README.md`)
- WinPwn entry → Share enumeration: invokes (evidence: `README.md`)
- WinPwn entry → Domain share search: invokes (evidence: `README.md`)
- WinPwn entry → Group policy mapping: invokes (evidence: `README.md`)
- WinPwn entry → .NET assembly search: invokes (evidence: `README.md`)
- WinPwn entry → Credential collection: invokes (evidence: `README.md`)
- WinPwn entry → Kerberoasting: invokes (evidence: `README.md`)
- WinPwn entry → SQL auditing: invokes (evidence: `README.md`)
- WinPwn entry → BloodHound collection: invokes (evidence: `README.md`)
- WinPwn entry → Domain password spray: invokes (evidence: `README.md`)
- WinPwn entry → AD-integrated DNS: invokes (evidence: `README.md`)
- WinPwn entry → Privilege escalation checks: invokes (evidence: `README.md`)
- WinPwn entry → Kernel exploits: invokes (evidence: `README.md`)
- WinPwn entry → UAC bypass: invokes (evidence: `README.md`)
- WinPwn entry → SYSTEM shell: invokes (evidence: `README.md`)
- WinPwn entry → Inveigh relay: invokes (evidence: `README.md`)
- WinPwn entry → Sharp cradle: invokes (evidence: `README.md`)
- Operator / C2 → Offline bundle: uses without internet (evidence: `README.md`)
- WinPwn entry → Local repository server: uses with -repo (evidence: `README.md`)
