xu言:
之前,闹的沸沸扬扬的KMS激活工具自身都存在问题的事。让我们对以前的什么小马激活、kms激活、各种激活工具都去打了一个深深的“?”,到底哪些能用。哪些不能用。有些还注明的里面必须要关闭杀毒软件,以免误杀。。。但是这样真的安全吗?带着这样的疑问去调研了下如何自建KMS。
经过了解发下了一个适合“懒人”用的 一键KMS搭建~
https://github.com/ThunderEX/py-kms
Features(功能及支持的系统)
- Responds to V4, V5, and V6 KMS requests.
- Supports activating Windows 7/8/8.1/10/2008R2/2012/2012R2/2016 and Office 2010/2013/2016.
- It's written in Python.
Dependencies(依赖的环境)
- Python 2.6 or higher, micropython v1.9 or higher.
- Python 2.6 needs the "argparse" module installed.
- Micropython needs libpcre and libffi, and modules in micropythonlib, check section below.
Usage(使用方法)
- To start the server, execute
python server.py [listen_address] [port]
. The default listening address is0.0.0.0
(all interfaces) and the default port is1688
. - To run the client, use
python client.py server_address [port]
. The default port is1688
. - To run on ipv6, please use a valid ipv6 address, for example
::
for broadcast.
Note: 基本上通过这个激活的大部分下载的系统盘都是VOL或者非零售版本的操作系统及Office软件。不然可能不能正常激活。
如果想windows上使用就直接下载zip包,linux作为服务器就git clone下来吧。
默认使用的是1688端口。
服务端架设篇
让其在linux后台执行
查看端口是否已经开启监听
打开防火墙
sudo firewall-cmd --add-port=1688/tcp --permanent
sudo systemctl reload firewalld
客户端激活篇
激活windows
slmgr /skms x.x.x.x:1688
slmgr /ato
验证结果:
slmgr.vbs -xpr
slmgr.vbs -dli
rem 激活office
cscript ospp.vbs /sethst:x.x.x.x:1688
cscript ospp.vbs /act
验证结果: 找到你office的安装目录下面执行:
cscript ospp.vbs /dstatus
看服务器地址是否已经指向你自己假设的服务器上面