vlmcsd代码仓库:https://github.com/Wind4/vlmcsd

搭建步骤

本次操作环境centos7,通过内网进行搭建

1.安装依赖环境

yum install gcc git make -y

2.下载源码,编译安装

cd /var/opt/
git clone https://github.com/Wind4/vlmcsd.git
cd vlmcsd
make -j 4 

编译日志如下:

[root@localhost vlmcsd]# make -j 4
make[1]: warning: -j16 forced in submake: resetting jobserver mode.
make[1]: Entering directory '/var/opt/vlmcsd/src'CC   vlmcs.o <- vlmcs.cCC kmsdata-full.o <- kmsdata-full.cCC   crypto.o <- crypto.cCC   kms.o <- kms.cCC endian.o <- endian.cCC   output.o <- output.cCC   shared_globals.o <- shared_globals.cCC   helpers.o <- helpers.cCC network.o <- network.cCC rpc.o <- rpc.cCC crypto_internal.o <- crypto_internal.cCC dns_srv.o <- dns_srv.cCC vlmcsd.o <- vlmcsd.cCC   kmsdata.o <- kmsdata.cLD     ../bin/vlmcs <- vlmcs.o kmsdata-full.o crypto.o kms.o endian.o output.o shared_globals.o helpers.o network.o rpc.o crypto_internal.o dns_srv.oLD     ../bin/vlmcsd <- vlmcsd.o kmsdata.o crypto.o kms.o endian.o output.o shared_globals.o helpers.o network.o rpc.o crypto_internal.o
make[1]: Leaving directory '/var/opt/vlmcsd/src'

可以看到 bin目录下有编译成功后的文件,复制文件到/usr/local/bin/目录下

cp bin/vlmcsd /usr/local/bin/
cp etc/vlmcsd.ini /etc/

默认配置文件如下,默认监听1688端口

