How massgravel/tsforge works
TSforge is a Windows activation and evaluation-data manipulation tool, exposed as a command-line program and library. Users choose an operation and optional activation ID/version; the CLI dispatches to an activator or modifier, which consults Windows Software Protection Platform (SPP) licensing state and may update the physical or token store. The README also documents trusted-store dump/load, timer and key-state changes, generated-key installation, and IID configuration. Source excerpts are partial, so edges show documented operations and visible calls without inferring internal wiring for unsampled implementations.
Main entry points: Program.cs CLI dispatcher · IPhysicalStore.cs Physical store API · GenPKeyInstall.cs Generated key install · KMS4K.cs KMS4K
Components 27
Command line
- CLI dispatcher
TSforgeCLI/Program.cs
Activation and changes
- ZeroCID
LibTSforge/Activators/ZeroCID.cs - KMS4K
LibTSforge/Activators/KMS4K.cs - AVMA4K
LibTSforge/Activators/AVMA4K.cs - Rearm reset
LibTSforge/Modifiers/RearmReset.cs - Grace reset
LibTSforge/Modifiers/GracePeriodReset.cs - Generated key install
LibTSforge/Modifiers/GenPKeyInstall.cs - Unique ID delete
LibTSforge/Modifiers/UniqueIdDelete.cs - KMS host charge
LibTSforge/Modifiers/KMSHostCharge.cs - Tamper flag delete
LibTSforge/Modifiers/TamperedFlagsDelete.cs - Key lock delete
LibTSforge/Modifiers/KeyChangeLockDelete.cs - IID parameters
LibTSforge/Modifiers/SetIIDParams.cs
SPP licensing
- Windows SPP API
LibTSforge/SPP/SLAPI.cs - SPP utilities
LibTSforge/SPP/SPPUtils.cs - Product key config
LibTSforge/SPP/PKeyConfig.cs - Product key data
LibTSforge/SPP/ProductKey.cs
Local activation stores
- Physical store API
LibTSforge/PhysicalStore/IPhysicalStore.cs - Modern store
LibTSforge/PhysicalStore/PhysicalStoreModern.cs - Vista store
LibTSforge/PhysicalStore/PhysicalStoreVista.cs - Windows 7 store
LibTSforge/PhysicalStore/PhysicalStoreWin7.cs - Token store
LibTSforge/TokenStore/TokenStoreModern.cs
Encoding and crypto
- Store encryption
LibTSforge/Crypto/PhysStoreCrypto.cs - Crypto utilities
LibTSforge/Crypto/CryptoUtils.cs - Variable bag
LibTSforge/PhysicalStore/VariableBag.cs
Other components
- Operator
- Windows SPP
- Dump or load file
Connections 45
- Operator → CLI dispatcher: chooses operation
- CLI dispatcher → ZeroCID: dispatches
- CLI dispatcher → KMS4K: dispatches
- CLI dispatcher → AVMA4K: dispatches
- CLI dispatcher → Rearm reset: dispatches
- CLI dispatcher → Grace reset: dispatches
- CLI dispatcher → Generated key install: dispatches
- CLI dispatcher → Unique ID delete: dispatches
- CLI dispatcher → KMS host charge: dispatches
- CLI dispatcher → Tamper flag delete: dispatches
- CLI dispatcher → Key lock delete: dispatches
- CLI dispatcher → IID parameters: dispatches
- ZeroCID → Windows SPP API: queries licensing
- ZeroCID → Physical store API: updates store
- ZeroCID → SPP utilities: restarts SPP
- KMS4K → Windows SPP API: checks key
- KMS4K → SPP utilities: stops service
- KMS4K → Physical store API: updates store
- KMS4K → Variable bag: serializes data
- KMS host charge → Windows SPP API: checks key
- KMS host charge → Physical store API: updates store
- KMS host charge → Variable bag: serializes data
- KMS host charge → SPP utilities: restarts SPP
- Generated key install → Product key config: loads configuration
- Generated key install → Product key data: builds key data
- Generated key install → Physical store API: updates store
- Generated key install → Token store: updates tokens
- Generated key install → Windows SPP API: refreshes licensing
- IID parameters → Physical store API: updates store
- Rearm reset → Physical store API: updates store
- Grace reset → Physical store API: updates store
- Unique ID delete → Physical store API: updates store
- Tamper flag delete → Physical store API: updates store
- Key lock delete → Physical store API: updates store
- Physical store API → Modern store: selects format
- Physical store API → Vista store: selects format
- Physical store API → Windows 7 store: selects format
- Modern store → Store encryption: decrypts or encrypts
- Windows 7 store → Store encryption: decrypts or encrypts
- Token store → Crypto utilities: hashes content
- Variable bag → Crypto utilities: hashes data
- Windows SPP API → Windows SPP: calls licensing API
- SPP utilities → Windows SPP: controls service
- CLI dispatcher → Dump or load file: reads or writes
- CLI dispatcher → Physical store API: dump or load