$ account massgravel
A collection of monolithic batch scripts (.cmd) that activate Microsoft Windows and Office using multiple methods: HWID (digital license generation), Ohook (DLL injection for Office), Online KMS (volume license with renewal), and TSforge (low-level licensing data manipulation). Each script is self-contained, containing extensive embedded PowerShell and, in one case, embedded C# code that is compiled and executed at runtime. The scripts demonstrate deep knowledge of Windows licensing internals, service management, and API calls via P/Invoke. However, the architecture is fragile: common setup logic is duplicated across all scripts, code is split between batch and PowerShell sections via fragile label splitting, and product keys/IDs are hardcoded. The repository is highly popular (192k+ stars) and functional but not well-engineered, with significant technical debt and maintenance complexity.
TSforge is a CLI utility that directly manipulates the Windows Software Protection Platform (SPP) physical store to achieve permanent activation or extended evaluation periods for Windows Vista through 11 and associated add-ons (e.g., ESU). The codebase is a well-structured C# application targeting .NET Framework 3.5, consisting of a library (LibTSforge) and a command-line entry point (TSforgeCLI). It implements multiple activation methods (KMS4k, AVMA4k, ZeroCID) and modifiers for resetting grace periods, clearing tamper flags, and installing generated product keys. The architecture involves decrypting the encrypted physical store file, parsing its block-based structure, inserting new activation data (timers, bindings, HWID blocks), re-encrypting, and writing back while managing the SPP service. The code demonstrates deep reverse engineering of Windows licensing internals, with careful handling of different store formats across OS versions. Despite targeting a deprecated .NET version and using legacy cryptographic primitives (SHA1, RSA PKCS#1 v1.5), the code remains functional for its niche purpose.