Linux上利用vlmcsd搭建KMS服务器

KMS 即密钥管理服务,利用它可以批量激活Windows的产品,它是在Windows Vista之后的产品中的一种新型产品激活机制。

vlmcsd - portable open-source KMS Emulator in C

Supported operating systems / run-time environments

  • Linux, GNU/Linux, uclibc/Linux, musl/Linux, Android (bionic/Linux), FreeBSD, FreeBSD with glibc (e.g. debian/kFreeBSD), OpenBSD, NetBSD, DragonflyBSD, Solaris, Open Indiana, Dyson, Minix, Darwin, Mac OS, iOS, Windows, Cygwin, WSL, Wine, The Hurd.

Supported CPUs

  • x86, arm, mips, PowerPC, Sparc, s390

vlmcsd is

  • a replacement for Microsoft’s KMS server
  • It contains vlmcs, a KMS test client, mainly for debugging purposes, that also can “charge” a genuine KMS server
  • designed to run on an always-on or often-on device, e.g. router, NAS Box, …
  • intended to help people who lost activation of their legally-owned licenses, e.g. due to a change of hardware (motherboard, CPU, …)

vlmcsd is not

  • a one-click activation or crack tool
  • intended to activate illegal copies of software (Windows, Office, Project, Visio)

这个项目的地址为Emulated KMS Servers on non-Windows platforms 更新GitHub地址

下载: Source and binaries: http://rgho.st/8hXKrr9Dd Source only: http://rgho.st/8z9BVlkVC

7zip password is 2017

这里以64位的Linux搭建为例,搭建也很简单:

将下载的文件解压缩后,进入目录

1
cd ./vlmcsd-1108-2017-01-19-Hotbird64/binaries/Linux/intel/static && cp vlmcsd-x64-musl-static kms && mv kms /usr/bin

将目录下的vlmcsd-x64-musl-static 文件 改名为 kms,并复制到/usr/bin

修改文件为可执行

1
chmod +x /usr/bin/kms

然后直接执行 kms 即可启动服务。

这个服务侦听的端口是1688,可以输入以下命令查看运行状态:

netstat -ap | grep 1688

1688.png

至此服务器就搭建成功了。

为了方便,我们可以将它加入开机启动列表:

 vim /etc/rc.local

然后加入

/usr/bin/kms

保存重启服务器查看效果!

激活

激活Windows7/Windows10专业版为例:

用管理员身份运行命令行

1
2
3
4
5
6
slmgr.vbs -upk
ver | find "10.0.">nul && slmgr.vbs -ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
ver | find "6.1.">nul && slmgr.vbs -ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
slmgr.vbs -skms 172.17.0.29
slmgr.vbs -ato
slmgr.vbs -dlv

激活Office2010/Office2013/Office2016: 用管理员身份运行命令行

1
2
3
4
5
6
7
if exist "C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" (cd "C:\Program Files (x86)\Microsoft Office\Office14") else (cd "c:\Program Files\Microsoft Office\Office14")
if exist "C:\Program Files (x86)\Microsoft Office\Office15\ospp.vbs" (cd "C:\Program Files (x86)\Microsoft Office\Office15") else (cd "c:\Program Files\Microsoft Office\Office15")
if exist "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" (cd "C:\Program Files (x86)\Microsoft Office\Office16") else (cd "c:\Program Files\Microsoft Office\Office16")
cscript ospp.vbs /osppsvcauto
cscript ospp.vbs /sethst:172.17.0.29
cscript ospp.vbs /act
cscript ospp.vbs /dstatus
Licensed under CC BY-NC-SA 4.0
最后更新于 Jan 25, 2018 13:37 UTC
点击刷新🚌