#
#
# Sample vlmcsd.ini
#
# An ini file for vlmcsd is normally not required. It is for advanced users only.
# vlmcsd uses an ini file only if specified using the -i option in the command line parameters.
# There is no default ini file because vlmcsd is designed to run on many platforms.
#
# Every line starting with a number sign (#) or semicolon (;) is treated as a comment.
# If a key word is used more than once, the last occurrence is used. The only exception
# to this is Listen. You can use Listen=<ip address>[:port] more than once.
## Set ePID/HwId for Windows explicitly
;Windows = 06401-00206-471-111111-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08# Set ePID for Office 2010 (including Visio and Project) explicitly
;Office2010 = 06401-00096-199-222222-03-1033-17763.0000-2822018# Set ePID/HwId for Office 2013 (including Visio and Project) explicitly
;Office2013 = 06401-00206-234-333333-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08# Set ePID/HwId for Office 2016 (including Visio and Project) explicitly
;Office2016 = 06401-00206-437-444444-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08# Set ePID/HwId for Office 2019 (including Visio and Project) explicitly
;Office2019 = 06401-00206-666-666666-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08# Set ePID/HwId for Windows China Government (Enterprise G/GN) explicitly
;WinChinaGov = 06401-03858-000-555555-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08# Use a compatible VPN device to create a hidden local IPv4 address
# Command line: -O
# VPN = <VPN adapter name>[=<IPv4 address>][/<CIDR mask>][:<DHCP lease duration>]
# Use VPN adapter "KMS Mirror" give it IP address 192.168.123.100 with a lease duration of one day and make entire 192.168.128.x a hidden local IPv4 address.
;VPN = KMS Mirror=192.168.123.100/24:1d# Use custom TCP port
# Command line: -P
# ***The Port directive only works if vlmcsd was compiled to use MS RPC or simple sockets
# ***Use Listen otherwise
;Port = 1234# Listen on all IPv4 addresses (default port 1688)
# Command line: -L
# Does not work with MS RPC or simple sockets, use Port=
;Listen = 0.0.0.0:1688# Listen on all IPv6 addresses (default port 1688)
# Command line: -L
;Listen = [::]:1688# Listen on all private IP addresses and reject incoming requests from public IP addresses
# Command line: -o
# PublicIPProtectionLevel = 3# Allow binding to foreign IP addresses
# Command line: -F0 and -F1
;FreeBind = true# Randomize ePIDs at program start up (only those that are not explicitly specified)
# Command line: -r
;RandomizationLevel = 1# Use a specific host build in ePIDs even if the ePID is randomized
# Command line: -H
;HostBuild = 17763# Use a specific culture (1033 = English US) in ePIDs even if the ePID is randomized
# Command line: -C
;LCID = 1033# Set a maximum of 4 workers (forked processes or threads)
# Command line: -m
;MaxWorkers = 4# Disconnect users after 30 seconds of inactivity
# Command line: -t
;ConnectionTimeout = 30# Disconnect clients immediately after each request
# Command line: -d and -k
;DisconnectClientsImmediately = yes# Write a pid file (a file containing the process id of vlmcsd)
# Command line: -p
;PidFile = /var/run/vlmcsd.pid# Load a KMS data file
# Command line: -j
;KmsData = /etc/vlmcsd.kmd# Write log to /var/log/vlmcsd.log
# Command line: -l (-e and -f also override this directive)
;LogFile = /var/log/vlmcsd.log# Don't include date and time in logs (default is true)
# Command line: -T0 and -T1
;LogDateAndTime = false# Create a verbose log
# Command line: -v and -q
;LogVerbose = true# Whitelist known products
# Command line: -K0, -K1, -K2, -K3
;WhiteListingLevel = 0# Check that the client time is within +/- 4 hours of the system time
# Command line: -c0, -c1
;CheckClientTime = false# Maintain a list of CMIDs
# Command line: -M0, -M1
;MaintainClients = false# Start with empty CMID list (Requires MaintainClients = true)
# Command line: -E0, -E1
;StartEmpty = false# Set activation interval to 2 hours
# Command line: -A
;ActivationInterval = 2h# Set renewal interval to 7 days
# Command line: -R
;RenewalInterval = 7d# Exit vlmcsd if warning of certain level has been reached
# Command line: -x
# 0 = Never
# 1 = Exit, if any listening socket could not be established or TAP error occurs
;ExitLevel = 0# Run program as user vlmcsduser
# Command line: -u
;user = vlmcsduser# Run program as group vlmcsdgroup
# Command line: -g
;group = vlmcsdgroup # Disable or enable the NDR64 transfer syntax in RPC (default enabled)
# Command line: -N0 and -N1
;UseNDR64 = true# Disable or enable bind time feature negotiation in RPC (default enabled)
# Command line: -B0 and -B1
;UseBTFN = true

启动

# 直接执行命令即可/usr/local/bin/vlmcsd
# 指定配置文件启动/usr/local/bin/vlmcsd -i /etc/vlmcsd.ini

win10专业版测试

10.66.66.79  为刚才搭建的kms服务器的IP地址
@echo off
slmgr /skms 10.66.66.79
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /ato
slmgr /xpr

已经成功,有效时间是180天

部分key:wokey/README.md at main · nineaiyu/wokey · GitHub

上面操作步骤过于复杂,可以参考下面脚本进行操作

GitHub - massgravel/Microsoft-Activation-Scripts: A Windows and Office activator using HWID / KMS38 / Online KMS activation methods, with a focus on open-source code and fewer antivirus detections.

Windows 10/11

右键单击 Windows 开始菜单并选择 PowerShell 或终端

irm https://massgrave.dev/get | iex

根据提示操作即可

