# 0mdi/ultimate_spoofer architecture

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

- Interactive diagram: https://gitdiagram.com/0mdi/ultimate_spoofer
- Repository: https://github.com/0mdi/ultimate_spoofer

## Overview

This is a Windows HWID-spoofing toolkit: the loader prepares and loads the kernel driver, whose setup bootstraps the shellcode that intercepts hardware-identity queries and alters returned identifiers. Separate utilities verify storage and MAC identifiers, while wmic_block disrupts WMI queries. The README documents additional spoofing targets beyond the sampled implementations; those branches are retained, but their internal links are omitted where source evidence is unavailable.

Main entry points: [`driver_shellcode/main.cpp`](https://github.com/0mdi/ultimate_spoofer/blob/master/driver_shellcode/main.cpp) (Spoofing hooks), [`loader/main.cpp`](https://github.com/0mdi/ultimate_spoofer/blob/master/loader/main.cpp) (Driver loader), [`driver/main.cpp`](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/main.cpp) (Driver entry), [`spoof_checker/ioctl_base.hpp`](https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/ioctl_base.hpp) (IOCTL helpers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_load["Driver loading"]
  node_loader["Driver loader<br/>[main.cpp]"]
  node_registry["Registry preparation<br/>[registry.cpp]"]
  node_pdb["PDB offsets<br/>[pdb.cpp]"]
  node_loader_wmi["WMI reset<br/>[wmic.cpp]"]
end

subgraph group_kernel["Kernel setup"]
  node_driver_entry["Driver entry<br/>[main.cpp]"]
  node_imports["Kernel imports<br/>[imports.cpp]"]
  node_piddb["Driver cleanup<br/>[piddb.cpp]"]
end

subgraph group_spoof["Identity spoofing"]
  node_shellcode["Spoofing hooks<br/>[main.cpp]"]
  node_context["Kernel context<br/>[kernel_context.hpp]"]
  node_disk["Disk identifiers<br/>[disk.cpp]"]
  node_nic["NIC addresses<br/>[nic.cpp]"]
  node_smbios["SMBIOS identifiers<br/>[smbios.cpp]"]
  node_gpu["GPU identifiers<br/>[gpu.cpp]"]
  node_wmic_driver["WMI handling<br/>[wmic.cpp]"]
  node_kernel_state[("Kernel state<br/>[globals.hpp]")]
end

subgraph group_tools["Verification tools"]
  node_checker["Checker CLI<br/>[main.cpp]"]
  node_ioctl["IOCTL helpers<br/>[ioctl_base.hpp]"]
  node_storage_check["Storage checks"]
  node_ata_check["ATA checks"]
  node_smart_check["SMART checks"]
  node_mac_check["MAC checks<br/>[mac.cpp]"]
end

subgraph group_wmi["WMI disruption"]
  node_wmi_block["WMI blocker<br/>[main.cpp]"]
end

node_operator(("Operator"))
node_windows["Windows kernel"]

node_operator -->|"starts"| node_loader
node_loader -->|"requests offsets"| node_pdb
node_loader -->|"prepares registry"| node_registry
node_loader -->|"loads driver"| node_windows
node_driver_entry -->|"initializes"| node_imports
node_driver_entry -->|"cleans records"| node_piddb
node_loader -.->|"passes arguments"| node_driver_entry
node_driver_entry -.->|"bootstraps"| node_shellcode
node_shellcode -->|"uses state"| node_context
node_shellcode -.->|"handles storage queries"| node_disk
node_shellcode -.->|"handles network queries"| node_nic
node_disk -->|"reads arguments"| node_kernel_state
node_disk -->|"hooks storage paths"| node_windows
node_shellcode -.->|"spoofs SMBIOS"| node_smbios
node_shellcode -.->|"spoofs GPU IDs"| node_gpu
node_shellcode -.->|"handles WMI"| node_wmic_driver
node_operator -->|"runs checks"| node_checker
node_checker -->|"uses helpers"| node_ioctl
node_storage_check -->|"sends queries"| node_ioctl
node_ata_check -->|"uses base"| node_ioctl
node_smart_check -->|"uses base"| node_ioctl
node_checker -->|"dispatches"| node_mac_check
node_operator -->|"runs"| node_wmi_block
node_loader -->|"resets WMI"| node_loader_wmi

click node_loader "https://github.com/0mdi/ultimate_spoofer/blob/master/loader/main.cpp"
click node_registry "https://github.com/0mdi/ultimate_spoofer/blob/master/loader/registry.cpp"
click node_pdb "https://github.com/0mdi/ultimate_spoofer/blob/master/loader/pdb.cpp"
click node_driver_entry "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/main.cpp"
click node_imports "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/imports.cpp"
click node_piddb "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/piddb.cpp"
click node_shellcode "https://github.com/0mdi/ultimate_spoofer/blob/master/driver_shellcode/main.cpp"
click node_context "https://github.com/0mdi/ultimate_spoofer/blob/master/driver_shellcode/kernel_context.hpp"
click node_disk "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/disk.cpp"
click node_nic "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/nic.cpp"
click node_smbios "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/smbios.cpp"
click node_gpu "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/gpu.cpp"
click node_wmic_driver "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/wmic.cpp"
click node_kernel_state "https://github.com/0mdi/ultimate_spoofer/blob/master/driver/globals.hpp"
click node_checker "https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/main.cpp"
click node_ioctl "https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/ioctl_base.hpp"
click node_storage_check "https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/storage_query_property.cpp"
click node_ata_check "https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/ata_pass_through.cpp"
click node_smart_check "https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/smart_rcv_drive_data.cpp"
click node_mac_check "https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/mac.cpp"
click node_wmi_block "https://github.com/0mdi/ultimate_spoofer/blob/master/wmic_block/main.cpp"
click node_loader_wmi "https://github.com/0mdi/ultimate_spoofer/blob/master/loader/wmic.cpp"

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_loader,node_registry,node_pdb,node_loader_wmi toneBlue
class node_driver_entry,node_imports,node_piddb toneAmber
class node_shellcode,node_context,node_disk,node_nic,node_smbios,node_gpu,node_wmic_driver,node_kernel_state toneMint
class node_checker,node_ioctl,node_storage_check,node_ata_check,node_smart_check,node_mac_check toneRose
class node_wmi_block,node_operator,node_windows toneIndigo
```

## Components

### Driver loading

- [Driver loader](https://github.com/0mdi/ultimate_spoofer/blob/master/loader/main.cpp): `loader/main.cpp`
- [Registry preparation](https://github.com/0mdi/ultimate_spoofer/blob/master/loader/registry.cpp): `loader/registry.cpp`
- [PDB offsets](https://github.com/0mdi/ultimate_spoofer/blob/master/loader/pdb.cpp): `loader/pdb.cpp`
- [WMI reset](https://github.com/0mdi/ultimate_spoofer/blob/master/loader/wmic.cpp): `loader/wmic.cpp`

### Kernel setup

- [Driver entry](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/main.cpp): `driver/main.cpp`
- [Kernel imports](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/imports.cpp): `driver/imports.cpp`
- [Driver cleanup](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/piddb.cpp): `driver/piddb.cpp`

### Identity spoofing

- [Spoofing hooks](https://github.com/0mdi/ultimate_spoofer/blob/master/driver_shellcode/main.cpp): `driver_shellcode/main.cpp`
- [Kernel context](https://github.com/0mdi/ultimate_spoofer/blob/master/driver_shellcode/kernel_context.hpp): `driver_shellcode/kernel_context.hpp`
- [Disk identifiers](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/disk.cpp): `driver/disk.cpp`
- [NIC addresses](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/nic.cpp): `driver/nic.cpp`
- [SMBIOS identifiers](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/smbios.cpp): `driver/smbios.cpp`
- [GPU identifiers](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/gpu.cpp): `driver/gpu.cpp`
- [WMI handling](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/wmic.cpp): `driver/wmic.cpp`
- [Kernel state](https://github.com/0mdi/ultimate_spoofer/blob/master/driver/globals.hpp): `driver/globals.hpp`

### Verification tools

- [Checker CLI](https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/main.cpp): `spoof_checker/main.cpp`
- [IOCTL helpers](https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/ioctl_base.hpp): `spoof_checker/ioctl_base.hpp`
- [Storage checks](https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/storage_query_property.cpp): `spoof_checker/storage_query_property.cpp`
- [ATA checks](https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/ata_pass_through.cpp): `spoof_checker/ata_pass_through.cpp`
- [SMART checks](https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/smart_rcv_drive_data.cpp): `spoof_checker/smart_rcv_drive_data.cpp`
- [MAC checks](https://github.com/0mdi/ultimate_spoofer/blob/master/spoof_checker/mac.cpp): `spoof_checker/mac.cpp`

### WMI disruption

- [WMI blocker](https://github.com/0mdi/ultimate_spoofer/blob/master/wmic_block/main.cpp): `wmic_block/main.cpp`

### Other components

- **Operator**
- **Windows kernel**

## Connections

- Operator → Driver loader: starts (evidence: `loader/main.cpp`)
- Driver loader → PDB offsets: requests offsets (evidence: `loader/main.cpp`)
- Driver loader → Registry preparation: prepares registry (evidence: `loader/main.cpp`)
- Driver loader → Windows kernel: loads driver (evidence: `loader/main.cpp`)
- Driver entry → Kernel imports: initializes (evidence: `driver/main.cpp`)
- Driver entry → Driver cleanup: cleans records (evidence: `driver/main.cpp`)
- Driver loader → Driver entry: passes arguments
- Driver entry → Spoofing hooks: bootstraps
- Spoofing hooks → Kernel context: uses state (evidence: `driver_shellcode/main.cpp`)
- Spoofing hooks → Disk identifiers: handles storage queries
- Spoofing hooks → NIC addresses: handles network queries
- Disk identifiers → Kernel state: reads arguments (evidence: `driver/disk.cpp`)
- Disk identifiers → Windows kernel: hooks storage paths (evidence: `driver/disk.cpp`)
- Spoofing hooks → SMBIOS identifiers: spoofs SMBIOS
- Spoofing hooks → GPU identifiers: spoofs GPU IDs
- Spoofing hooks → WMI handling: handles WMI
- Operator → Checker CLI: runs checks (evidence: `spoof_checker/main.cpp`)
- Checker CLI → IOCTL helpers: uses helpers (evidence: `spoof_checker/main.cpp`)
- Storage checks → IOCTL helpers: sends queries (evidence: `spoof_checker/storage_query_property.cpp`)
- ATA checks → IOCTL helpers: uses base (evidence: `spoof_checker/ata_pass_through.cpp`)
- SMART checks → IOCTL helpers: uses base (evidence: `spoof_checker/smart_rcv_drive_data.cpp`)
- Checker CLI → MAC checks: dispatches (evidence: `spoof_checker/main.cpp`)
- Operator → WMI blocker: runs (evidence: `README.md`)
- Driver loader → WMI reset: resets WMI (evidence: `loader/main.cpp`)