kms服务器搭建及测试相关推荐

  1. MQTT服务器搭建和测试步骤及遇见的问题

    MQTT服务器搭建和测试步骤及遇见的问题 前言:MQTT服务器有好多种,查看:Servers/Brokers Apache-Apollo:一个代理服务器,在ActiveMQ基础上发展而来,可以支持ST ...

  2. 阿里云MQTT服务器搭建与测试(全图文,非常详细)

    阿里云MQTT服务器搭建与测试 一. MQTT概念 二. 阿里云MQTT服务器搭建 1 阿里云平台注册及认证 2 添加平台 2 创建产品与设备 获取MQTT连接相关信息 三.MQTT.fx测试 1 M ...

  3. Tomcat服务器搭建及测试教程(1),腾讯技术官发布的“神仙文档”火爆网络

    Tomcat是一个免费开源的servlet容器,我们可以在官网获取下载: https://tomcat.apache.org/download-70.cgi 在首页中我们可以根据自己电脑和JDK的不同 ...

  4. TFTP服务器搭建与测试

    一.基础知识介绍 TFTP(Trivial File Transfer Protocol,简单文件传输协议),是一个基于 UDP 协议实现的用于在客户机和服务器之间进行简单文件传输的协议,适合于开销不 ...

  5. SRS流媒体服务器搭建与测试

    SRS是一个视频直播开源代码的服务程序,由winlin,采用C++语言开发.第一个版本是2013-2014年发布,今年年初再次发布更新,工作中需要用到流媒体做监控所以尝试使用SRS来搭建第一个流媒体服 ...

  6. Tomcat服务器搭建及测试教程,腾讯+华为+阿里面试真题分享

    5.Tomcat服务器测试 Hello!你好哇,我是灰小猿!一个超会写bug的程序猿! 最近在学习Java web开发时,需要将项目发布到Tomcat服务器上去,所以在这里记录一下在window环境下 ...

  7. SpringSecurity分布式整合之资源服务器搭建和测试

    资源服务 说明 资源服务可以有很多个,这里只拿产品服务为例,记住,资源服务中只能通过公钥验证认证.不能签发token! 创建产品服务并导入jar包 根据实际业务导包即可,咱们就暂时和认证服务一样了. ...

  8. Ubuntu搭建kms服务器

    Key Management Service(简称:KMS),这个功能是在Windows Vista之后的产品中的一种新型产品激活机制.我们可以利用手里闲置的VPS安装vlmcsd来搭建KMS激活服务 ...

  9. 使用py-kms搭建KMS服务器激活环境

    操作系统为CentOS6.6 py-kms发布地址(原始): https://github.com/myanaloglife/py-kms 现在建议用这个,支持2和3: https://github. ...

  10. windows 搭建kms服务器激活_自建KMS激活服务器的两种方法

    你还在用网上那种坑爹的Ghost盗版系统吗?内置各种辣鸡.流氓软件,新系统?纯净版Ghost系统?不存在的~ 在开始自建KMS服务器之前,我觉得很有必要给大家分享一个神站,没错就是MSDN! 地址:h ...

最新文章

  1. String与StringBuffer、StringBuilder之间的转换
  2. 【超级鼠标键盘锁】之实现思路(非驱动实现)
  3. 【JAVA基础篇】String类详解
  4. [转载] 使用Python编写打字训练小程序
  5. (function($){...})(jQuery) 含义
  6. [WORK]局数据系统
  7. 吉林建筑大学电气与计算机学院院长,吉林建筑大学电气与计算机学院研究生导师:张玉红...
  8. B00010 map
  9. python求解LeetCode习题Compare Version Numbers
  10. 欧姆龙cp1h指令讲解_欧姆龙cp1h常用指令学习(六)功能块、子程序
  11. java 图片合并成pdf_Java多张图片合成PDF
  12. 服务器连交换机配置lacp协议,LACP(链路聚合控制协议)
  13. C语言栈括号匹配算法
  14. 热传导方程的差分解法c语言,九热传导方程的差分解法.PPT
  15. win10系统如何删除不用的输入法
  16. ecshop模板支持php,让ecshop模板支持php运算
  17. 【BUG】win10下VS中出现LINK : fatal error LNK1104: cannot open file “xx/xx.exe“的问题
  18. wan口有流量但电脑上不了网_路由器WAN口有IP地址上不了网如何解决【详细介绍】...
  19. 高性能计算,云上见!
  20. C语言:实现三重缓冲区(附完整源码)

热门文章

  1. Verilog的基本语法
  2. 国密算法 ZUC流密码 祖冲之密码 python代码完整实现
  3. 解决依赖包引入后重复问题Duplicate zip entry
  4. 钢琴自学app开发(原生代码)
  5. 用于webmax演示的网页文件
  6. 北斗一代卫星导航系统简介
  7. html在线快递单号打印,HTML 快递打印模板(示例代码)
  8. Python爬虫项目:爬虫爬取正则分析糗百数据
  9. Google桌面与BBdoc文件管理助手对比分析
  10. 通过 SiteServer CMS 推进政府网站集约化、集群化建设