mirror of
https://github.com/Wind4/vlmcsd.git
synced 2025-07-03 17:27:56 +08:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
d413afbadf | |||
0b2c216c06 | |||
213ac7d870 |
12
GNUmakefile
12
GNUmakefile
@ -204,14 +204,14 @@ else
|
|||||||
STRIPFLAGS += -s
|
STRIPFLAGS += -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBRARY_CFLAGS = -DSIMPLE_SOCKETS -DNO_TIMEOUT -DNO_SIGHUP -DNO_CL_PIDS -DNO_EXTENDED_PRODUCT_LIST -DNO_BASIC_PRODUCT_LIST -DNO_LOG -DNO_RANDOM_EPID -DNO_INI_FILE -DNO_INI_FILE -DNO_HELP -DNO_CUSTOM_INTERVALS -DNO_PID_FILE -DNO_USER_SWITCH -DNO_VERBOSE_LOG -DNO_LIMIT -DNO_VERSION_INFORMATION -DNO_PRIVATE_IP_DETECT
|
LIBRARY_CFLAGS = -DSIMPLE_SOCKETS -DNO_TIMEOUT -DNO_SIGHUP -DNO_CL_PIDS -DNO_EXTENDED_PRODUCT_LIST -DNO_BASIC_PRODUCT_LIST -DNO_LOG -DNO_RANDOM_EPID -DNO_INI_FILE -DNO_HELP -DNO_CUSTOM_INTERVALS -DNO_PID_FILE -DNO_USER_SWITCH -DNO_VERBOSE_LOG -DNO_LIMIT -DNO_VERSION_INFORMATION -DNO_PRIVATE_IP_DETECT
|
||||||
|
|
||||||
ifeq ($(FEATURES), embedded)
|
ifeq ($(FEATURES), embedded)
|
||||||
BASECFLAGS += -DNO_HELP -DNO_USER_SWITCH -DNO_BASIC_PRODUCT_LIST -DNO_CUSTOM_INTERVALS -DNO_PID_FILE -DNO_VERBOSE_LOG -DNO_VERSION_INFORMATION
|
BASECFLAGS += -DNO_HELP -DNO_USER_SWITCH -DNO_BASIC_PRODUCT_LIST -DNO_CUSTOM_INTERVALS -DNO_PID_FILE -DNO_VERBOSE_LOG -DNO_VERSION_INFORMATION
|
||||||
else ifeq ($(FEATURES), autostart)
|
else ifeq ($(FEATURES), autostart)
|
||||||
BASECFLAGS += -DNO_HELP -DNO_VERSION_INFORMATION
|
BASECFLAGS += -DNO_HELP -DNO_VERSION_INFORMATION
|
||||||
else ifeq ($(FEATURES), minimum)
|
else ifeq ($(FEATURES), minimum)
|
||||||
BASECFLAGS += $(LIBRARY_CFLAGS)
|
BASECFLAGS += -DSIMPLE_SOCKETS -DNO_TIMEOUT -DNO_SIGHUP -DNO_CL_PIDS -DNO_EXTENDED_PRODUCT_LIST -DNO_BASIC_PRODUCT_LIST -DNO_LOG -DNO_RANDOM_EPID -DNO_INI_FILE -DNO_HELP -DNO_CUSTOM_INTERVALS -DNO_PID_FILE -DNO_USER_SWITCH -DNO_VERBOSE_LOG -DNO_LIMIT -DNO_VERSION_INFORMATION -DNO_PRIVATE_IP_DETECT -DSMALL_AES
|
||||||
else ifeq ($(FEATURES), most)
|
else ifeq ($(FEATURES), most)
|
||||||
BASECFLAGS += -DNO_SIGHUP -DNO_PID_FILE -DNO_LIMIT
|
BASECFLAGS += -DNO_SIGHUP -DNO_PID_FILE -DNO_LIMIT
|
||||||
else ifeq ($(FEATURES), inetd)
|
else ifeq ($(FEATURES), inetd)
|
||||||
@ -252,6 +252,10 @@ ifdef OFFICE2013
|
|||||||
BASECFLAGS += -DEPID_OFFICE2013=\"$(OFFICE2013)\"
|
BASECFLAGS += -DEPID_OFFICE2013=\"$(OFFICE2013)\"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef OFFICE2016
|
||||||
|
BASECFLAGS += -DEPID_OFFICE2016=\"$(OFFICE2016)\"
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef HWID
|
ifdef HWID
|
||||||
BASECFLAGS += -DHWID=$(HWID)
|
BASECFLAGS += -DHWID=$(HWID)
|
||||||
endif
|
endif
|
||||||
@ -632,6 +636,7 @@ help:
|
|||||||
@echo " WINDOWS=<x> Use <x> as the default ePID for Windows (when using $(PROGRAM_NAME) with -r 0)."
|
@echo " WINDOWS=<x> Use <x> as the default ePID for Windows (when using $(PROGRAM_NAME) with -r 0)."
|
||||||
@echo " OFFICE2010=<x> Use <x> as the default ePID for Office2010 (when using $(PROGRAM_NAME) with -r 0)."
|
@echo " OFFICE2010=<x> Use <x> as the default ePID for Office2010 (when using $(PROGRAM_NAME) with -r 0)."
|
||||||
@echo " OFFICE2013=<x> Use <x> as the default ePID for Office2013 (when using $(PROGRAM_NAME) with -r 0)."
|
@echo " OFFICE2013=<x> Use <x> as the default ePID for Office2013 (when using $(PROGRAM_NAME) with -r 0)."
|
||||||
|
@echo " OFFICE2016=<x> Use <x> as the default ePID for Office2016 (when using $(PROGRAM_NAME) with -r 0)."
|
||||||
@echo " HWID=<x> Use <x> as the default HWID (when it can't be found in an ini file)."
|
@echo " HWID=<x> Use <x> as the default HWID (when it can't be found in an ini file)."
|
||||||
@echo " FEATURES=full Compile $(PROGRAM_NAME) with all features (default)."
|
@echo " FEATURES=full Compile $(PROGRAM_NAME) with all features (default)."
|
||||||
@echo " FEATURES=most Compile $(PROGRAM_NAME) without rarely used features."
|
@echo " FEATURES=most Compile $(PROGRAM_NAME) without rarely used features."
|
||||||
@ -653,13 +658,14 @@ help:
|
|||||||
@echo " -DNO_HELP Don't support command line help."
|
@echo " -DNO_HELP Don't support command line help."
|
||||||
@echo " -DNO_CUSTOM_INTERVALS Don't support custom intervals for retry and refresh activation. Removes -A and -R options."
|
@echo " -DNO_CUSTOM_INTERVALS Don't support custom intervals for retry and refresh activation. Removes -A and -R options."
|
||||||
@echo " -DNO_FREEBIND Don't support binding to foreign IP addresses. Removes -F0 and -F1 options. Only affects FreeBSD and Linux."
|
@echo " -DNO_FREEBIND Don't support binding to foreign IP addresses. Removes -F0 and -F1 options. Only affects FreeBSD and Linux."
|
||||||
@echo " -DSIMPLE_SOCKETS Compile $(PROGRAM_NAME) with basic socket support only. Removes -L option."
|
|
||||||
@echo " -DNO_SOCKETS Don't support standalone operation. Requires an internet superserver to start $(PROGRAM_NAME)."
|
@echo " -DNO_SOCKETS Don't support standalone operation. Requires an internet superserver to start $(PROGRAM_NAME)."
|
||||||
@echo " -DNO_CL_PIDS Don't support specifying ePIDs and HwId from the command line in $(PROGRAM_NAME)."
|
@echo " -DNO_CL_PIDS Don't support specifying ePIDs and HwId from the command line in $(PROGRAM_NAME)."
|
||||||
@echo " -DNO_LIMIT Don't support limiting concurrent clients in $(PROGRAM_NAME)."
|
@echo " -DNO_LIMIT Don't support limiting concurrent clients in $(PROGRAM_NAME)."
|
||||||
@echo " -DNO_SIGHUP Don't support SIGHUP handling in $(PROGRAM_NAME)."
|
@echo " -DNO_SIGHUP Don't support SIGHUP handling in $(PROGRAM_NAME)."
|
||||||
@echo " -DNO_VERSION_INFORMATION Don't support displaying version information in $(PROGRAM_NAME) and $(CLIENT_NAME). Removes -V option."
|
@echo " -DNO_VERSION_INFORMATION Don't support displaying version information in $(PROGRAM_NAME) and $(CLIENT_NAME). Removes -V option."
|
||||||
@echo " -DNO_PRIVATE_IP_DETECT Don't support protection against clients with public IP addresses in $(PROGRAM_NAME)"
|
@echo " -DNO_PRIVATE_IP_DETECT Don't support protection against clients with public IP addresses in $(PROGRAM_NAME)"
|
||||||
|
@echo " -DSIMPLE_SOCKETS Compile $(PROGRAM_NAME) with basic socket support only. Removes -L option."
|
||||||
|
@echo " -DSMALL_AES Use a smaller (saves about 200 bytes) but slower implementation of AES."
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "Troubleshooting options"
|
@echo "Troubleshooting options"
|
||||||
@echo " CAT=1 Combine all sources in a single in-memory file and compile directly to target."
|
@echo " CAT=1 Combine all sources in a single in-memory file and compile directly to target."
|
||||||
|
236
VisualStudio/libkms/libkms.vcxproj
Normal file
236
VisualStudio/libkms/libkms.vcxproj
Normal file
@ -0,0 +1,236 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{2A0FC04D-C3C0-43E2-8812-53AE901C5395}</ProjectGuid>
|
||||||
|
<RootNamespace>vlmcsdmulti</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_xp</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_xp</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<OutDir>$(SolutionDir)..\</OutDir>
|
||||||
|
<TargetName>libkms32</TargetName>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<TargetExt>.dll</TargetExt>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<OutDir>$(SolutionDir)..\</OutDir>
|
||||||
|
<TargetName>libkms64</TargetName>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<TargetExt>.dll</TargetExt>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<TargetName>$(ProjectName)64</TargetName>
|
||||||
|
<TargetExt>.dll</TargetExt>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<TargetExt>.dll</TargetExt>
|
||||||
|
<TargetName>$(ProjectName)32</TargetName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<CompileAs>Default</CompileAs>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;_MBCS;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC;SIMPLE_SOCKETS;NO_TIMEOUT;NO_SIGHUP;NO_CL_PIDS;NO_EXTENDED_PRODUCT_LIST;NO_BASIC_PRODUCT_LIST;NO_LOG;NO_RANDOM_EPID;NO_INI_FILE;NO_HELP;NO_CUSTOM_INTERVALS;NO_PID_FILE;NO_USER_SWITCH;NO_VERBOSE_LOG;NO_LIMIT;NO_VERSION_INFORMATION;NO_PRIVATE_IP_DETECT;IS_LIBRARY=1</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<SubSystem>NotSet</SubSystem>
|
||||||
|
<MinimumRequiredVersion />
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC;SIMPLE_SOCKETS;NO_TIMEOUT;NO_SIGHUP;NO_CL_PIDS;NO_EXTENDED_PRODUCT_LIST;NO_BASIC_PRODUCT_LIST;NO_LOG;NO_RANDOM_EPID;NO_INI_FILE;NO_HELP;NO_CUSTOM_INTERVALS;NO_PID_FILE;NO_USER_SWITCH;NO_VERBOSE_LOG;NO_LIMIT;NO_VERSION_INFORMATION;NO_PRIVATE_IP_DETECT;IS_LIBRARY=1</PreprocessorDefinitions>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<SubSystem>NotSet</SubSystem>
|
||||||
|
<MinimumRequiredVersion />
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>
|
||||||
|
</SDLCheck>
|
||||||
|
<CallingConvention>Cdecl</CallingConvention>
|
||||||
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<FloatingPointExceptions>false</FloatingPointExceptions>
|
||||||
|
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<OpenMPSupport>false</OpenMPSupport>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<PreprocessorDefinitions>_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;SIMPLE_SOCKETS;NO_TIMEOUT;NO_SIGHUP;NO_CL_PIDS;NO_EXTENDED_PRODUCT_LIST;NO_BASIC_PRODUCT_LIST;NO_LOG;NO_RANDOM_EPID;NO_INI_FILE;NO_HELP;NO_CUSTOM_INTERVALS;NO_PID_FILE;NO_USER_SWITCH;NO_VERBOSE_LOG;NO_LIMIT;NO_VERSION_INFORMATION;NO_PRIVATE_IP_DETECT;IS_LIBRARY=1</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<AdditionalDependencies>$(SolutionDir)\msvcrt.lib;Shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<SubSystem>NotSet</SubSystem>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
<TerminalServerAware>
|
||||||
|
</TerminalServerAware>
|
||||||
|
<SwapRunFromCD>true</SwapRunFromCD>
|
||||||
|
<SwapRunFromNET>true</SwapRunFromNET>
|
||||||
|
<MinimumRequiredVersion />
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>
|
||||||
|
</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;SIMPLE_SOCKETS;NO_TIMEOUT;NO_SIGHUP;NO_CL_PIDS;NO_EXTENDED_PRODUCT_LIST;NO_BASIC_PRODUCT_LIST;NO_LOG;NO_RANDOM_EPID;NO_INI_FILE;NO_HELP;NO_CUSTOM_INTERVALS;NO_PID_FILE;NO_USER_SWITCH;NO_VERBOSE_LOG;NO_LIMIT;NO_VERSION_INFORMATION;NO_PRIVATE_IP_DETECT;IS_LIBRARY=1</PreprocessorDefinitions>
|
||||||
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<TreatWarningAsError>false</TreatWarningAsError>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<FloatingPointExceptions>false</FloatingPointExceptions>
|
||||||
|
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<OpenMPSupport>false</OpenMPSupport>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<AdditionalDependencies>$(SolutionDir)\msvcrt64.lib;Shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<SubSystem>NotSet</SubSystem>
|
||||||
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
<TerminalServerAware>
|
||||||
|
</TerminalServerAware>
|
||||||
|
<SwapRunFromCD>true</SwapRunFromCD>
|
||||||
|
<SwapRunFromNET>true</SwapRunFromNET>
|
||||||
|
<MinimumRequiredVersion />
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\crypto.c" />
|
||||||
|
<ClCompile Include="..\..\crypto_windows.c" />
|
||||||
|
<ClCompile Include="..\..\endian.c" />
|
||||||
|
<ClCompile Include="..\..\helpers.c" />
|
||||||
|
<ClCompile Include="..\..\kms.c" />
|
||||||
|
<ClCompile Include="..\..\libkms.c" />
|
||||||
|
<ClCompile Include="..\..\network.c" />
|
||||||
|
<ClCompile Include="..\..\output.c" />
|
||||||
|
<ClCompile Include="..\..\rpc.c" />
|
||||||
|
<ClCompile Include="..\..\shared_globals.c" />
|
||||||
|
<ClCompile Include="..\..\vlmcs.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\config.h" />
|
||||||
|
<ClInclude Include="..\..\crypto.h" />
|
||||||
|
<ClInclude Include="..\..\crypto_windows.h" />
|
||||||
|
<ClInclude Include="..\..\endian.h" />
|
||||||
|
<ClInclude Include="..\..\helpers.h" />
|
||||||
|
<ClInclude Include="..\..\kms.h" />
|
||||||
|
<ClInclude Include="..\..\libkms.h" />
|
||||||
|
<ClInclude Include="..\..\network.h" />
|
||||||
|
<ClInclude Include="..\..\output.h" />
|
||||||
|
<ClInclude Include="..\..\rpc.h" />
|
||||||
|
<ClInclude Include="..\..\shared_globals.h" />
|
||||||
|
<ClInclude Include="..\..\types.h" />
|
||||||
|
<ClInclude Include="..\..\vlmcs.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
93
VisualStudio/libkms/libkms.vcxproj.filters
Normal file
93
VisualStudio/libkms/libkms.vcxproj.filters
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\crypto.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\crypto_windows.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\endian.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\helpers.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\kms.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\network.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\output.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\rpc.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\shared_globals.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\vlmcs.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\libkms.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\config.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\crypto.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\crypto_windows.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\endian.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\helpers.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\kms.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\network.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\output.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\rpc.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\shared_globals.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\types.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\vlmcs.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\libkms.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
BIN
VisualStudio/msvcrt.lib
Executable file
BIN
VisualStudio/msvcrt.lib
Executable file
Binary file not shown.
BIN
VisualStudio/msvcrt64.lib
Executable file
BIN
VisualStudio/msvcrt64.lib
Executable file
Binary file not shown.
227
VisualStudio/vlmcs/vlmcs.vcxproj
Normal file
227
VisualStudio/vlmcs/vlmcs.vcxproj
Normal file
@ -0,0 +1,227 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}</ProjectGuid>
|
||||||
|
<RootNamespace>vlmcs</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_xp</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_xp</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<OutDir>$(SolutionDir)..\</OutDir>
|
||||||
|
<TargetName>vlmcs-Windows-x86</TargetName>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<OutDir>$(SolutionDir)..\</OutDir>
|
||||||
|
<TargetName>vlmcs-Windows-x64</TargetName>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<CompileAs>Default</CompileAs>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;_MBCS;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC</PreprocessorDefinitions>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>
|
||||||
|
</SDLCheck>
|
||||||
|
<CallingConvention>Cdecl</CallingConvention>
|
||||||
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<FloatingPointExceptions>false</FloatingPointExceptions>
|
||||||
|
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<OpenMPSupport>false</OpenMPSupport>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<PreprocessorDefinitions>_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);_CRYPTO_WINDOWS</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<AdditionalDependencies>$(SolutionDir)\msvcrt.lib;Shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
<TerminalServerAware>true</TerminalServerAware>
|
||||||
|
<SwapRunFromCD>true</SwapRunFromCD>
|
||||||
|
<SwapRunFromNET>true</SwapRunFromNET>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>
|
||||||
|
</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS</PreprocessorDefinitions>
|
||||||
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<TreatWarningAsError>false</TreatWarningAsError>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<FloatingPointExceptions>false</FloatingPointExceptions>
|
||||||
|
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<OpenMPSupport>false</OpenMPSupport>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<AdditionalDependencies>$(SolutionDir)\msvcrt64.lib;Shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
<TerminalServerAware>true</TerminalServerAware>
|
||||||
|
<SwapRunFromCD>true</SwapRunFromCD>
|
||||||
|
<SwapRunFromNET>true</SwapRunFromNET>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\crypto.c" />
|
||||||
|
<ClCompile Include="..\..\crypto_windows.c" />
|
||||||
|
<ClCompile Include="..\..\dns_srv.c" />
|
||||||
|
<ClCompile Include="..\..\endian.c" />
|
||||||
|
<ClCompile Include="..\..\helpers.c" />
|
||||||
|
<ClCompile Include="..\..\kms.c" />
|
||||||
|
<ClCompile Include="..\..\network.c" />
|
||||||
|
<ClCompile Include="..\..\output.c" />
|
||||||
|
<ClCompile Include="..\..\rpc.c" />
|
||||||
|
<ClCompile Include="..\..\shared_globals.c" />
|
||||||
|
<ClCompile Include="..\..\vlmcs.c" />
|
||||||
|
<ClCompile Include="..\..\wingetopt.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\config.h" />
|
||||||
|
<ClInclude Include="..\..\crypto.h" />
|
||||||
|
<ClInclude Include="..\..\crypto_internal.h" />
|
||||||
|
<ClInclude Include="..\..\crypto_windows.h" />
|
||||||
|
<ClInclude Include="..\..\dns_srv.h" />
|
||||||
|
<ClInclude Include="..\..\endian.h" />
|
||||||
|
<ClInclude Include="..\..\helpers.h" />
|
||||||
|
<ClInclude Include="..\..\kms.h" />
|
||||||
|
<ClInclude Include="..\..\network.h" />
|
||||||
|
<ClInclude Include="..\..\output.h" />
|
||||||
|
<ClInclude Include="..\..\rpc.h" />
|
||||||
|
<ClInclude Include="..\..\shared_globals.h" />
|
||||||
|
<ClInclude Include="..\..\types.h" />
|
||||||
|
<ClInclude Include="..\..\vlmcs.h" />
|
||||||
|
<ClInclude Include="..\..\wingetopt.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
102
VisualStudio/vlmcs/vlmcs.vcxproj.filters
Normal file
102
VisualStudio/vlmcs/vlmcs.vcxproj.filters
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\crypto.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\crypto_windows.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\dns_srv.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\endian.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\helpers.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\kms.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\network.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\output.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\rpc.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\shared_globals.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\vlmcs.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\wingetopt.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\config.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\crypto.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\crypto_internal.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\crypto_windows.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dns_srv.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\endian.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\helpers.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\kms.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\network.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\output.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\rpc.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\shared_globals.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\types.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\vlmcs.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\wingetopt.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
58
VisualStudio/vlmcsd-2015-with-2013-c++-build-tools.sln
Executable file
58
VisualStudio/vlmcsd-2015-with-2013-c++-build-tools.sln
Executable file
@ -0,0 +1,58 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 14
|
||||||
|
VisualStudioVersion = 14.0.25420.1
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vlmcsd", "vlmcsd.vcxproj", "{918B4F5B-6356-451E-998C-5FCB29988170}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vlmcs", "vlmcs\vlmcs.vcxproj", "{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vlmcsdmulti", "vlmcsdmulti\vlmcsdmulti.vcxproj", "{7F07671D-1432-43E9-9D72-08435F216B5E}"
|
||||||
|
EndProject
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libkms", "libkms\libkms.vcxproj", "{2A0FC04D-C3C0-43E2-8812-53AE901C5395}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{918B4F5B-6356-451E-998C-5FCB29988170}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{918B4F5B-6356-451E-998C-5FCB29988170}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{918B4F5B-6356-451E-998C-5FCB29988170}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{918B4F5B-6356-451E-998C-5FCB29988170}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{918B4F5B-6356-451E-998C-5FCB29988170}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{918B4F5B-6356-451E-998C-5FCB29988170}.Release|x64.Build.0 = Release|x64
|
||||||
|
{918B4F5B-6356-451E-998C-5FCB29988170}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{918B4F5B-6356-451E-998C-5FCB29988170}.Release|x86.Build.0 = Release|Win32
|
||||||
|
{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}.Release|x64.Build.0 = Release|x64
|
||||||
|
{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{2B3F305D-6351-4F4A-A7F2-1F9B1988CDEE}.Release|x86.Build.0 = Release|Win32
|
||||||
|
{7F07671D-1432-43E9-9D72-08435F216B5E}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{7F07671D-1432-43E9-9D72-08435F216B5E}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{7F07671D-1432-43E9-9D72-08435F216B5E}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{7F07671D-1432-43E9-9D72-08435F216B5E}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{7F07671D-1432-43E9-9D72-08435F216B5E}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{7F07671D-1432-43E9-9D72-08435F216B5E}.Release|x64.Build.0 = Release|x64
|
||||||
|
{7F07671D-1432-43E9-9D72-08435F216B5E}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{7F07671D-1432-43E9-9D72-08435F216B5E}.Release|x86.Build.0 = Release|Win32
|
||||||
|
{2A0FC04D-C3C0-43E2-8812-53AE901C5395}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{2A0FC04D-C3C0-43E2-8812-53AE901C5395}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{2A0FC04D-C3C0-43E2-8812-53AE901C5395}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{2A0FC04D-C3C0-43E2-8812-53AE901C5395}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{2A0FC04D-C3C0-43E2-8812-53AE901C5395}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{2A0FC04D-C3C0-43E2-8812-53AE901C5395}.Release|x64.Build.0 = Release|x64
|
||||||
|
{2A0FC04D-C3C0-43E2-8812-53AE901C5395}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{2A0FC04D-C3C0-43E2-8812-53AE901C5395}.Release|x86.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
229
VisualStudio/vlmcsd.vcxproj
Executable file
229
VisualStudio/vlmcsd.vcxproj
Executable file
@ -0,0 +1,229 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{918B4F5B-6356-451E-998C-5FCB29988170}</ProjectGuid>
|
||||||
|
<RootNamespace>vlmcsd</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>
|
||||||
|
</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_xp</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_xp</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<OutDir>$(SolutionDir)..\</OutDir>
|
||||||
|
<TargetName>vlmcsd-Windows-x64</TargetName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
<TargetName>vlmcsd-Windows-x86</TargetName>
|
||||||
|
<OutDir>$(SolutionDir)..\</OutDir>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<AdditionalDependencies>Iphlpapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC</PreprocessorDefinitions>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<AdditionalDependencies>Iphlpapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>
|
||||||
|
</SDLCheck>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
|
<ControlFlowGuard>false</ControlFlowGuard>
|
||||||
|
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||||
|
<CallingConvention>Cdecl</CallingConvention>
|
||||||
|
<CompileAs>Default</CompileAs>
|
||||||
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<CompileAsManaged>false</CompileAsManaged>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<FloatingPointExceptions>false</FloatingPointExceptions>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<OpenMPSupport>false</OpenMPSupport>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<TreatWarningAsError>false</TreatWarningAsError>
|
||||||
|
<PreprocessorDefinitions>_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);_CRYPTO_WINDOWS</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
<CompileAsWinRT>false</CompileAsWinRT>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<AdditionalDependencies>$(SolutionDir)\msvcrt.lib;Iphlpapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<ProgramDatabaseFile />
|
||||||
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
<TerminalServerAware>true</TerminalServerAware>
|
||||||
|
<SwapRunFromCD>true</SwapRunFromCD>
|
||||||
|
<SwapRunFromNET>true</SwapRunFromNET>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>
|
||||||
|
</SDLCheck>
|
||||||
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
|
<ControlFlowGuard>false</ControlFlowGuard>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<OpenMPSupport>false</OpenMPSupport>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS</PreprocessorDefinitions>
|
||||||
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
|
<CompileAsManaged>false</CompileAsManaged>
|
||||||
|
<TreatWarningAsError>false</TreatWarningAsError>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<AdditionalDependencies>$(SolutionDir)\msvcrt64.lib;Iphlpapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
|
<ProgramDatabaseFile />
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\config.h" />
|
||||||
|
<ClInclude Include="..\crypto.h" />
|
||||||
|
<ClInclude Include="..\crypto_internal.h" />
|
||||||
|
<ClInclude Include="..\crypto_windows.h" />
|
||||||
|
<ClInclude Include="..\endian.h" />
|
||||||
|
<ClInclude Include="..\helpers.h" />
|
||||||
|
<ClInclude Include="..\kms.h" />
|
||||||
|
<ClInclude Include="..\network.h" />
|
||||||
|
<ClInclude Include="..\ntservice.h" />
|
||||||
|
<ClInclude Include="..\output.h" />
|
||||||
|
<ClInclude Include="..\rpc.h" />
|
||||||
|
<ClInclude Include="..\shared_globals.h" />
|
||||||
|
<ClInclude Include="..\types.h" />
|
||||||
|
<ClInclude Include="..\vlmcsd.h" />
|
||||||
|
<ClInclude Include="..\wingetopt.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\crypto.c" />
|
||||||
|
<ClCompile Include="..\crypto_windows.c" />
|
||||||
|
<ClCompile Include="..\endian.c" />
|
||||||
|
<ClCompile Include="..\helpers.c" />
|
||||||
|
<ClCompile Include="..\kms.c" />
|
||||||
|
<ClCompile Include="..\network.c" />
|
||||||
|
<ClCompile Include="..\ntservice.c" />
|
||||||
|
<ClCompile Include="..\output.c" />
|
||||||
|
<ClCompile Include="..\rpc.c" />
|
||||||
|
<ClCompile Include="..\shared_globals.c" />
|
||||||
|
<ClCompile Include="..\vlmcsd.c" />
|
||||||
|
<ClCompile Include="..\wingetopt.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
102
VisualStudio/vlmcsd.vcxproj.filters
Executable file
102
VisualStudio/vlmcsd.vcxproj.filters
Executable file
@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\config.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\crypto.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\crypto_internal.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\crypto_windows.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\endian.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\helpers.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\kms.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\network.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\ntservice.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\output.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\rpc.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\shared_globals.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\types.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\vlmcsd.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\wingetopt.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\crypto.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\crypto_windows.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\endian.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\helpers.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\kms.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\network.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\ntservice.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\output.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\rpc.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\shared_globals.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\vlmcsd.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\wingetopt.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
231
VisualStudio/vlmcsdmulti/vlmcsdmulti.vcxproj
Executable file
231
VisualStudio/vlmcsdmulti/vlmcsdmulti.vcxproj
Executable file
@ -0,0 +1,231 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{7F07671D-1432-43E9-9D72-08435F216B5E}</ProjectGuid>
|
||||||
|
<RootNamespace>vlmcsdmulti</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_xp</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v140_xp</PlatformToolset>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>Application</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v120_xp</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<OutDir>$(SolutionDir)..\</OutDir>
|
||||||
|
<TargetName>vlmcsdmulti-Windows-x86</TargetName>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<OutDir>$(SolutionDir)..\</OutDir>
|
||||||
|
<TargetName>vlmcsdmulti-Windows-x64</TargetName>
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<GenerateManifest>false</GenerateManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<CompileAs>Default</CompileAs>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;_MBCS;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC;MULTI_CALL_BINARY=1</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC;MULTI_CALL_BINARY=1</PreprocessorDefinitions>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<MinimalRebuild>false</MinimalRebuild>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>
|
||||||
|
</SDLCheck>
|
||||||
|
<CallingConvention>Cdecl</CallingConvention>
|
||||||
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<FloatingPointExceptions>false</FloatingPointExceptions>
|
||||||
|
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<OpenMPSupport>false</OpenMPSupport>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<PreprocessorDefinitions>_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;MULTI_CALL_BINARY=1</PreprocessorDefinitions>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<AdditionalDependencies>$(SolutionDir)\msvcrt.lib;Shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
<TerminalServerAware>true</TerminalServerAware>
|
||||||
|
<SwapRunFromCD>true</SwapRunFromCD>
|
||||||
|
<SwapRunFromNET>true</SwapRunFromNET>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<Optimization>MinSpace</Optimization>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>
|
||||||
|
</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_USING_V110_SDK71_;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;MULTI_CALL_BINARY=1</PreprocessorDefinitions>
|
||||||
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<TreatWarningAsError>false</TreatWarningAsError>
|
||||||
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>false</ExceptionHandling>
|
||||||
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<FloatingPointExceptions>false</FloatingPointExceptions>
|
||||||
|
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||||
|
<RuntimeTypeInfo>false</RuntimeTypeInfo>
|
||||||
|
<OpenMPSupport>false</OpenMPSupport>
|
||||||
|
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<AdditionalDependencies>$(SolutionDir)\msvcrt64.lib;Shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<LargeAddressAware>true</LargeAddressAware>
|
||||||
|
<TerminalServerAware>true</TerminalServerAware>
|
||||||
|
<SwapRunFromCD>true</SwapRunFromCD>
|
||||||
|
<SwapRunFromNET>true</SwapRunFromNET>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\crypto.c" />
|
||||||
|
<ClCompile Include="..\..\crypto_windows.c" />
|
||||||
|
<ClCompile Include="..\..\dns_srv.c" />
|
||||||
|
<ClCompile Include="..\..\endian.c" />
|
||||||
|
<ClCompile Include="..\..\helpers.c" />
|
||||||
|
<ClCompile Include="..\..\kms.c" />
|
||||||
|
<ClCompile Include="..\..\network.c" />
|
||||||
|
<ClCompile Include="..\..\ntservice.c" />
|
||||||
|
<ClCompile Include="..\..\output.c" />
|
||||||
|
<ClCompile Include="..\..\rpc.c" />
|
||||||
|
<ClCompile Include="..\..\shared_globals.c" />
|
||||||
|
<ClCompile Include="..\..\vlmcs.c" />
|
||||||
|
<ClCompile Include="..\..\vlmcsd.c" />
|
||||||
|
<ClCompile Include="..\..\vlmcsdmulti.c" />
|
||||||
|
<ClCompile Include="..\..\wingetopt.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\config.h" />
|
||||||
|
<ClInclude Include="..\..\crypto.h" />
|
||||||
|
<ClInclude Include="..\..\crypto_windows.h" />
|
||||||
|
<ClInclude Include="..\..\dns_srv.h" />
|
||||||
|
<ClInclude Include="..\..\endian.h" />
|
||||||
|
<ClInclude Include="..\..\helpers.h" />
|
||||||
|
<ClInclude Include="..\..\kms.h" />
|
||||||
|
<ClInclude Include="..\..\network.h" />
|
||||||
|
<ClInclude Include="..\..\ntservice.h" />
|
||||||
|
<ClInclude Include="..\..\output.h" />
|
||||||
|
<ClInclude Include="..\..\rpc.h" />
|
||||||
|
<ClInclude Include="..\..\shared_globals.h" />
|
||||||
|
<ClInclude Include="..\..\types.h" />
|
||||||
|
<ClInclude Include="..\..\vlmcs.h" />
|
||||||
|
<ClInclude Include="..\..\vlmcsd.h" />
|
||||||
|
<ClInclude Include="..\..\wingetopt.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
114
VisualStudio/vlmcsdmulti/vlmcsdmulti.vcxproj.filters
Executable file
114
VisualStudio/vlmcsdmulti/vlmcsdmulti.vcxproj.filters
Executable file
@ -0,0 +1,114 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Source Files">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Header Files">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Resource Files">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\..\crypto.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\crypto_windows.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\dns_srv.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\endian.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\helpers.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\kms.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\network.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\output.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\rpc.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\shared_globals.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\vlmcs.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\wingetopt.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\ntservice.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\vlmcsd.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\vlmcsdmulti.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\..\config.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\crypto.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\crypto_windows.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\dns_srv.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\endian.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\helpers.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\kms.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\network.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\output.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\rpc.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\shared_globals.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\types.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\vlmcs.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\wingetopt.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\ntservice.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\vlmcsd.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
6
config.h
6
config.h
@ -45,7 +45,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef EPID_OFFICE2013
|
#ifndef EPID_OFFICE2013
|
||||||
#define EPID_OFFICE2013 "03612-00206-437-938274-03-1033-14393.0000-2382016"
|
#define EPID_OFFICE2013 "03612-00206-234-177489-03-1033-14393.0000-2382016"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef EPID_OFFICE2016
|
||||||
|
#define EPID_OFFICE2016 "03612-00206-437-728387-03-1033-14393.0000-2382016"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HWID // HwId from the Ratiborus VM
|
#ifndef HWID // HwId from the Ratiborus VM
|
||||||
|
102
crypto.c
102
crypto.c
@ -17,28 +17,22 @@ const BYTE AesKeyV6[] = {
|
|||||||
0xA9, 0x4A, 0x41, 0x95, 0xE2, 0x01, 0x43, 0x2D, 0x9B, 0xCB, 0x46, 0x04, 0x05, 0xD8, 0x4A, 0x21 };
|
0xA9, 0x4A, 0x41, 0x95, 0xE2, 0x01, 0x43, 0x2D, 0x9B, 0xCB, 0x46, 0x04, 0x05, 0xD8, 0x4A, 0x21 };
|
||||||
|
|
||||||
static const BYTE SBox[] = {
|
static const BYTE SBox[] = {
|
||||||
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B,
|
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76,
|
||||||
0xFE, 0xD7, 0xAB, 0x76, 0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0,
|
0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0,
|
||||||
0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0, 0xB7, 0xFD, 0x93, 0x26,
|
0xB7, 0xFD, 0x93, 0x26, 0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0xF1, 0x71, 0xD8, 0x31, 0x15,
|
||||||
0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0xF1, 0x71, 0xD8, 0x31, 0x15,
|
0x04, 0xC7, 0x23, 0xC3, 0x18, 0x96, 0x05, 0x9A, 0x07, 0x12, 0x80, 0xE2, 0xEB, 0x27, 0xB2, 0x75,
|
||||||
0x04, 0xC7, 0x23, 0xC3, 0x18, 0x96, 0x05, 0x9A, 0x07, 0x12, 0x80, 0xE2,
|
0x09, 0x83, 0x2C, 0x1A, 0x1B, 0x6E, 0x5A, 0xA0, 0x52, 0x3B, 0xD6, 0xB3, 0x29, 0xE3, 0x2F, 0x84,
|
||||||
0xEB, 0x27, 0xB2, 0x75, 0x09, 0x83, 0x2C, 0x1A, 0x1B, 0x6E, 0x5A, 0xA0,
|
0x53, 0xD1, 0x00, 0xED, 0x20, 0xFC, 0xB1, 0x5B, 0x6A, 0xCB, 0xBE, 0x39, 0x4A, 0x4C, 0x58, 0xCF,
|
||||||
0x52, 0x3B, 0xD6, 0xB3, 0x29, 0xE3, 0x2F, 0x84, 0x53, 0xD1, 0x00, 0xED,
|
0xD0, 0xEF, 0xAA, 0xFB, 0x43, 0x4D, 0x33, 0x85, 0x45, 0xF9, 0x02, 0x7F, 0x50, 0x3C, 0x9F, 0xA8,
|
||||||
0x20, 0xFC, 0xB1, 0x5B, 0x6A, 0xCB, 0xBE, 0x39, 0x4A, 0x4C, 0x58, 0xCF,
|
0x51, 0xA3, 0x40, 0x8F, 0x92, 0x9D, 0x38, 0xF5, 0xBC, 0xB6, 0xDA, 0x21, 0x10, 0xFF, 0xF3, 0xD2,
|
||||||
0xD0, 0xEF, 0xAA, 0xFB, 0x43, 0x4D, 0x33, 0x85, 0x45, 0xF9, 0x02, 0x7F,
|
0xCD, 0x0C, 0x13, 0xEC, 0x5F, 0x97, 0x44, 0x17, 0xC4, 0xA7, 0x7E, 0x3D, 0x64, 0x5D, 0x19, 0x73,
|
||||||
0x50, 0x3C, 0x9F, 0xA8, 0x51, 0xA3, 0x40, 0x8F, 0x92, 0x9D, 0x38, 0xF5,
|
0x60, 0x81, 0x4F, 0xDC, 0x22, 0x2A, 0x90, 0x88, 0x46, 0xEE, 0xB8, 0x14, 0xDE, 0x5E, 0x0B, 0xDB,
|
||||||
0xBC, 0xB6, 0xDA, 0x21, 0x10, 0xFF, 0xF3, 0xD2, 0xCD, 0x0C, 0x13, 0xEC,
|
0xE0, 0x32, 0x3A, 0x0A, 0x49, 0x06, 0x24, 0x5C, 0xC2, 0xD3, 0xAC, 0x62, 0x91, 0x95, 0xE4, 0x79,
|
||||||
0x5F, 0x97, 0x44, 0x17, 0xC4, 0xA7, 0x7E, 0x3D, 0x64, 0x5D, 0x19, 0x73,
|
0xE7, 0xC8, 0x37, 0x6D, 0x8D, 0xD5, 0x4E, 0xA9, 0x6C, 0x56, 0xF4, 0xEA, 0x65, 0x7A, 0xAE, 0x08,
|
||||||
0x60, 0x81, 0x4F, 0xDC, 0x22, 0x2A, 0x90, 0x88, 0x46, 0xEE, 0xB8, 0x14,
|
0xBA, 0x78, 0x25, 0x2E, 0x1C, 0xA6, 0xB4, 0xC6, 0xE8, 0xDD, 0x74, 0x1F, 0x4B, 0xBD, 0x8B, 0x8A,
|
||||||
0xDE, 0x5E, 0x0B, 0xDB, 0xE0, 0x32, 0x3A, 0x0A, 0x49, 0x06, 0x24, 0x5C,
|
0x70, 0x3E, 0xB5, 0x66, 0x48, 0x03, 0xF6, 0x0E, 0x61, 0x35, 0x57, 0xB9, 0x86, 0xC1, 0x1D, 0x9E,
|
||||||
0xC2, 0xD3, 0xAC, 0x62, 0x91, 0x95, 0xE4, 0x79, 0xE7, 0xC8, 0x37, 0x6D,
|
0xE1, 0xF8, 0x98, 0x11, 0x69, 0xD9, 0x8E, 0x94, 0x9B, 0x1E, 0x87, 0xE9, 0xCE, 0x55, 0x28, 0xDF,
|
||||||
0x8D, 0xD5, 0x4E, 0xA9, 0x6C, 0x56, 0xF4, 0xEA, 0x65, 0x7A, 0xAE, 0x08,
|
0x8C, 0xA1, 0x89, 0x0D, 0xBF, 0xE6, 0x42, 0x68, 0x41, 0x99, 0x2D, 0x0F, 0xB0, 0x54, 0xBB, 0x16
|
||||||
0xBA, 0x78, 0x25, 0x2E, 0x1C, 0xA6, 0xB4, 0xC6, 0xE8, 0xDD, 0x74, 0x1F,
|
|
||||||
0x4B, 0xBD, 0x8B, 0x8A, 0x70, 0x3E, 0xB5, 0x66, 0x48, 0x03, 0xF6, 0x0E,
|
|
||||||
0x61, 0x35, 0x57, 0xB9, 0x86, 0xC1, 0x1D, 0x9E, 0xE1, 0xF8, 0x98, 0x11,
|
|
||||||
0x69, 0xD9, 0x8E, 0x94, 0x9B, 0x1E, 0x87, 0xE9, 0xCE, 0x55, 0x28, 0xDF,
|
|
||||||
0x8C, 0xA1, 0x89, 0x0D, 0xBF, 0xE6, 0x42, 0x68, 0x41, 0x99, 0x2D, 0x0F,
|
|
||||||
0xB0, 0x54, 0xBB, 0x16
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -123,7 +117,7 @@ void AesInitKey(AesCtx *Ctx, const BYTE *Key, int_fast8_t IsV6, int RijndaelKeyB
|
|||||||
|
|
||||||
memcpy(Ctx->Key, Key, RijndaelKeyBytes);
|
memcpy(Ctx->Key, Key, RijndaelKeyBytes);
|
||||||
|
|
||||||
for ( i = RijndaelKeyDwords; i < ( Ctx->rounds + 1 ) << 2; i++ )
|
for ( i = (uint_fast8_t)RijndaelKeyDwords; i < ( Ctx->rounds + 1 ) << 2; i++ )
|
||||||
{
|
{
|
||||||
temp = Ctx->Key[ i - 1 ];
|
temp = Ctx->Key[ i - 1 ];
|
||||||
|
|
||||||
@ -221,31 +215,45 @@ void AesCmacV4(BYTE *Message, size_t MessageSize, BYTE *MacOut)
|
|||||||
|
|
||||||
#if !defined(_CRYPTO_OPENSSL) || !defined(_USE_AES_FROM_OPENSSL)
|
#if !defined(_CRYPTO_OPENSSL) || !defined(_USE_AES_FROM_OPENSSL)
|
||||||
|
|
||||||
|
#ifndef SMALL_AES
|
||||||
|
|
||||||
static const BYTE SBoxR[] = {
|
static const BYTE SBoxR[] = {
|
||||||
0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E,
|
0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E, 0x81, 0xF3, 0xD7, 0xFB,
|
||||||
0x81, 0xF3, 0xD7, 0xFB, 0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87,
|
0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87, 0x34, 0x8E, 0x43, 0x44, 0xC4, 0xDE, 0xE9, 0xCB,
|
||||||
0x34, 0x8E, 0x43, 0x44, 0xC4, 0xDE, 0xE9, 0xCB, 0x54, 0x7B, 0x94, 0x32,
|
0x54, 0x7B, 0x94, 0x32, 0xA6, 0xC2, 0x23, 0x3D, 0xEE, 0x4C, 0x95, 0x0B, 0x42, 0xFA, 0xC3, 0x4E,
|
||||||
0xA6, 0xC2, 0x23, 0x3D, 0xEE, 0x4C, 0x95, 0x0B, 0x42, 0xFA, 0xC3, 0x4E,
|
0x08, 0x2E, 0xA1, 0x66, 0x28, 0xD9, 0x24, 0xB2, 0x76, 0x5B, 0xA2, 0x49, 0x6D, 0x8B, 0xD1, 0x25,
|
||||||
0x08, 0x2E, 0xA1, 0x66, 0x28, 0xD9, 0x24, 0xB2, 0x76, 0x5B, 0xA2, 0x49,
|
0x72, 0xF8, 0xF6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xD4, 0xA4, 0x5C, 0xCC, 0x5D, 0x65, 0xB6, 0x92,
|
||||||
0x6D, 0x8B, 0xD1, 0x25, 0x72, 0xF8, 0xF6, 0x64, 0x86, 0x68, 0x98, 0x16,
|
0x6C, 0x70, 0x48, 0x50, 0xFD, 0xED, 0xB9, 0xDA, 0x5E, 0x15, 0x46, 0x57, 0xA7, 0x8D, 0x9D, 0x84,
|
||||||
0xD4, 0xA4, 0x5C, 0xCC, 0x5D, 0x65, 0xB6, 0x92, 0x6C, 0x70, 0x48, 0x50,
|
0x90, 0xD8, 0xAB, 0x00, 0x8C, 0xBC, 0xD3, 0x0A, 0xF7, 0xE4, 0x58, 0x05, 0xB8, 0xB3, 0x45, 0x06,
|
||||||
0xFD, 0xED, 0xB9, 0xDA, 0x5E, 0x15, 0x46, 0x57, 0xA7, 0x8D, 0x9D, 0x84,
|
0xD0, 0x2C, 0x1E, 0x8F, 0xCA, 0x3F, 0x0F, 0x02, 0xC1, 0xAF, 0xBD, 0x03, 0x01, 0x13, 0x8A, 0x6B,
|
||||||
0x90, 0xD8, 0xAB, 0x00, 0x8C, 0xBC, 0xD3, 0x0A, 0xF7, 0xE4, 0x58, 0x05,
|
0x3A, 0x91, 0x11, 0x41, 0x4F, 0x67, 0xDC, 0xEA, 0x97, 0xF2, 0xCF, 0xCE, 0xF0, 0xB4, 0xE6, 0x73,
|
||||||
0xB8, 0xB3, 0x45, 0x06, 0xD0, 0x2C, 0x1E, 0x8F, 0xCA, 0x3F, 0x0F, 0x02,
|
0x96, 0xAC, 0x74, 0x22, 0xE7, 0xAD, 0x35, 0x85, 0xE2, 0xF9, 0x37, 0xE8, 0x1C, 0x75, 0xDF, 0x6E,
|
||||||
0xC1, 0xAF, 0xBD, 0x03, 0x01, 0x13, 0x8A, 0x6B, 0x3A, 0x91, 0x11, 0x41,
|
0x47, 0xF1, 0x1A, 0x71, 0x1D, 0x29, 0xC5, 0x89, 0x6F, 0xB7, 0x62, 0x0E, 0xAA, 0x18, 0xBE, 0x1B,
|
||||||
0x4F, 0x67, 0xDC, 0xEA, 0x97, 0xF2, 0xCF, 0xCE, 0xF0, 0xB4, 0xE6, 0x73,
|
0xFC, 0x56, 0x3E, 0x4B, 0xC6, 0xD2, 0x79, 0x20, 0x9A, 0xDB, 0xC0, 0xFE, 0x78, 0xCD, 0x5A, 0xF4,
|
||||||
0x96, 0xAC, 0x74, 0x22, 0xE7, 0xAD, 0x35, 0x85, 0xE2, 0xF9, 0x37, 0xE8,
|
0x1F, 0xDD, 0xA8, 0x33, 0x88, 0x07, 0xC7, 0x31, 0xB1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xEC, 0x5F,
|
||||||
0x1C, 0x75, 0xDF, 0x6E, 0x47, 0xF1, 0x1A, 0x71, 0x1D, 0x29, 0xC5, 0x89,
|
0x60, 0x51, 0x7F, 0xA9, 0x19, 0xB5, 0x4A, 0x0D, 0x2D, 0xE5, 0x7A, 0x9F, 0x93, 0xC9, 0x9C, 0xEF,
|
||||||
0x6F, 0xB7, 0x62, 0x0E, 0xAA, 0x18, 0xBE, 0x1B, 0xFC, 0x56, 0x3E, 0x4B,
|
0xA0, 0xE0, 0x3B, 0x4D, 0xAE, 0x2A, 0xF5, 0xB0, 0xC8, 0xEB, 0xBB, 0x3C, 0x83, 0x53, 0x99, 0x61,
|
||||||
0xC6, 0xD2, 0x79, 0x20, 0x9A, 0xDB, 0xC0, 0xFE, 0x78, 0xCD, 0x5A, 0xF4,
|
0x17, 0x2B, 0x04, 0x7E, 0xBA, 0x77, 0xD6, 0x26, 0xE1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0C, 0x7D
|
||||||
0x1F, 0xDD, 0xA8, 0x33, 0x88, 0x07, 0xC7, 0x31, 0xB1, 0x12, 0x10, 0x59,
|
|
||||||
0x27, 0x80, 0xEC, 0x5F, 0x60, 0x51, 0x7F, 0xA9, 0x19, 0xB5, 0x4A, 0x0D,
|
|
||||||
0x2D, 0xE5, 0x7A, 0x9F, 0x93, 0xC9, 0x9C, 0xEF, 0xA0, 0xE0, 0x3B, 0x4D,
|
|
||||||
0xAE, 0x2A, 0xF5, 0xB0, 0xC8, 0xEB, 0xBB, 0x3C, 0x83, 0x53, 0x99, 0x61,
|
|
||||||
0x17, 0x2B, 0x04, 0x7E, 0xBA, 0x77, 0xD6, 0x26, 0xE1, 0x69, 0x14, 0x63,
|
|
||||||
0x55, 0x21, 0x0C, 0x7D
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define GetSBoxR(x) SBoxR[x]
|
||||||
|
|
||||||
|
#else // SMALL_AES
|
||||||
|
|
||||||
|
static uint8_t SBoxR(uint8_t byte)
|
||||||
|
{
|
||||||
|
uint8_t i;
|
||||||
|
|
||||||
|
for (i = 0; TRUE; i++)
|
||||||
|
{
|
||||||
|
if (byte == SBox[i]) return i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#define GetSBoxR(x) SBoxR(x)
|
||||||
|
|
||||||
|
#endif // SMALL_AES
|
||||||
|
|
||||||
|
|
||||||
static void ShiftRowsR(BYTE *state)
|
static void ShiftRowsR(BYTE *state)
|
||||||
{
|
{
|
||||||
@ -264,7 +272,9 @@ static void SubBytesR(BYTE *block)
|
|||||||
uint_fast8_t i;
|
uint_fast8_t i;
|
||||||
|
|
||||||
for (i = 0; i < AES_BLOCK_BYTES; i++)
|
for (i = 0; i < AES_BLOCK_BYTES; i++)
|
||||||
block[i] = SBoxR[ block[i] ];
|
{
|
||||||
|
block[i] = GetSBoxR( block[i] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
4
crypto.h
4
crypto.h
@ -14,12 +14,10 @@
|
|||||||
#include "endian.h"
|
#include "endian.h"
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
//#define AES_ROUNDS (10)
|
|
||||||
#define AES_KEY_BYTES (16) // 128 Bits
|
#define AES_KEY_BYTES (16) // 128 Bits
|
||||||
#define AES_BLOCK_BYTES (16)
|
#define AES_BLOCK_BYTES (16)
|
||||||
#define AES_BLOCK_WORDS (AES_BLOCK_BYTES / sizeof(DWORD))
|
#define AES_BLOCK_WORDS (AES_BLOCK_BYTES / sizeof(DWORD))
|
||||||
#define AES_KEY_DWORDS (AES_KEY_BYTES / sizeof(DWORD))
|
#define AES_KEY_DWORDS (AES_KEY_BYTES / sizeof(DWORD))
|
||||||
//#define V4_ROUNDS (11)
|
|
||||||
#define V4_KEY_BYTES (20) // 160 Bits
|
#define V4_KEY_BYTES (20) // 160 Bits
|
||||||
|
|
||||||
#define ROR32(v, n) ( (v) << (32 - n) | (v) >> n )
|
#define ROR32(v, n) ( (v) << (32 - n) | (v) >> n )
|
||||||
@ -39,7 +37,7 @@ typedef struct {
|
|||||||
void AesInitKey(AesCtx *Ctx, const BYTE *Key, int_fast8_t IsV6, int AesKeyBytes);
|
void AesInitKey(AesCtx *Ctx, const BYTE *Key, int_fast8_t IsV6, int AesKeyBytes);
|
||||||
void AesEncryptBlock(const AesCtx *const Ctx, BYTE *block);
|
void AesEncryptBlock(const AesCtx *const Ctx, BYTE *block);
|
||||||
void AesDecryptBlock(const AesCtx *const Ctx, BYTE *block);
|
void AesDecryptBlock(const AesCtx *const Ctx, BYTE *block);
|
||||||
void AesEncryptCbc(const AesCtx *const Ctx, BYTE *iv, BYTE *data, size_t *len);
|
void AesEncryptCbc(const AesCtx *const Ctx, BYTE *restrict iv, BYTE *restrict data, size_t *restrict len);
|
||||||
void AesDecryptCbc(const AesCtx *const Ctx, BYTE *iv, BYTE *data, size_t len);
|
void AesDecryptCbc(const AesCtx *const Ctx, BYTE *iv, BYTE *data, size_t len);
|
||||||
void MixColumnsR(BYTE *restrict state);
|
void MixColumnsR(BYTE *restrict state);
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ static void Sha256Update(Sha256Ctx *Ctx, BYTE *data, size_t len)
|
|||||||
unsigned int b_len = Ctx->Len & 63,
|
unsigned int b_len = Ctx->Len & 63,
|
||||||
r_len = (b_len ^ 63) + 1;
|
r_len = (b_len ^ 63) + 1;
|
||||||
|
|
||||||
Ctx->Len += len;
|
Ctx->Len += (unsigned int)len;
|
||||||
|
|
||||||
if ( len < r_len )
|
if ( len < r_len )
|
||||||
{
|
{
|
||||||
|
@ -39,7 +39,7 @@ static int_fast8_t AcquireCryptContext()
|
|||||||
{
|
{
|
||||||
if (!hRsaAesProvider)
|
if (!hRsaAesProvider)
|
||||||
{
|
{
|
||||||
return CryptAcquireContextW
|
return (int_fast8_t)CryptAcquireContextW
|
||||||
(
|
(
|
||||||
&hRsaAesProvider, // Provider handle
|
&hRsaAesProvider, // Provider handle
|
||||||
NULL, // No key container name
|
NULL, // No key container name
|
||||||
@ -163,7 +163,7 @@ int_fast8_t Sha256Hmac(const BYTE* key, BYTE* restrict data, DWORD len, BYTE* re
|
|||||||
if (hKey) CryptDestroyKey(hKey);
|
if (hKey) CryptDestroyKey(hKey);
|
||||||
if (hHmacHash) CryptDestroyHash(hHmacHash);
|
if (hHmacHash) CryptDestroyHash(hHmacHash);
|
||||||
|
|
||||||
return success;
|
return (int_fast8_t)success;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _WIN32 || __CYGWIN__
|
#endif // _WIN32 || __CYGWIN__
|
||||||
|
@ -11,6 +11,9 @@
|
|||||||
#else // _WIN32 || __CYGWIN__
|
#else // _WIN32 || __CYGWIN__
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
#if _MSC_VER
|
||||||
|
#include "Wincrypt.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct _Sha2356HmacCtx
|
typedef struct _Sha2356HmacCtx
|
||||||
{
|
{
|
||||||
@ -18,7 +21,7 @@ typedef struct _Sha2356HmacCtx
|
|||||||
HCRYPTKEY hKey;
|
HCRYPTKEY hKey;
|
||||||
} Sha256HmacCtx;
|
} Sha256HmacCtx;
|
||||||
|
|
||||||
int_fast8_t Sha256(BYTE *data, DWORD len, BYTE *hash);
|
int_fast8_t Sha256(BYTE* restrict data, DWORD DataSize, BYTE* restrict hash);
|
||||||
int_fast8_t Sha256Hmac(const BYTE* key, BYTE* restrict data, DWORD len, BYTE* restrict hmac);
|
int_fast8_t Sha256Hmac(const BYTE* key, BYTE* restrict data, DWORD len, BYTE* restrict hmac);
|
||||||
|
|
||||||
/*int_fast8_t Sha256HmacInit(Sha256HmacCtx *Ctx, BYTE *key, uint8_t keySize);
|
/*int_fast8_t Sha256HmacInit(Sha256HmacCtx *Ctx, BYTE *key, uint8_t keySize);
|
||||||
|
@ -309,7 +309,7 @@ int getKmsServerList(kms_server_dns_ptr** serverlist, const char *const restrict
|
|||||||
|
|
||||||
memset(kms_server, 0, sizeof(kms_server_dns_t));
|
memset(kms_server, 0, sizeof(kms_server_dns_t));
|
||||||
|
|
||||||
snprintf(kms_server->serverName, sizeof(kms_server->serverName), "%s:%hu", dns_iterator->Data.SRV.pNameTarget, dns_iterator->Data.SRV.wPort);
|
vlmcsd_snprintf(kms_server->serverName, sizeof(kms_server->serverName), "%s:%hu", dns_iterator->Data.SRV.pNameTarget, dns_iterator->Data.SRV.wPort);
|
||||||
kms_server->priority = dns_iterator->Data.SRV.wPriority;
|
kms_server->priority = dns_iterator->Data.SRV.wPriority;
|
||||||
kms_server->weight = dns_iterator->Data.SRV.wWeight;
|
kms_server->weight = dns_iterator->Data.SRV.wWeight;
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ typedef enum __ns_class {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int getKmsServerList(kms_server_dns_ptr** serverlist, const char *restrict query);
|
int getKmsServerList(kms_server_dns_ptr** serverlist, const char *const restrict query);
|
||||||
void sortSrvRecords(kms_server_dns_ptr* serverlist, const int answers);
|
void sortSrvRecords(kms_server_dns_ptr* serverlist, const int answers);
|
||||||
|
|
||||||
#endif // NO_DNS
|
#endif // NO_DNS
|
||||||
|
BIN
floppy144.vfd
BIN
floppy144.vfd
Binary file not shown.
24
helpers.c
24
helpers.c
@ -2,6 +2,10 @@
|
|||||||
* Helper functions used by other modules
|
* Helper functions used by other modules
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG
|
#ifndef CONFIG
|
||||||
#define CONFIG "config.h"
|
#define CONFIG "config.h"
|
||||||
#endif // CONFIG
|
#endif // CONFIG
|
||||||
@ -10,7 +14,11 @@
|
|||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
#ifndef _MSC_VER
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
#else
|
||||||
|
#include "wingetopt.h"
|
||||||
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@ -20,6 +28,7 @@
|
|||||||
#include "shared_globals.h"
|
#include "shared_globals.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* UCS2 <-> UTF-8 functions
|
* UCS2 <-> UTF-8 functions
|
||||||
* All functions use little endian UCS2 since we only need it to communicate with Windows via RPC
|
* All functions use little endian UCS2 since we only need it to communicate with Windows via RPC
|
||||||
@ -72,7 +81,7 @@ int ucs2_to_utf8_char (const WCHAR ucs2_le, char *utf8)
|
|||||||
const WCHAR ucs2 = LE16(ucs2_le);
|
const WCHAR ucs2 = LE16(ucs2_le);
|
||||||
|
|
||||||
if (ucs2 < 0x80) {
|
if (ucs2 < 0x80) {
|
||||||
utf8[0] = ucs2;
|
utf8[0] = (char)ucs2;
|
||||||
utf8[1] = '\0';
|
utf8[1] = '\0';
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -153,7 +162,7 @@ BOOL stringToInt(const char *const szValue, const unsigned int min, const unsign
|
|||||||
char *nextchar;
|
char *nextchar;
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
long long result = strtoll(szValue, &nextchar, 10);
|
long long result = vlmcsd_strtoll(szValue, &nextchar, 10);
|
||||||
|
|
||||||
if (errno || result < (long long)min || result > (long long)max || *nextchar)
|
if (errno || result < (long long)min || result > (long long)max || *nextchar)
|
||||||
{
|
{
|
||||||
@ -177,7 +186,7 @@ int_fast8_t string2Uuid(const char *const restrict input, GUID *const restrict g
|
|||||||
{
|
{
|
||||||
if (i == 8 || i == 13 || i == 18 || i == 23) continue;
|
if (i == 8 || i == 13 || i == 18 || i == 23) continue;
|
||||||
|
|
||||||
const char c = toupper((int)input[i]);
|
const char c = (char)toupper((int)input[i]);
|
||||||
|
|
||||||
if (c < '0' || c > 'F' || (c > '9' && c < 'A')) return FALSE;
|
if (c < '0' || c > 'F' || (c > '9' && c < 'A')) return FALSE;
|
||||||
}
|
}
|
||||||
@ -211,7 +220,7 @@ void LEGUID(GUID *const restrict out, const GUID* const restrict in)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !IS_LIBRARY
|
||||||
//Checks a command line argument if it is numeric and between min and max. Returns the numeric value or exits on error
|
//Checks a command line argument if it is numeric and between min and max. Returns the numeric value or exits on error
|
||||||
__pure unsigned int getOptionArgumentInt(const char o, const unsigned int min, const unsigned int max)
|
__pure unsigned int getOptionArgumentInt(const char o, const unsigned int min, const unsigned int max)
|
||||||
{
|
{
|
||||||
@ -226,7 +235,6 @@ __pure unsigned int getOptionArgumentInt(const char o, const unsigned int min, c
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Resets getopt() to start parsing from the beginning
|
// Resets getopt() to start parsing from the beginning
|
||||||
void optReset(void)
|
void optReset(void)
|
||||||
{
|
{
|
||||||
@ -241,7 +249,7 @@ void optReset(void)
|
|||||||
optind = 1;
|
optind = 1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif // !IS_LIBRARY
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(USE_MSRPC)
|
#if defined(_WIN32) || defined(USE_MSRPC)
|
||||||
|
|
||||||
@ -295,9 +303,13 @@ void parseAddress(char *const addr, char** szHost, char** szPort)
|
|||||||
// Initialize random generator (needs to be done in each thread)
|
// Initialize random generator (needs to be done in each thread)
|
||||||
void randomNumberInit()
|
void randomNumberInit()
|
||||||
{
|
{
|
||||||
|
# if _MSC_VER
|
||||||
|
srand(GetTickCount());
|
||||||
|
# else
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
srand((unsigned int)(tv.tv_sec ^ tv.tv_usec));
|
srand((unsigned int)(tv.tv_sec ^ tv.tv_usec));
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
486
kms.c
486
kms.c
@ -3,6 +3,10 @@
|
|||||||
#endif // CONFIG
|
#endif // CONFIG
|
||||||
#include CONFIG
|
#include CONFIG
|
||||||
|
|
||||||
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -23,270 +27,280 @@
|
|||||||
#define FRIENDLY_NAME_OFFICE2010 "Office 2010"
|
#define FRIENDLY_NAME_OFFICE2010 "Office 2010"
|
||||||
#define FRIENDLY_NAME_OFFICE2013 "Office 2013+"
|
#define FRIENDLY_NAME_OFFICE2013 "Office 2013+"
|
||||||
|
|
||||||
#ifndef NO_BASIC_PRODUCT_LIST
|
#ifndef IS_LIBRARY
|
||||||
|
|
||||||
|
#ifdef NO_LOG
|
||||||
|
#define LOGTEXT(x) ""
|
||||||
|
#else //!NO_LOG
|
||||||
|
#define LOGTEXT(x) x
|
||||||
|
#endif // !NO_LOG
|
||||||
|
|
||||||
// Do not change the order of this list. Append items as necessary
|
// Do not change the order of this list. Append items as necessary
|
||||||
const KmsIdList ProductList[] = {
|
const KmsIdList ProductList[] = {
|
||||||
/* 000 */ { { 0x212a64dc, 0x43b1, 0x4d3d, { 0xa3, 0x0c, 0x2f, 0xc6, 0x9d, 0x20, 0x95, 0xc6, } } /*212a64dc-43b1-4d3d-a30c-2fc69d2095c6*/, "Windows Vista", EPID_WINDOWS, 4, 25 },
|
/* 000 */ { { 0xe85af946, 0x2e25, 0x47b7, { 0x83, 0xe1, 0xbe, 0xbc, 0xeb, 0xea, 0xc6, 0x11, } } /*e85af946-2e25-47b7-83e1-bebcebeac611*/, LOGTEXT("Office 2010"), EPID_OFFICE2010, 4, 5 },
|
||||||
/* 001 */ { { 0x7fde5219, 0xfbfa, 0x484a, { 0x82, 0xc9, 0x34, 0xd1, 0xad, 0x53, 0xe8, 0x56, } } /*7fde5219-fbfa-484a-82c9-34d1ad53e856*/, "Windows 7", EPID_WINDOWS, 4, 25 },
|
/* 001 */ { { 0xe6a6f1bf, 0x9d40, 0x40c3, { 0xaa, 0x9f, 0xc7, 0x7b, 0xa2, 0x15, 0x78, 0xc0, } } /*e6a6f1bf-9d40-40c3-aa9f-c77ba21578c0*/, LOGTEXT("Office 2013"), EPID_OFFICE2013, 5, 5 },
|
||||||
/* 002 */ { { 0x3c40b358, 0x5948, 0x45af, { 0x92, 0x3b, 0x53, 0xd2, 0x1f, 0xcc, 0x7e, 0x79, } } /*3c40b358-5948-45af-923b-53d21fcc7e79*/, "Windows 8 (Volume)", EPID_WINDOWS, 5, 25 },
|
/* 002 */ { { 0xaa4c7968, 0xb9da, 0x4680, { 0x92, 0xb6, 0xac, 0xb2, 0x5e, 0x2f, 0x86, 0x6c, } } /*aa4c7968-b9da-4680-92b6-acb25e2f866c*/, LOGTEXT("Office 2013 (Pre-Release)"), EPID_OFFICE2013, 5, 5 },
|
||||||
/* 003 */ { { 0x5f94a0bb, 0xd5a0, 0x4081, { 0xa6, 0x85, 0x58, 0x19, 0x41, 0x8b, 0x2f, 0xe0, } } /*5f94a0bb-d5a0-4081-a685-5819418b2fe0*/, "Windows Preview", EPID_WINDOWS, 5, 25 },
|
/* 003 */ { { 0x85b5f61b, 0x320b, 0x4be3, { 0x81, 0x4a, 0xb7, 0x6b, 0x2b, 0xfa, 0xfc, 0x82, } } /*85b5f61b-320b-4be3-814a-b76b2bfafc82*/, LOGTEXT("Office 2016"), EPID_OFFICE2016, 6, 5 },
|
||||||
/* 004 */ { { 0xbbb97b3b, 0x8ca4, 0x4a28, { 0x97, 0x17, 0x89, 0xfa, 0xbd, 0x42, 0xc4, 0xac, } } /*bbb97b3b-8ca4-4a28-9717-89fabd42c4ac*/, "Windows 8 (Retail)", EPID_WINDOWS, 5, 25 },
|
# ifndef NO_BASIC_PRODUCT_LIST
|
||||||
/* 005 */ { { 0xcb8fc780, 0x2c05, 0x495a, { 0x97, 0x10, 0x85, 0xaf, 0xff, 0xc9, 0x04, 0xd7, } } /*cb8fc780-2c05-495a-9710-85afffc904d7*/, "Windows 8.1 (Volume)", EPID_WINDOWS, 6, 25 },
|
/* 004 */ { { 0x212a64dc, 0x43b1, 0x4d3d, { 0xa3, 0x0c, 0x2f, 0xc6, 0x9d, 0x20, 0x95, 0xc6, } } /*212a64dc-43b1-4d3d-a30c-2fc69d2095c6*/, LOGTEXT("Windows Vista"), EPID_WINDOWS, 4, 25 },
|
||||||
/* 006 */ { { 0x6d646890, 0x3606, 0x461a, { 0x86, 0xab, 0x59, 0x8b, 0xb8, 0x4a, 0xce, 0x82, } } /*6d646890-3606-461a-86ab-598bb84ace82*/, "Windows 8.1 (Retail)", EPID_WINDOWS, 6, 25 },
|
/* 005 */ { { 0x7fde5219, 0xfbfa, 0x484a, { 0x82, 0xc9, 0x34, 0xd1, 0xad, 0x53, 0xe8, 0x56, } } /*7fde5219-fbfa-484a-82c9-34d1ad53e856*/, LOGTEXT("Windows 7"), EPID_WINDOWS, 4, 25 },
|
||||||
/* 007 */ { { 0x33e156e4, 0xb76f, 0x4a52, { 0x9f, 0x91, 0xf6, 0x41, 0xdd, 0x95, 0xac, 0x48, } } /*33e156e4-b76f-4a52-9f91-f641dd95ac48*/, "Windows Server 2008 A (Web and HPC)", EPID_WINDOWS, 4, 5 },
|
/* 006 */ { { 0x3c40b358, 0x5948, 0x45af, { 0x92, 0x3b, 0x53, 0xd2, 0x1f, 0xcc, 0x7e, 0x79, } } /*3c40b358-5948-45af-923b-53d21fcc7e79*/, LOGTEXT("Windows 8 (Volume)"), EPID_WINDOWS, 5, 25 },
|
||||||
/* 008 */ { { 0x8fe53387, 0x3087, 0x4447, { 0x89, 0x85, 0xf7, 0x51, 0x32, 0x21, 0x5a, 0xc9, } } /*8fe53387-3087-4447-8985-f75132215ac9*/, "Windows Server 2008 B (Standard and Enterprise)", EPID_WINDOWS, 4, 5 },
|
/* 007 */ { { 0x5f94a0bb, 0xd5a0, 0x4081, { 0xa6, 0x85, 0x58, 0x19, 0x41, 0x8b, 0x2f, 0xe0, } } /*5f94a0bb-d5a0-4081-a685-5819418b2fe0*/, LOGTEXT("Windows Preview"), EPID_WINDOWS, 5, 25 },
|
||||||
/* 009 */ { { 0x8a21fdf3, 0xcbc5, 0x44eb, { 0x83, 0xf3, 0xfe, 0x28, 0x4e, 0x66, 0x80, 0xa7, } } /*8a21fdf3-cbc5-44eb-83f3-fe284e6680a7*/, "Windows Server 2008 C (Datacenter)", EPID_WINDOWS, 4, 5 },
|
/* 008 */ { { 0xbbb97b3b, 0x8ca4, 0x4a28, { 0x97, 0x17, 0x89, 0xfa, 0xbd, 0x42, 0xc4, 0xac, } } /*bbb97b3b-8ca4-4a28-9717-89fabd42c4ac*/, LOGTEXT("Windows 8 (Retail)"), EPID_WINDOWS, 5, 25 },
|
||||||
/* 010 */ { { 0x0fc6ccaf, 0xff0e, 0x4fae, { 0x9d, 0x08, 0x43, 0x70, 0x78, 0x5b, 0xf7, 0xed, } } /*0fc6ccaf-ff0e-4fae-9d08-4370785bf7ed*/, "Windows Server 2008 R2 A (Web and HPC)", EPID_WINDOWS, 4, 5 },
|
/* 009 */ { { 0xcb8fc780, 0x2c05, 0x495a, { 0x97, 0x10, 0x85, 0xaf, 0xff, 0xc9, 0x04, 0xd7, } } /*cb8fc780-2c05-495a-9710-85afffc904d7*/, LOGTEXT("Windows 8.1 (Volume)"), EPID_WINDOWS, 6, 25 },
|
||||||
/* 011 */ { { 0xca87f5b6, 0xcd46, 0x40c0, { 0xb0, 0x6d, 0x8e, 0xcd, 0x57, 0xa4, 0x37, 0x3f, } } /*ca87f5b6-cd46-40c0-b06d-8ecd57a4373f*/, "Windows Server 2008 R2 B (Standard and Enterprise)", EPID_WINDOWS, 4, 5 },
|
/* 010 */ { { 0x6d646890, 0x3606, 0x461a, { 0x86, 0xab, 0x59, 0x8b, 0xb8, 0x4a, 0xce, 0x82, } } /*6d646890-3606-461a-86ab-598bb84ace82*/, LOGTEXT("Windows 8.1 (Retail)"), EPID_WINDOWS, 6, 25 },
|
||||||
/* 012 */ { { 0xb2ca2689, 0xa9a8, 0x42d7, { 0x93, 0x8d, 0xcf, 0x8e, 0x9f, 0x20, 0x19, 0x58, } } /*b2ca2689-a9a8-42d7-938d-cf8e9f201958*/, "Windows Server 2008 R2 C (Datacenter)", EPID_WINDOWS, 4, 5 },
|
/* 011 */ { { 0x33e156e4, 0xb76f, 0x4a52, { 0x9f, 0x91, 0xf6, 0x41, 0xdd, 0x95, 0xac, 0x48, } } /*33e156e4-b76f-4a52-9f91-f641dd95ac48*/, LOGTEXT("Windows Server 2008 A (Web and HPC)"), EPID_WINDOWS, 4, 5 },
|
||||||
/* 013 */ { { 0x8665cb71, 0x468c, 0x4aa3, { 0xa3, 0x37, 0xcb, 0x9b, 0xc9, 0xd5, 0xea, 0xac, } } /*8665cb71-468c-4aa3-a337-cb9bc9d5eaac*/, "Windows Server 2012", EPID_WINDOWS, 5, 5 },
|
/* 012 */ { { 0x8fe53387, 0x3087, 0x4447, { 0x89, 0x85, 0xf7, 0x51, 0x32, 0x21, 0x5a, 0xc9, } } /*8fe53387-3087-4447-8985-f75132215ac9*/, LOGTEXT("Windows Server 2008 B (Standard and Enterprise)"), EPID_WINDOWS, 4, 5 },
|
||||||
/* 014 */ { { 0x8456efd3, 0x0c04, 0x4089, { 0x87, 0x40, 0x5b, 0x72, 0x38, 0x53, 0x5a, 0x65, } } /*8456efd3-0c04-4089-8740-5b7238535a65*/, "Windows Server 2012 R2", EPID_WINDOWS, 6, 5 },
|
/* 013 */ { { 0x8a21fdf3, 0xcbc5, 0x44eb, { 0x83, 0xf3, 0xfe, 0x28, 0x4e, 0x66, 0x80, 0xa7, } } /*8a21fdf3-cbc5-44eb-83f3-fe284e6680a7*/, LOGTEXT("Windows Server 2008 C (Datacenter)"), EPID_WINDOWS, 4, 5 },
|
||||||
/* 015 */ { { 0xe85af946, 0x2e25, 0x47b7, { 0x83, 0xe1, 0xbe, 0xbc, 0xeb, 0xea, 0xc6, 0x11, } } /*e85af946-2e25-47b7-83e1-bebcebeac611*/, "Office 2010", EPID_OFFICE2010, 4, 5 },
|
/* 014 */ { { 0x0fc6ccaf, 0xff0e, 0x4fae, { 0x9d, 0x08, 0x43, 0x70, 0x78, 0x5b, 0xf7, 0xed, } } /*0fc6ccaf-ff0e-4fae-9d08-4370785bf7ed*/, LOGTEXT("Windows Server 2008 R2 A (Web and HPC)"), EPID_WINDOWS, 4, 5 },
|
||||||
/* 016 */ { { 0xe6a6f1bf, 0x9d40, 0x40c3, { 0xaa, 0x9f, 0xc7, 0x7b, 0xa2, 0x15, 0x78, 0xc0, } } /*e6a6f1bf-9d40-40c3-aa9f-c77ba21578c0*/, "Office 2013", EPID_OFFICE2013, 5, 5 },
|
/* 015 */ { { 0xca87f5b6, 0xcd46, 0x40c0, { 0xb0, 0x6d, 0x8e, 0xcd, 0x57, 0xa4, 0x37, 0x3f, } } /*ca87f5b6-cd46-40c0-b06d-8ecd57a4373f*/, LOGTEXT("Windows Server 2008 R2 B (Standard and Enterprise)"), EPID_WINDOWS, 4, 5 },
|
||||||
/* 017 */ { { 0x6d5f5270, 0x31ac, 0x433e, { 0xb9, 0x0a, 0x39, 0x89, 0x29, 0x23, 0xc6, 0x57, } } /*6d5f5270-31ac-433e-b90a-39892923c657*/, "Windows Server Preview", EPID_WINDOWS, 6, 5 },
|
/* 016 */ { { 0xb2ca2689, 0xa9a8, 0x42d7, { 0x93, 0x8d, 0xcf, 0x8e, 0x9f, 0x20, 0x19, 0x58, } } /*b2ca2689-a9a8-42d7-938d-cf8e9f201958*/, LOGTEXT("Windows Server 2008 R2 C (Datacenter)"), EPID_WINDOWS, 4, 5 },
|
||||||
/* 018 */ { { 0x85b5f61b, 0x320b, 0x4be3, { 0x81, 0x4a, 0xb7, 0x6b, 0x2b, 0xfa, 0xfc, 0x82, } } /*85b5f61b-320b-4be3-814a-b76b2bfafc82*/, "Office 2016", EPID_OFFICE2013, 6, 5 },
|
/* 017 */ { { 0x8665cb71, 0x468c, 0x4aa3, { 0xa3, 0x37, 0xcb, 0x9b, 0xc9, 0xd5, 0xea, 0xac, } } /*8665cb71-468c-4aa3-a337-cb9bc9d5eaac*/, LOGTEXT("Windows Server 2012"), EPID_WINDOWS, 5, 5 },
|
||||||
/* 019 */ { { 0x58e2134f, 0x8e11, 0x4d17, { 0x9c, 0xb2, 0x91, 0x06, 0x9c, 0x15, 0x11, 0x48, } } /*58e2134f-8e11-4d17-9cb2-91069c151148*/, "Windows 10 2015 (Volume)", EPID_WINDOWS, 6, 25 },
|
/* 018 */ { { 0x8456efd3, 0x0c04, 0x4089, { 0x87, 0x40, 0x5b, 0x72, 0x38, 0x53, 0x5a, 0x65, } } /*8456efd3-0c04-4089-8740-5b7238535a65*/, LOGTEXT("Windows Server 2012 R2"), EPID_WINDOWS, 6, 5 },
|
||||||
/* 020 */ { { 0xe1c51358, 0xfe3e, 0x4203, { 0xa4, 0xa2, 0x3b, 0x6b, 0x20, 0xc9, 0x73, 0x4e, } } /*e1c51358-fe3e-4203-a4a2-3b6b20c9734e*/, "Windows 10 (Retail)", EPID_WINDOWS, 6, 25 },
|
/* 019 */ { { 0x6d5f5270, 0x31ac, 0x433e, { 0xb9, 0x0a, 0x39, 0x89, 0x29, 0x23, 0xc6, 0x57, } } /*6d5f5270-31ac-433e-b90a-39892923c657*/, LOGTEXT("Windows Server Preview"), EPID_WINDOWS, 6, 5 },
|
||||||
/* 021 */ { { 0x6e9fc069, 0x257d, 0x4bc4, { 0xb4, 0xa7, 0x75, 0x05, 0x14, 0xd3, 0x27, 0x43, } } /*6e9fc069-257d-4bc4-b4a7-750514d32743*/, "Windows Server 2016", EPID_WINDOWS, 6, 5 },
|
/* 020 */ { { 0x58e2134f, 0x8e11, 0x4d17, { 0x9c, 0xb2, 0x91, 0x06, 0x9c, 0x15, 0x11, 0x48, } } /*58e2134f-8e11-4d17-9cb2-91069c151148*/, LOGTEXT("Windows 10 2015 (Volume)"), EPID_WINDOWS, 6, 25 },
|
||||||
/* 022 */ { { 0xaa4c7968, 0xb9da, 0x4680, { 0x92, 0xb6, 0xac, 0xb2, 0x5e, 0x2f, 0x86, 0x6c, } } /*aa4c7968-b9da-4680-92b6-acb25e2f866c*/, "Office 2013 (Pre-Release)", EPID_OFFICE2013, 5, 5 },
|
/* 021 */ { { 0xe1c51358, 0xfe3e, 0x4203, { 0xa4, 0xa2, 0x3b, 0x6b, 0x20, 0xc9, 0x73, 0x4e, } } /*e1c51358-fe3e-4203-a4a2-3b6b20c9734e*/, LOGTEXT("Windows 10 (Retail)"), EPID_WINDOWS, 6, 25 },
|
||||||
/* 023 */ { { 0x969fe3c0, 0xa3ec, 0x491a, { 0x9f, 0x25, 0x42, 0x36, 0x05, 0xde, 0xb3, 0x65, } } /*969fe3c0-a3ec-491a-9f25-423605deb365*/, "Windows 10 2016 (Volume)", EPID_WINDOWS, 6, 25 },
|
/* 022 */ { { 0x6e9fc069, 0x257d, 0x4bc4, { 0xb4, 0xa7, 0x75, 0x05, 0x14, 0xd3, 0x27, 0x43, } } /*6e9fc069-257d-4bc4-b4a7-750514d32743*/, LOGTEXT("Windows Server 2016"), EPID_WINDOWS, 6, 5 },
|
||||||
/* 024 */ { { 0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, NULL, NULL, 0, 0 }
|
/* 023 */ { { 0x969fe3c0, 0xa3ec, 0x491a, { 0x9f, 0x25, 0x42, 0x36, 0x05, 0xde, 0xb3, 0x65, } } /*969fe3c0-a3ec-491a-9f25-423605deb365*/, LOGTEXT("Windows 10 2016 (Volume)"), EPID_WINDOWS, 6, 25 },
|
||||||
|
# endif // NO_BASIC_PRODUCT_LIST
|
||||||
|
/* 024 */ { { 0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, } }, NULL, NULL, 0, 0 }
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef IS_LIBRARY
|
#ifndef NO_LOG
|
||||||
// Application ID is used by KMS server to count KeyManagementServiceCurrentCount
|
// Application ID is used by KMS server to count KeyManagementServiceCurrentCount
|
||||||
// Do not change the order of this list. Append items as necessary
|
// Do not change the order of this list. Append items as necessary
|
||||||
const KmsIdList AppList[] = {
|
const KmsIdList AppList[] = {
|
||||||
/* 000 */ { { 0x55c92734, 0xd682, 0x4d71, { 0x98, 0x3e, 0xd6, 0xec, 0x3f, 0x16, 0x05, 0x9f } } /*"55C92734-D682-4D71-983E-D6EC3F16059F"*/, FRIENDLY_NAME_WINDOWS, EPID_WINDOWS, 0, 0},
|
/* 000 */ { { 0x55c92734, 0xd682, 0x4d71, { 0x98, 0x3e, 0xd6, 0xec, 0x3f, 0x16, 0x05, 0x9f } } /*"55C92734-D682-4D71-983E-D6EC3F16059F"*/, LOGTEXT(FRIENDLY_NAME_WINDOWS), EPID_WINDOWS, 0, 0},
|
||||||
/* 001 */ { { 0x59A52881, 0xa989, 0x479d, { 0xaf, 0x46, 0xf2, 0x75, 0xc6, 0x37, 0x06, 0x63 } } /*"59A52881-A989-479D-AF46-F275C6370663"*/, FRIENDLY_NAME_OFFICE2010, EPID_OFFICE2010, 0, 0},
|
/* 001 */ { { 0x59A52881, 0xa989, 0x479d, { 0xaf, 0x46, 0xf2, 0x75, 0xc6, 0x37, 0x06, 0x63 } } /*"59A52881-A989-479D-AF46-F275C6370663"*/, LOGTEXT(FRIENDLY_NAME_OFFICE2010), EPID_OFFICE2010, 0, 0},
|
||||||
/* 002 */ { { 0x0FF1CE15, 0xA989, 0x479D, { 0xaf, 0x46, 0xf2, 0x75, 0xc6, 0x37, 0x06, 0x63 } } /*"0FF1CE15-A989-479D-AF46-F275C6370663"*/, FRIENDLY_NAME_OFFICE2013, EPID_OFFICE2013, 0, 0},
|
/* 002 */ { { 0x0FF1CE15, 0xA989, 0x479D, { 0xaf, 0x46, 0xf2, 0x75, 0xc6, 0x37, 0x06, 0x63 } } /*"0FF1CE15-A989-479D-AF46-F275C6370663"*/, LOGTEXT(FRIENDLY_NAME_OFFICE2013), EPID_OFFICE2013, 0, 0},
|
||||||
/* 003 */ { { 0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, NULL, NULL, 0, 0 }
|
/* 003 */ { { 0x00000000, 0x0000, 0x0000, { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }, NULL, NULL, 0, 0 }
|
||||||
};
|
};
|
||||||
#endif // IS_LIBRARY
|
#endif // NO_LOG
|
||||||
|
|
||||||
#ifndef NO_EXTENDED_PRODUCT_LIST
|
#ifndef NO_EXTENDED_PRODUCT_LIST
|
||||||
const KmsIdList ExtendedProductList [] = {
|
const KmsIdList ExtendedProductList [] = {
|
||||||
// Windows 10 (Retail)
|
// Windows 10 (Retail)
|
||||||
{ { 0x58e97c99, 0xf377, 0x4ef1, { 0x81, 0xd5, 0x4a, 0xd5, 0x52, 0x2b, 0x5f, 0xd8, } } /*58e97c99-f377-4ef1-81d5-4ad5522b5fd8*/, "Windows 10 Home", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_RETAIL },
|
{ { 0x58e97c99, 0xf377, 0x4ef1, { 0x81, 0xd5, 0x4a, 0xd5, 0x52, 0x2b, 0x5f, 0xd8, } } /*58e97c99-f377-4ef1-81d5-4ad5522b5fd8*/, LOGTEXT("Windows 10 Home"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_RETAIL },
|
||||||
{ { 0xa9107544, 0xf4a0, 0x4053, { 0xa9, 0x6a, 0x14, 0x79, 0xab, 0xde, 0xf9, 0x12, } } /*a9107544-f4a0-4053-a96a-1479abdef912*/, "Windows 10 Home Country Specific", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_RETAIL },
|
{ { 0xa9107544, 0xf4a0, 0x4053, { 0xa9, 0x6a, 0x14, 0x79, 0xab, 0xde, 0xf9, 0x12, } } /*a9107544-f4a0-4053-a96a-1479abdef912*/, LOGTEXT("Windows 10 Home Country Specific"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_RETAIL },
|
||||||
{ { 0x7b9e1751, 0xa8da, 0x4f75, { 0x95, 0x60, 0x5f, 0xad, 0xfe, 0x3d, 0x8e, 0x38, } } /*7b9e1751-a8da-4f75-9560-5fadfe3d8e38*/, "Windows 10 Home N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_RETAIL },
|
{ { 0x7b9e1751, 0xa8da, 0x4f75, { 0x95, 0x60, 0x5f, 0xad, 0xfe, 0x3d, 0x8e, 0x38, } } /*7b9e1751-a8da-4f75-9560-5fadfe3d8e38*/, LOGTEXT("Windows 10 Home N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_RETAIL },
|
||||||
{ { 0xcd918a57, 0xa41b, 0x4c82, { 0x8d, 0xce, 0x1a, 0x53, 0x8e, 0x22, 0x1a, 0x83, } } /*cd918a57-a41b-4c82-8dce-1a538e221a83*/, "Windows 10 Home Single Language", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_RETAIL },
|
{ { 0xcd918a57, 0xa41b, 0x4c82, { 0x8d, 0xce, 0x1a, 0x53, 0x8e, 0x22, 0x1a, 0x83, } } /*cd918a57-a41b-4c82-8dce-1a538e221a83*/, LOGTEXT("Windows 10 Home Single Language"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_RETAIL },
|
||||||
|
|
||||||
// Windows 10 2015 (Volume)
|
// Windows 10 2015 (Volume)
|
||||||
{ { 0xe0c42288, 0x980c, 0x4788, { 0xa0, 0x14, 0xc0, 0x80, 0xd2, 0xe1, 0x92, 0x6e, } } /*e0c42288-980c-4788-a014-c080d2e1926e*/, "Windows 10 Education", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0xe0c42288, 0x980c, 0x4788, { 0xa0, 0x14, 0xc0, 0x80, 0xd2, 0xe1, 0x92, 0x6e, } } /*e0c42288-980c-4788-a014-c080d2e1926e*/, LOGTEXT("Windows 10 Education"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0x3c102355, 0xd027, 0x42c6, { 0xad, 0x23, 0x2e, 0x7e, 0xf8, 0xa0, 0x25, 0x85, } } /*3c102355-d027-42c6-ad23-2e7ef8a02585*/, "Windows 10 Education N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0x3c102355, 0xd027, 0x42c6, { 0xad, 0x23, 0x2e, 0x7e, 0xf8, 0xa0, 0x25, 0x85, } } /*3c102355-d027-42c6-ad23-2e7ef8a02585*/, LOGTEXT("Windows 10 Education N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0x73111121, 0x5638, 0x40f6, { 0xbc, 0x11, 0xf1, 0xd7, 0xb0, 0xd6, 0x43, 0x00, } } /*73111121-5638-40f6-bc11-f1d7b0d64300*/, "Windows 10 Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0x73111121, 0x5638, 0x40f6, { 0xbc, 0x11, 0xf1, 0xd7, 0xb0, 0xd6, 0x43, 0x00, } } /*73111121-5638-40f6-bc11-f1d7b0d64300*/, LOGTEXT("Windows 10 Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0x7b51a46c, 0x0c04, 0x4e8f, { 0x9a, 0xf4, 0x84, 0x96, 0xcc, 0xa9, 0x0d, 0x5e, } } /*7b51a46c-0c04-4e8f-9af4-8496cca90d5e*/, "Windows 10 Enterprise 2015 LTSB", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0x7b51a46c, 0x0c04, 0x4e8f, { 0x9a, 0xf4, 0x84, 0x96, 0xcc, 0xa9, 0x0d, 0x5e, } } /*7b51a46c-0c04-4e8f-9af4-8496cca90d5e*/, LOGTEXT("Windows 10 Enterprise 2015 LTSB"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0x87b838b7, 0x41b6, 0x4590, { 0x83, 0x18, 0x57, 0x97, 0x95, 0x1d, 0x85, 0x29, } } /*87b838b7-41b6-4590-8318-5797951d8529*/, "Windows 10 Enterprise 2015 LTSB N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0x87b838b7, 0x41b6, 0x4590, { 0x83, 0x18, 0x57, 0x97, 0x95, 0x1d, 0x85, 0x29, } } /*87b838b7-41b6-4590-8318-5797951d8529*/, LOGTEXT("Windows 10 Enterprise 2015 LTSB N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0xe272e3e2, 0x732f, 0x4c65, { 0xa8, 0xf0, 0x48, 0x47, 0x47, 0xd0, 0xd9, 0x47, } } /*e272e3e2-732f-4c65-a8f0-484747d0d947*/, "Windows 10 Enterprise N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0xe272e3e2, 0x732f, 0x4c65, { 0xa8, 0xf0, 0x48, 0x47, 0x47, 0xd0, 0xd9, 0x47, } } /*e272e3e2-732f-4c65-a8f0-484747d0d947*/, LOGTEXT("Windows 10 Enterprise N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0x43f2ab05, 0x7c87, 0x4d56, { 0xb2, 0x7c, 0x44, 0xd0, 0xf9, 0xa3, 0xda, 0xbd, } } /*43f2ab05-7c87-4d56-b27c-44d0f9a3dabd*/, "Windows 10 Enterprise Preview", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0x43f2ab05, 0x7c87, 0x4d56, { 0xb2, 0x7c, 0x44, 0xd0, 0xf9, 0xa3, 0xda, 0xbd, } } /*43f2ab05-7c87-4d56-b27c-44d0f9a3dabd*/, LOGTEXT("Windows 10 Enterprise Preview"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0x2de67392, 0xb7a7, 0x462a, { 0xb1, 0xca, 0x10, 0x8d, 0xd1, 0x89, 0xf5, 0x88, } } /*2de67392-b7a7-462a-b1ca-108dd189f588*/, "Windows 10 Professional", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0x2de67392, 0xb7a7, 0x462a, { 0xb1, 0xca, 0x10, 0x8d, 0xd1, 0x89, 0xf5, 0x88, } } /*2de67392-b7a7-462a-b1ca-108dd189f588*/, LOGTEXT("Windows 10 Professional"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0x3f1afc82, 0xf8ac, 0x4f6c, { 0x80, 0x05, 0x1d, 0x23, 0x3e, 0x60, 0x6e, 0xee, } } /*3f1afc82-f8ac-4f6c-8005-1d233e606eee*/, "Windows 10 Professional Education", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0x3f1afc82, 0xf8ac, 0x4f6c, { 0x80, 0x05, 0x1d, 0x23, 0x3e, 0x60, 0x6e, 0xee, } } /*3f1afc82-f8ac-4f6c-8005-1d233e606eee*/, LOGTEXT("Windows 10 Professional Education"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0x5300b18c, 0x2e33, 0x4dc2, { 0x82, 0x91, 0x47, 0xff, 0xce, 0xc7, 0x46, 0xdd, } } /*5300b18c-2e33-4dc2-8291-47ffcec746dd*/, "Windows 10 Professional Education N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0x5300b18c, 0x2e33, 0x4dc2, { 0x82, 0x91, 0x47, 0xff, 0xce, 0xc7, 0x46, 0xdd, } } /*5300b18c-2e33-4dc2-8291-47ffcec746dd*/, LOGTEXT("Windows 10 Professional Education N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0xa80b5abf, 0x76ad, 0x428b, { 0xb0, 0x5d, 0xa4, 0x7d, 0x2d, 0xff, 0xee, 0xbf, } } /*a80b5abf-76ad-428b-b05d-a47d2dffeebf*/, "Windows 10 Professional N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0xa80b5abf, 0x76ad, 0x428b, { 0xb0, 0x5d, 0xa4, 0x7d, 0x2d, 0xff, 0xee, 0xbf, } } /*a80b5abf-76ad-428b-b05d-a47d2dffeebf*/, LOGTEXT("Windows 10 Professional N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
{ { 0xff808201, 0xfec6, 0x4fd4, { 0xae, 0x16, 0xab, 0xbd, 0xda, 0xde, 0x57, 0x06, } } /*ff808201-fec6-4fd4-ae16-abbddade5706*/, "Windows 10 Professional Preview", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
{ { 0xff808201, 0xfec6, 0x4fd4, { 0xae, 0x16, 0xab, 0xbd, 0xda, 0xde, 0x57, 0x06, } } /*ff808201-fec6-4fd4-ae16-abbddade5706*/, LOGTEXT("Windows 10 Professional Preview"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_VL },
|
||||||
|
|
||||||
// Windows 10 2016 (Volume)
|
// Windows 10 2016 (Volume)
|
||||||
{ { 0x2d5a5a60, 0x3040, 0x48bf, { 0xbe, 0xb0, 0xfc, 0xd7, 0x70, 0xc2, 0x0c, 0xe0, } } /*2d5a5a60-3040-48bf-beb0-fcd770c20ce0*/, "Windows 10 Enterprise 2016 LTSB", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_LTSB2016 },
|
{ { 0x2d5a5a60, 0x3040, 0x48bf, { 0xbe, 0xb0, 0xfc, 0xd7, 0x70, 0xc2, 0x0c, 0xe0, } } /*2d5a5a60-3040-48bf-beb0-fcd770c20ce0*/, LOGTEXT("Windows 10 Enterprise 2016 LTSB"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_LTSB2016 },
|
||||||
{ { 0x9f776d83, 0x7156, 0x45b2, { 0x8a, 0x5c, 0x35, 0x9b, 0x9c, 0x9f, 0x22, 0xa3, } } /*9f776d83-7156-45b2-8a5c-359b9c9f22a3*/, "Windows 10 Enterprise 2016 LTSB N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_LTSB2016 },
|
{ { 0x9f776d83, 0x7156, 0x45b2, { 0x8a, 0x5c, 0x35, 0x9b, 0x9c, 0x9f, 0x22, 0xa3, } } /*9f776d83-7156-45b2-8a5c-359b9c9f22a3*/, LOGTEXT("Windows 10 Enterprise 2016 LTSB N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN10_LTSB2016 },
|
||||||
|
|
||||||
|
// Windows 10 Unknown (Volume)
|
||||||
|
|
||||||
// Windows 7
|
// Windows 7
|
||||||
{ { 0xdb537896, 0x376f, 0x48ae, { 0xa4, 0x92, 0x53, 0xd0, 0x54, 0x77, 0x73, 0xd0, } } /*db537896-376f-48ae-a492-53d0547773d0*/, "Windows 7 Embedded POSReady", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0xdb537896, 0x376f, 0x48ae, { 0xa4, 0x92, 0x53, 0xd0, 0x54, 0x77, 0x73, 0xd0, } } /*db537896-376f-48ae-a492-53d0547773d0*/, LOGTEXT("Windows 7 Embedded POSReady"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
{ { 0xe1a8296a, 0xdb37, 0x44d1, { 0x8c, 0xce, 0x7b, 0xc9, 0x61, 0xd5, 0x9c, 0x54, } } /*e1a8296a-db37-44d1-8cce-7bc961d59c54*/, "Windows 7 Embedded Standard", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0xe1a8296a, 0xdb37, 0x44d1, { 0x8c, 0xce, 0x7b, 0xc9, 0x61, 0xd5, 0x9c, 0x54, } } /*e1a8296a-db37-44d1-8cce-7bc961d59c54*/, LOGTEXT("Windows 7 Embedded Standard"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
{ { 0xae2ee509, 0x1b34, 0x41c0, { 0xac, 0xb7, 0x6d, 0x46, 0x50, 0x16, 0x89, 0x15, } } /*ae2ee509-1b34-41c0-acb7-6d4650168915*/, "Windows 7 Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0xae2ee509, 0x1b34, 0x41c0, { 0xac, 0xb7, 0x6d, 0x46, 0x50, 0x16, 0x89, 0x15, } } /*ae2ee509-1b34-41c0-acb7-6d4650168915*/, LOGTEXT("Windows 7 Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
{ { 0x46bbed08, 0x9c7b, 0x48fc, { 0xa6, 0x14, 0x95, 0x25, 0x05, 0x73, 0xf4, 0xea, } } /*46bbed08-9c7b-48fc-a614-95250573f4ea*/, "Windows 7 Enterprise E", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0x46bbed08, 0x9c7b, 0x48fc, { 0xa6, 0x14, 0x95, 0x25, 0x05, 0x73, 0xf4, 0xea, } } /*46bbed08-9c7b-48fc-a614-95250573f4ea*/, LOGTEXT("Windows 7 Enterprise E"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
{ { 0x1cb6d605, 0x11b3, 0x4e14, { 0xbb, 0x30, 0xda, 0x91, 0xc8, 0xe3, 0x98, 0x3a, } } /*1cb6d605-11b3-4e14-bb30-da91c8e3983a*/, "Windows 7 Enterprise N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0x1cb6d605, 0x11b3, 0x4e14, { 0xbb, 0x30, 0xda, 0x91, 0xc8, 0xe3, 0x98, 0x3a, } } /*1cb6d605-11b3-4e14-bb30-da91c8e3983a*/, LOGTEXT("Windows 7 Enterprise N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
{ { 0xb92e9980, 0xb9d5, 0x4821, { 0x9c, 0x94, 0x14, 0x0f, 0x63, 0x2f, 0x63, 0x12, } } /*b92e9980-b9d5-4821-9c94-140f632f6312*/, "Windows 7 Professional", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0xb92e9980, 0xb9d5, 0x4821, { 0x9c, 0x94, 0x14, 0x0f, 0x63, 0x2f, 0x63, 0x12, } } /*b92e9980-b9d5-4821-9c94-140f632f6312*/, LOGTEXT("Windows 7 Professional"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
{ { 0x5a041529, 0xfef8, 0x4d07, { 0xb0, 0x6f, 0xb5, 0x9b, 0x57, 0x3b, 0x32, 0xd2, } } /*5a041529-fef8-4d07-b06f-b59b573b32d2*/, "Windows 7 Professional E", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0x5a041529, 0xfef8, 0x4d07, { 0xb0, 0x6f, 0xb5, 0x9b, 0x57, 0x3b, 0x32, 0xd2, } } /*5a041529-fef8-4d07-b06f-b59b573b32d2*/, LOGTEXT("Windows 7 Professional E"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
{ { 0x54a09a0d, 0xd57b, 0x4c10, { 0x8b, 0x69, 0xa8, 0x42, 0xd6, 0x59, 0x0a, 0xd5, } } /*54a09a0d-d57b-4c10-8b69-a842d6590ad5*/, "Windows 7 Professional N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0x54a09a0d, 0xd57b, 0x4c10, { 0x8b, 0x69, 0xa8, 0x42, 0xd6, 0x59, 0x0a, 0xd5, } } /*54a09a0d-d57b-4c10-8b69-a842d6590ad5*/, LOGTEXT("Windows 7 Professional N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
{ { 0xaa6dd3aa, 0xc2b4, 0x40e2, { 0xa5, 0x44, 0xa6, 0xbb, 0xb3, 0xf5, 0xc3, 0x95, } } /*aa6dd3aa-c2b4-40e2-a544-a6bbb3f5c395*/, "Windows 7 ThinPC", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
{ { 0xaa6dd3aa, 0xc2b4, 0x40e2, { 0xa5, 0x44, 0xa6, 0xbb, 0xb3, 0xf5, 0xc3, 0x95, } } /*aa6dd3aa-c2b4-40e2-a544-a6bbb3f5c395*/, LOGTEXT("Windows 7 ThinPC"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN7 },
|
||||||
|
|
||||||
// Windows 8 (Retail)
|
// Windows 8 (Retail)
|
||||||
{ { 0xc04ed6bf, 0x55c8, 0x4b47, { 0x9f, 0x8e, 0x5a, 0x1f, 0x31, 0xce, 0xee, 0x60, } } /*c04ed6bf-55c8-4b47-9f8e-5a1f31ceee60*/, "Windows 8 Core", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
{ { 0xc04ed6bf, 0x55c8, 0x4b47, { 0x9f, 0x8e, 0x5a, 0x1f, 0x31, 0xce, 0xee, 0x60, } } /*c04ed6bf-55c8-4b47-9f8e-5a1f31ceee60*/, LOGTEXT("Windows 8 Core"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
||||||
{ { 0x9d5584a2, 0x2d85, 0x419a, { 0x98, 0x2c, 0xa0, 0x08, 0x88, 0xbb, 0x9d, 0xdf, } } /*9d5584a2-2d85-419a-982c-a00888bb9ddf*/, "Windows 8 Core Country Specific", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
{ { 0x9d5584a2, 0x2d85, 0x419a, { 0x98, 0x2c, 0xa0, 0x08, 0x88, 0xbb, 0x9d, 0xdf, } } /*9d5584a2-2d85-419a-982c-a00888bb9ddf*/, LOGTEXT("Windows 8 Core Country Specific"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
||||||
{ { 0x197390a0, 0x65f6, 0x4a95, { 0xbd, 0xc4, 0x55, 0xd5, 0x8a, 0x3b, 0x02, 0x53, } } /*197390a0-65f6-4a95-bdc4-55d58a3b0253*/, "Windows 8 Core N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
{ { 0x197390a0, 0x65f6, 0x4a95, { 0xbd, 0xc4, 0x55, 0xd5, 0x8a, 0x3b, 0x02, 0x53, } } /*197390a0-65f6-4a95-bdc4-55d58a3b0253*/, LOGTEXT("Windows 8 Core N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
||||||
{ { 0x8860fcd4, 0xa77b, 0x4a20, { 0x90, 0x45, 0xa1, 0x50, 0xff, 0x11, 0xd6, 0x09, } } /*8860fcd4-a77b-4a20-9045-a150ff11d609*/, "Windows 8 Core Single Language", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
{ { 0x8860fcd4, 0xa77b, 0x4a20, { 0x90, 0x45, 0xa1, 0x50, 0xff, 0x11, 0xd6, 0x09, } } /*8860fcd4-a77b-4a20-9045-a150ff11d609*/, LOGTEXT("Windows 8 Core Single Language"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
||||||
{ { 0xa00018a3, 0xf20f, 0x4632, { 0xbf, 0x7c, 0x8d, 0xaa, 0x53, 0x51, 0xc9, 0x14, } } /*a00018a3-f20f-4632-bf7c-8daa5351c914*/, "Windows 8 Professional WMC", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
{ { 0xa00018a3, 0xf20f, 0x4632, { 0xbf, 0x7c, 0x8d, 0xaa, 0x53, 0x51, 0xc9, 0x14, } } /*a00018a3-f20f-4632-bf7c-8daa5351c914*/, LOGTEXT("Windows 8 Professional WMC"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_RETAIL },
|
||||||
|
|
||||||
// Windows 8 (Volume)
|
// Windows 8 (Volume)
|
||||||
{ { 0x18db1848, 0x12e0, 0x4167, { 0xb9, 0xd7, 0xda, 0x7f, 0xcd, 0xa5, 0x07, 0xdb, } } /*18db1848-12e0-4167-b9d7-da7fcda507db*/, "Windows 8 Embedded Industry Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
{ { 0x18db1848, 0x12e0, 0x4167, { 0xb9, 0xd7, 0xda, 0x7f, 0xcd, 0xa5, 0x07, 0xdb, } } /*18db1848-12e0-4167-b9d7-da7fcda507db*/, LOGTEXT("Windows 8 Embedded Industry Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
||||||
{ { 0x10018baf, 0xce21, 0x4060, { 0x80, 0xbd, 0x47, 0xfe, 0x74, 0xed, 0x4d, 0xab, } } /*10018baf-ce21-4060-80bd-47fe74ed4dab*/, "Windows 8 Embedded Industry Professional", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
{ { 0x10018baf, 0xce21, 0x4060, { 0x80, 0xbd, 0x47, 0xfe, 0x74, 0xed, 0x4d, 0xab, } } /*10018baf-ce21-4060-80bd-47fe74ed4dab*/, LOGTEXT("Windows 8 Embedded Industry Professional"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
||||||
{ { 0x458e1bec, 0x837a, 0x45f6, { 0xb9, 0xd5, 0x92, 0x5e, 0xd5, 0xd2, 0x99, 0xde, } } /*458e1bec-837a-45f6-b9d5-925ed5d299de*/, "Windows 8 Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
{ { 0x458e1bec, 0x837a, 0x45f6, { 0xb9, 0xd5, 0x92, 0x5e, 0xd5, 0xd2, 0x99, 0xde, } } /*458e1bec-837a-45f6-b9d5-925ed5d299de*/, LOGTEXT("Windows 8 Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
||||||
{ { 0xe14997e7, 0x800a, 0x4cf7, { 0xad, 0x10, 0xde, 0x4b, 0x45, 0xb5, 0x78, 0xdb, } } /*e14997e7-800a-4cf7-ad10-de4b45b578db*/, "Windows 8 Enterprise N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
{ { 0xe14997e7, 0x800a, 0x4cf7, { 0xad, 0x10, 0xde, 0x4b, 0x45, 0xb5, 0x78, 0xdb, } } /*e14997e7-800a-4cf7-ad10-de4b45b578db*/, LOGTEXT("Windows 8 Enterprise N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
||||||
{ { 0xa98bcd6d, 0x5343, 0x4603, { 0x8a, 0xfe, 0x59, 0x08, 0xe4, 0x61, 0x11, 0x12, } } /*a98bcd6d-5343-4603-8afe-5908e4611112*/, "Windows 8 Professional", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
{ { 0xa98bcd6d, 0x5343, 0x4603, { 0x8a, 0xfe, 0x59, 0x08, 0xe4, 0x61, 0x11, 0x12, } } /*a98bcd6d-5343-4603-8afe-5908e4611112*/, LOGTEXT("Windows 8 Professional"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
||||||
{ { 0xebf245c1, 0x29a8, 0x4daf, { 0x9c, 0xb1, 0x38, 0xdf, 0xc6, 0x08, 0xa8, 0xc8, } } /*ebf245c1-29a8-4daf-9cb1-38dfc608a8c8*/, "Windows 8 Professional N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
{ { 0xebf245c1, 0x29a8, 0x4daf, { 0x9c, 0xb1, 0x38, 0xdf, 0xc6, 0x08, 0xa8, 0xc8, } } /*ebf245c1-29a8-4daf-9cb1-38dfc608a8c8*/, LOGTEXT("Windows 8 Professional N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN8_VL },
|
||||||
|
|
||||||
// Windows 8.1 (Retail)
|
// Windows 8.1 (Retail)
|
||||||
{ { 0xfe1c3238, 0x432a, 0x43a1, { 0x8e, 0x25, 0x97, 0xe7, 0xd1, 0xef, 0x10, 0xf3, } } /*fe1c3238-432a-43a1-8e25-97e7d1ef10f3*/, "Windows 8.1 Core", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
{ { 0xfe1c3238, 0x432a, 0x43a1, { 0x8e, 0x25, 0x97, 0xe7, 0xd1, 0xef, 0x10, 0xf3, } } /*fe1c3238-432a-43a1-8e25-97e7d1ef10f3*/, LOGTEXT("Windows 8.1 Core"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
||||||
{ { 0xffee456a, 0xcd87, 0x4390, { 0x8e, 0x07, 0x16, 0x14, 0x6c, 0x67, 0x2f, 0xd0, } } /*ffee456a-cd87-4390-8e07-16146c672fd0*/, "Windows 8.1 Core ARM", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
{ { 0xffee456a, 0xcd87, 0x4390, { 0x8e, 0x07, 0x16, 0x14, 0x6c, 0x67, 0x2f, 0xd0, } } /*ffee456a-cd87-4390-8e07-16146c672fd0*/, LOGTEXT("Windows 8.1 Core ARM"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
||||||
{ { 0xdb78b74f, 0xef1c, 0x4892, { 0xab, 0xfe, 0x1e, 0x66, 0xb8, 0x23, 0x1d, 0xf6, } } /*db78b74f-ef1c-4892-abfe-1e66b8231df6*/, "Windows 8.1 Core Country Specific", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
{ { 0xdb78b74f, 0xef1c, 0x4892, { 0xab, 0xfe, 0x1e, 0x66, 0xb8, 0x23, 0x1d, 0xf6, } } /*db78b74f-ef1c-4892-abfe-1e66b8231df6*/, LOGTEXT("Windows 8.1 Core Country Specific"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
||||||
{ { 0x78558a64, 0xdc19, 0x43fe, { 0xa0, 0xd0, 0x80, 0x75, 0xb2, 0xa3, 0x70, 0xa3, } } /*78558a64-dc19-43fe-a0d0-8075b2a370a3*/, "Windows 8.1 Core N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
{ { 0x78558a64, 0xdc19, 0x43fe, { 0xa0, 0xd0, 0x80, 0x75, 0xb2, 0xa3, 0x70, 0xa3, } } /*78558a64-dc19-43fe-a0d0-8075b2a370a3*/, LOGTEXT("Windows 8.1 Core N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
||||||
{ { 0xc72c6a1d, 0xf252, 0x4e7e, { 0xbd, 0xd1, 0x3f, 0xca, 0x34, 0x2a, 0xcb, 0x35, } } /*c72c6a1d-f252-4e7e-bdd1-3fca342acb35*/, "Windows 8.1 Core Single Language", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
{ { 0xc72c6a1d, 0xf252, 0x4e7e, { 0xbd, 0xd1, 0x3f, 0xca, 0x34, 0x2a, 0xcb, 0x35, } } /*c72c6a1d-f252-4e7e-bdd1-3fca342acb35*/, LOGTEXT("Windows 8.1 Core Single Language"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
||||||
{ { 0xe58d87b5, 0x8126, 0x4580, { 0x80, 0xfb, 0x86, 0x1b, 0x22, 0xf7, 0x92, 0x96, } } /*e58d87b5-8126-4580-80fb-861b22f79296*/, "Windows 8.1 Professional Student", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
{ { 0xe58d87b5, 0x8126, 0x4580, { 0x80, 0xfb, 0x86, 0x1b, 0x22, 0xf7, 0x92, 0x96, } } /*e58d87b5-8126-4580-80fb-861b22f79296*/, LOGTEXT("Windows 8.1 Professional Student"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
||||||
{ { 0xcab491c7, 0xa918, 0x4f60, { 0xb5, 0x02, 0xda, 0xb7, 0x5e, 0x33, 0x4f, 0x40, } } /*cab491c7-a918-4f60-b502-dab75e334f40*/, "Windows 8.1 Professional Student N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
{ { 0xcab491c7, 0xa918, 0x4f60, { 0xb5, 0x02, 0xda, 0xb7, 0x5e, 0x33, 0x4f, 0x40, } } /*cab491c7-a918-4f60-b502-dab75e334f40*/, LOGTEXT("Windows 8.1 Professional Student N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
||||||
{ { 0x096ce63d, 0x4fac, 0x48a9, { 0x82, 0xa9, 0x61, 0xae, 0x9e, 0x80, 0x0e, 0x5f, } } /*096ce63d-4fac-48a9-82a9-61ae9e800e5f*/, "Windows 8.1 Professional WMC", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
{ { 0x096ce63d, 0x4fac, 0x48a9, { 0x82, 0xa9, 0x61, 0xae, 0x9e, 0x80, 0x0e, 0x5f, } } /*096ce63d-4fac-48a9-82a9-61ae9e800e5f*/, LOGTEXT("Windows 8.1 Professional WMC"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_RETAIL },
|
||||||
|
|
||||||
// Windows 8.1 (Volume)
|
// Windows 8.1 (Volume)
|
||||||
{ { 0xe9942b32, 0x2e55, 0x4197, { 0xb0, 0xbd, 0x5f, 0xf5, 0x8c, 0xba, 0x88, 0x60, } } /*e9942b32-2e55-4197-b0bd-5ff58cba8860*/, "Windows 8.1 Core Connected", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0xe9942b32, 0x2e55, 0x4197, { 0xb0, 0xbd, 0x5f, 0xf5, 0x8c, 0xba, 0x88, 0x60, } } /*e9942b32-2e55-4197-b0bd-5ff58cba8860*/, LOGTEXT("Windows 8.1 Core Connected"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0xba998212, 0x460a, 0x44db, { 0xbf, 0xb5, 0x71, 0xbf, 0x09, 0xd1, 0xc6, 0x8b, } } /*ba998212-460a-44db-bfb5-71bf09d1c68b*/, "Windows 8.1 Core Connected Country Specific", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0xba998212, 0x460a, 0x44db, { 0xbf, 0xb5, 0x71, 0xbf, 0x09, 0xd1, 0xc6, 0x8b, } } /*ba998212-460a-44db-bfb5-71bf09d1c68b*/, LOGTEXT("Windows 8.1 Core Connected Country Specific"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0xc6ddecd6, 0x2354, 0x4c19, { 0x90, 0x9b, 0x30, 0x6a, 0x30, 0x58, 0x48, 0x4e, } } /*c6ddecd6-2354-4c19-909b-306a3058484e*/, "Windows 8.1 Core Connected N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0xc6ddecd6, 0x2354, 0x4c19, { 0x90, 0x9b, 0x30, 0x6a, 0x30, 0x58, 0x48, 0x4e, } } /*c6ddecd6-2354-4c19-909b-306a3058484e*/, LOGTEXT("Windows 8.1 Core Connected N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0xb8f5e3a3, 0xed33, 0x4608, { 0x81, 0xe1, 0x37, 0xd6, 0xc9, 0xdc, 0xfd, 0x9c, } } /*b8f5e3a3-ed33-4608-81e1-37d6c9dcfd9c*/, "Windows 8.1 Core Connected Single Language", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0xb8f5e3a3, 0xed33, 0x4608, { 0x81, 0xe1, 0x37, 0xd6, 0xc9, 0xdc, 0xfd, 0x9c, } } /*b8f5e3a3-ed33-4608-81e1-37d6c9dcfd9c*/, LOGTEXT("Windows 8.1 Core Connected Single Language"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0xf7e88590, 0xdfc7, 0x4c78, { 0xbc, 0xcb, 0x6f, 0x38, 0x65, 0xb9, 0x9d, 0x1a, } } /*f7e88590-dfc7-4c78-bccb-6f3865b99d1a*/, "Windows 8.1 Embedded Industry Automotive", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0xf7e88590, 0xdfc7, 0x4c78, { 0xbc, 0xcb, 0x6f, 0x38, 0x65, 0xb9, 0x9d, 0x1a, } } /*f7e88590-dfc7-4c78-bccb-6f3865b99d1a*/, LOGTEXT("Windows 8.1 Embedded Industry Automotive"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0xcd4e2d9f, 0x5059, 0x4a50, { 0xa9, 0x2d, 0x05, 0xd5, 0xbb, 0x12, 0x67, 0xc7, } } /*cd4e2d9f-5059-4a50-a92d-05d5bb1267c7*/, "Windows 8.1 Embedded Industry Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0xcd4e2d9f, 0x5059, 0x4a50, { 0xa9, 0x2d, 0x05, 0xd5, 0xbb, 0x12, 0x67, 0xc7, } } /*cd4e2d9f-5059-4a50-a92d-05d5bb1267c7*/, LOGTEXT("Windows 8.1 Embedded Industry Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0x0ab82d54, 0x47f4, 0x4acb, { 0x81, 0x8c, 0xcc, 0x5b, 0xf0, 0xec, 0xb6, 0x49, } } /*0ab82d54-47f4-4acb-818c-cc5bf0ecb649*/, "Windows 8.1 Embedded Industry Professional", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0x0ab82d54, 0x47f4, 0x4acb, { 0x81, 0x8c, 0xcc, 0x5b, 0xf0, 0xec, 0xb6, 0x49, } } /*0ab82d54-47f4-4acb-818c-cc5bf0ecb649*/, LOGTEXT("Windows 8.1 Embedded Industry Professional"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0x81671aaf, 0x79d1, 0x4eb1, { 0xb0, 0x04, 0x8c, 0xbb, 0xe1, 0x73, 0xaf, 0xea, } } /*81671aaf-79d1-4eb1-b004-8cbbe173afea*/, "Windows 8.1 Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0x81671aaf, 0x79d1, 0x4eb1, { 0xb0, 0x04, 0x8c, 0xbb, 0xe1, 0x73, 0xaf, 0xea, } } /*81671aaf-79d1-4eb1-b004-8cbbe173afea*/, LOGTEXT("Windows 8.1 Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0x113e705c, 0xfa49, 0x48a4, { 0xbe, 0xea, 0x7d, 0xd8, 0x79, 0xb4, 0x6b, 0x14, } } /*113e705c-fa49-48a4-beea-7dd879b46b14*/, "Windows 8.1 Enterprise N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0x113e705c, 0xfa49, 0x48a4, { 0xbe, 0xea, 0x7d, 0xd8, 0x79, 0xb4, 0x6b, 0x14, } } /*113e705c-fa49-48a4-beea-7dd879b46b14*/, LOGTEXT("Windows 8.1 Enterprise N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0xc06b6981, 0xd7fd, 0x4a35, { 0xb7, 0xb4, 0x05, 0x47, 0x42, 0xb7, 0xaf, 0x67, } } /*c06b6981-d7fd-4a35-b7b4-054742b7af67*/, "Windows 8.1 Professional", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0xc06b6981, 0xd7fd, 0x4a35, { 0xb7, 0xb4, 0x05, 0x47, 0x42, 0xb7, 0xaf, 0x67, } } /*c06b6981-d7fd-4a35-b7b4-054742b7af67*/, LOGTEXT("Windows 8.1 Professional"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
{ { 0x7476d79f, 0x8e48, 0x49b4, { 0xab, 0x63, 0x4d, 0x0b, 0x81, 0x3a, 0x16, 0xe4, } } /*7476d79f-8e48-49b4-ab63-4d0b813a16e4*/, "Windows 8.1 Professional N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
{ { 0x7476d79f, 0x8e48, 0x49b4, { 0xab, 0x63, 0x4d, 0x0b, 0x81, 0x3a, 0x16, 0xe4, } } /*7476d79f-8e48-49b4-ab63-4d0b813a16e4*/, LOGTEXT("Windows 8.1 Professional N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN81_VL },
|
||||||
|
|
||||||
// Windows Preview
|
// Windows Preview
|
||||||
# ifdef INCLUDE_BETAS
|
# ifdef INCLUDE_BETAS
|
||||||
{ { 0xcde952c7, 0x2f96, 0x4d9d, { 0x8f, 0x2b, 0x2d, 0x34, 0x9f, 0x64, 0xfc, 0x51, } } /*cde952c7-2f96-4d9d-8f2b-2d349f64fc51*/, "Windows 10 Enterprise Preview", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
{ { 0xcde952c7, 0x2f96, 0x4d9d, { 0x8f, 0x2b, 0x2d, 0x34, 0x9f, 0x64, 0xfc, 0x51, } } /*cde952c7-2f96-4d9d-8f2b-2d349f64fc51*/, LOGTEXT("Windows 10 Enterprise Preview"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
||||||
{ { 0xa4383e6b, 0xdada, 0x423d, { 0xa4, 0x3d, 0xf2, 0x56, 0x78, 0x42, 0x96, 0x76, } } /*a4383e6b-dada-423d-a43d-f25678429676*/, "Windows 10 Professional Preview", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
{ { 0xa4383e6b, 0xdada, 0x423d, { 0xa4, 0x3d, 0xf2, 0x56, 0x78, 0x42, 0x96, 0x76, } } /*a4383e6b-dada-423d-a43d-f25678429676*/, LOGTEXT("Windows 10 Professional Preview"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
||||||
{ { 0xcf59a07b, 0x1a2a, 0x4be0, { 0xbf, 0xe0, 0x42, 0x3b, 0x58, 0x23, 0xe6, 0x63, } } /*cf59a07b-1a2a-4be0-bfe0-423b5823e663*/, "Windows 10 Professional WMC Preview", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
{ { 0xcf59a07b, 0x1a2a, 0x4be0, { 0xbf, 0xe0, 0x42, 0x3b, 0x58, 0x23, 0xe6, 0x63, } } /*cf59a07b-1a2a-4be0-bfe0-423b5823e663*/, LOGTEXT("Windows 10 Professional WMC Preview"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
||||||
{ { 0x2b9c337f, 0x7a1d, 0x4271, { 0x90, 0xa3, 0xc6, 0x85, 0x5a, 0x2b, 0x8a, 0x1c, } } /*2b9c337f-7a1d-4271-90a3-c6855a2b8a1c*/, "Windows 8.x Preview", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
{ { 0x2b9c337f, 0x7a1d, 0x4271, { 0x90, 0xa3, 0xc6, 0x85, 0x5a, 0x2b, 0x8a, 0x1c, } } /*2b9c337f-7a1d-4271-90a3-c6855a2b8a1c*/, LOGTEXT("Windows 8.x Preview"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
||||||
{ { 0x631ead72, 0xa8ab, 0x4df8, { 0xbb, 0xdf, 0x37, 0x20, 0x29, 0x98, 0x9b, 0xdd, } } /*631ead72-a8ab-4df8-bbdf-372029989bdd*/, "Windows 8.x Preview ARM", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
{ { 0x631ead72, 0xa8ab, 0x4df8, { 0xbb, 0xdf, 0x37, 0x20, 0x29, 0x98, 0x9b, 0xdd, } } /*631ead72-a8ab-4df8-bbdf-372029989bdd*/, LOGTEXT("Windows 8.x Preview ARM"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_BETA },
|
||||||
# endif // INCLUDE_BETAS
|
# endif // INCLUDE_BETAS
|
||||||
|
|
||||||
// Windows Server 2008 A (Web and HPC)
|
// Windows Server 2008 A (Web and HPC)
|
||||||
{ { 0x7afb1156, 0x2c1d, 0x40fc, { 0xb2, 0x60, 0xaa, 0xb7, 0x44, 0x2b, 0x62, 0xfe, } } /*7afb1156-2c1d-40fc-b260-aab7442b62fe*/, "Windows Server 2008 Compute Cluster", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008A },
|
{ { 0x7afb1156, 0x2c1d, 0x40fc, { 0xb2, 0x60, 0xaa, 0xb7, 0x44, 0x2b, 0x62, 0xfe, } } /*7afb1156-2c1d-40fc-b260-aab7442b62fe*/, LOGTEXT("Windows Server 2008 Compute Cluster"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008A },
|
||||||
{ { 0xddfa9f7c, 0xf09e, 0x40b9, { 0x8c, 0x1a, 0xbe, 0x87, 0x7a, 0x9a, 0x7f, 0x4b, } } /*ddfa9f7c-f09e-40b9-8c1a-be877a9a7f4b*/, "Windows Server 2008 Web", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008A },
|
{ { 0xddfa9f7c, 0xf09e, 0x40b9, { 0x8c, 0x1a, 0xbe, 0x87, 0x7a, 0x9a, 0x7f, 0x4b, } } /*ddfa9f7c-f09e-40b9-8c1a-be877a9a7f4b*/, LOGTEXT("Windows Server 2008 Web"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008A },
|
||||||
|
|
||||||
// Windows Server 2008 B (Standard and Enterprise)
|
// Windows Server 2008 B (Standard and Enterprise)
|
||||||
{ { 0xc1af4d90, 0xd1bc, 0x44ca, { 0x85, 0xd4, 0x00, 0x3b, 0xa3, 0x3d, 0xb3, 0xb9, } } /*c1af4d90-d1bc-44ca-85d4-003ba33db3b9*/, "Windows Server 2008 Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008B },
|
{ { 0xc1af4d90, 0xd1bc, 0x44ca, { 0x85, 0xd4, 0x00, 0x3b, 0xa3, 0x3d, 0xb3, 0xb9, } } /*c1af4d90-d1bc-44ca-85d4-003ba33db3b9*/, LOGTEXT("Windows Server 2008 Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008B },
|
||||||
{ { 0x8198490a, 0xadd0, 0x47b2, { 0xb3, 0xba, 0x31, 0x6b, 0x12, 0xd6, 0x47, 0xb4, } } /*8198490a-add0-47b2-b3ba-316b12d647b4*/, "Windows Server 2008 Enterprise without Hyper-V", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008B },
|
{ { 0x8198490a, 0xadd0, 0x47b2, { 0xb3, 0xba, 0x31, 0x6b, 0x12, 0xd6, 0x47, 0xb4, } } /*8198490a-add0-47b2-b3ba-316b12d647b4*/, LOGTEXT("Windows Server 2008 Enterprise without Hyper-V"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008B },
|
||||||
{ { 0xad2542d4, 0x9154, 0x4c6d, { 0x8a, 0x44, 0x30, 0xf1, 0x1e, 0xe9, 0x69, 0x89, } } /*ad2542d4-9154-4c6d-8a44-30f11ee96989*/, "Windows Server 2008 Standard", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008B },
|
{ { 0xad2542d4, 0x9154, 0x4c6d, { 0x8a, 0x44, 0x30, 0xf1, 0x1e, 0xe9, 0x69, 0x89, } } /*ad2542d4-9154-4c6d-8a44-30f11ee96989*/, LOGTEXT("Windows Server 2008 Standard"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008B },
|
||||||
{ { 0x2401e3d0, 0xc50a, 0x4b58, { 0x87, 0xb2, 0x7e, 0x79, 0x4b, 0x7d, 0x26, 0x07, } } /*2401e3d0-c50a-4b58-87b2-7e794b7d2607*/, "Windows Server 2008 Standard without Hyper-V", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008B },
|
{ { 0x2401e3d0, 0xc50a, 0x4b58, { 0x87, 0xb2, 0x7e, 0x79, 0x4b, 0x7d, 0x26, 0x07, } } /*2401e3d0-c50a-4b58-87b2-7e794b7d2607*/, LOGTEXT("Windows Server 2008 Standard without Hyper-V"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008B },
|
||||||
|
|
||||||
// Windows Server 2008 C (Datacenter)
|
// Windows Server 2008 C (Datacenter)
|
||||||
{ { 0x68b6e220, 0xcf09, 0x466b, { 0x92, 0xd3, 0x45, 0xcd, 0x96, 0x4b, 0x95, 0x09, } } /*68b6e220-cf09-466b-92d3-45cd964b9509*/, "Windows Server 2008 Datacenter", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008C },
|
{ { 0x68b6e220, 0xcf09, 0x466b, { 0x92, 0xd3, 0x45, 0xcd, 0x96, 0x4b, 0x95, 0x09, } } /*68b6e220-cf09-466b-92d3-45cd964b9509*/, LOGTEXT("Windows Server 2008 Datacenter"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008C },
|
||||||
{ { 0xfd09ef77, 0x5647, 0x4eff, { 0x80, 0x9c, 0xaf, 0x2b, 0x64, 0x65, 0x9a, 0x45, } } /*fd09ef77-5647-4eff-809c-af2b64659a45*/, "Windows Server 2008 Datacenter without Hyper-V", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008C },
|
{ { 0xfd09ef77, 0x5647, 0x4eff, { 0x80, 0x9c, 0xaf, 0x2b, 0x64, 0x65, 0x9a, 0x45, } } /*fd09ef77-5647-4eff-809c-af2b64659a45*/, LOGTEXT("Windows Server 2008 Datacenter without Hyper-V"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008C },
|
||||||
{ { 0x01ef176b, 0x3e0d, 0x422a, { 0xb4, 0xf8, 0x4e, 0xa8, 0x80, 0x03, 0x5e, 0x8f, } } /*01ef176b-3e0d-422a-b4f8-4ea880035e8f*/, "Windows Server 2008 for Itanium", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008C },
|
{ { 0x01ef176b, 0x3e0d, 0x422a, { 0xb4, 0xf8, 0x4e, 0xa8, 0x80, 0x03, 0x5e, 0x8f, } } /*01ef176b-3e0d-422a-b4f8-4ea880035e8f*/, LOGTEXT("Windows Server 2008 for Itanium"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008C },
|
||||||
|
|
||||||
// Windows Server 2008 R2 A (Web and HPC)
|
// Windows Server 2008 R2 A (Web and HPC)
|
||||||
{ { 0xf772515c, 0x0e87, 0x48d5, { 0xa6, 0x76, 0xe6, 0x96, 0x2c, 0x3e, 0x11, 0x95, } } /*f772515c-0e87-48d5-a676-e6962c3e1195*/, "Windows MultiPoint Server 2010", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2A },
|
{ { 0xf772515c, 0x0e87, 0x48d5, { 0xa6, 0x76, 0xe6, 0x96, 0x2c, 0x3e, 0x11, 0x95, } } /*f772515c-0e87-48d5-a676-e6962c3e1195*/, LOGTEXT("Windows MultiPoint Server 2010"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2A },
|
||||||
{ { 0xcda18cf3, 0xc196, 0x46ad, { 0xb2, 0x89, 0x60, 0xc0, 0x72, 0x86, 0x99, 0x94, } } /*cda18cf3-c196-46ad-b289-60c072869994*/, "Windows Server 2008 R2 HPC Edition", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2A },
|
{ { 0xcda18cf3, 0xc196, 0x46ad, { 0xb2, 0x89, 0x60, 0xc0, 0x72, 0x86, 0x99, 0x94, } } /*cda18cf3-c196-46ad-b289-60c072869994*/, LOGTEXT("Windows Server 2008 R2 HPC Edition"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2A },
|
||||||
{ { 0xa78b8bd9, 0x8017, 0x4df5, { 0xb8, 0x6a, 0x09, 0xf7, 0x56, 0xaf, 0xfa, 0x7c, } } /*a78b8bd9-8017-4df5-b86a-09f756affa7c*/, "Windows Server 2008 R2 Web", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2A },
|
{ { 0xa78b8bd9, 0x8017, 0x4df5, { 0xb8, 0x6a, 0x09, 0xf7, 0x56, 0xaf, 0xfa, 0x7c, } } /*a78b8bd9-8017-4df5-b86a-09f756affa7c*/, LOGTEXT("Windows Server 2008 R2 Web"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2A },
|
||||||
|
|
||||||
// Windows Server 2008 R2 B (Standard and Enterprise)
|
// Windows Server 2008 R2 B (Standard and Enterprise)
|
||||||
{ { 0x620e2b3d, 0x09e7, 0x42fd, { 0x80, 0x2a, 0x17, 0xa1, 0x36, 0x52, 0xfe, 0x7a, } } /*620e2b3d-09e7-42fd-802a-17a13652fe7a*/, "Windows Server 2008 R2 Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2B },
|
{ { 0x620e2b3d, 0x09e7, 0x42fd, { 0x80, 0x2a, 0x17, 0xa1, 0x36, 0x52, 0xfe, 0x7a, } } /*620e2b3d-09e7-42fd-802a-17a13652fe7a*/, LOGTEXT("Windows Server 2008 R2 Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2B },
|
||||||
{ { 0x68531fb9, 0x5511, 0x4989, { 0x97, 0xbe, 0xd1, 0x1a, 0x0f, 0x55, 0x63, 0x3f, } } /*68531fb9-5511-4989-97be-d11a0f55633f*/, "Windows Server 2008 R2 Standard", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2B },
|
{ { 0x68531fb9, 0x5511, 0x4989, { 0x97, 0xbe, 0xd1, 0x1a, 0x0f, 0x55, 0x63, 0x3f, } } /*68531fb9-5511-4989-97be-d11a0f55633f*/, LOGTEXT("Windows Server 2008 R2 Standard"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2B },
|
||||||
|
|
||||||
// Windows Server 2008 R2 C (Datacenter)
|
// Windows Server 2008 R2 C (Datacenter)
|
||||||
{ { 0x7482e61b, 0xc589, 0x4b7f, { 0x8e, 0xcc, 0x46, 0xd4, 0x55, 0xac, 0x3b, 0x87, } } /*7482e61b-c589-4b7f-8ecc-46d455ac3b87*/, "Windows Server 2008 R2 Datacenter", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2C },
|
{ { 0x7482e61b, 0xc589, 0x4b7f, { 0x8e, 0xcc, 0x46, 0xd4, 0x55, 0xac, 0x3b, 0x87, } } /*7482e61b-c589-4b7f-8ecc-46d455ac3b87*/, LOGTEXT("Windows Server 2008 R2 Datacenter"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2C },
|
||||||
{ { 0x8a26851c, 0x1c7e, 0x48d3, { 0xa6, 0x87, 0xfb, 0xca, 0x9b, 0x9a, 0xc1, 0x6b, } } /*8a26851c-1c7e-48d3-a687-fbca9b9ac16b*/, "Windows Server 2008 R2 for Itanium Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2C },
|
{ { 0x8a26851c, 0x1c7e, 0x48d3, { 0xa6, 0x87, 0xfb, 0xca, 0x9b, 0x9a, 0xc1, 0x6b, } } /*8a26851c-1c7e-48d3-a687-fbca9b9ac16b*/, LOGTEXT("Windows Server 2008 R2 for Itanium Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2008R2C },
|
||||||
|
|
||||||
// Windows Server 2012
|
// Windows Server 2012
|
||||||
{ { 0xd3643d60, 0x0c42, 0x412d, { 0xa7, 0xd6, 0x52, 0xe6, 0x63, 0x53, 0x27, 0xf6, } } /*d3643d60-0c42-412d-a7d6-52e6635327f6*/, "Windows Server 2012 Datacenter", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012 },
|
{ { 0xd3643d60, 0x0c42, 0x412d, { 0xa7, 0xd6, 0x52, 0xe6, 0x63, 0x53, 0x27, 0xf6, } } /*d3643d60-0c42-412d-a7d6-52e6635327f6*/, LOGTEXT("Windows Server 2012 Datacenter"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012 },
|
||||||
{ { 0x95fd1c83, 0x7df5, 0x494a, { 0xbe, 0x8b, 0x13, 0x00, 0xe1, 0xc9, 0xd1, 0xcd, } } /*95fd1c83-7df5-494a-be8b-1300e1c9d1cd*/, "Windows Server 2012 MultiPoint Premium", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012 },
|
{ { 0x95fd1c83, 0x7df5, 0x494a, { 0xbe, 0x8b, 0x13, 0x00, 0xe1, 0xc9, 0xd1, 0xcd, } } /*95fd1c83-7df5-494a-be8b-1300e1c9d1cd*/, LOGTEXT("Windows Server 2012 MultiPoint Premium"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012 },
|
||||||
{ { 0x7d5486c7, 0xe120, 0x4771, { 0xb7, 0xf1, 0x7b, 0x56, 0xc6, 0xd3, 0x17, 0x0c, } } /*7d5486c7-e120-4771-b7f1-7b56c6d3170c*/, "Windows Server 2012 MultiPoint Standard", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012 },
|
{ { 0x7d5486c7, 0xe120, 0x4771, { 0xb7, 0xf1, 0x7b, 0x56, 0xc6, 0xd3, 0x17, 0x0c, } } /*7d5486c7-e120-4771-b7f1-7b56c6d3170c*/, LOGTEXT("Windows Server 2012 MultiPoint Standard"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012 },
|
||||||
{ { 0xf0f5ec41, 0x0d55, 0x4732, { 0xaf, 0x02, 0x44, 0x0a, 0x44, 0xa3, 0xcf, 0x0f, } } /*f0f5ec41-0d55-4732-af02-440a44a3cf0f*/, "Windows Server 2012 Standard", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012 },
|
{ { 0xf0f5ec41, 0x0d55, 0x4732, { 0xaf, 0x02, 0x44, 0x0a, 0x44, 0xa3, 0xcf, 0x0f, } } /*f0f5ec41-0d55-4732-af02-440a44a3cf0f*/, LOGTEXT("Windows Server 2012 Standard"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012 },
|
||||||
|
|
||||||
// Windows Server 2012 R2
|
// Windows Server 2012 R2
|
||||||
{ { 0xb743a2be, 0x68d4, 0x4dd3, { 0xaf, 0x32, 0x92, 0x42, 0x5b, 0x7b, 0xb6, 0x23, } } /*b743a2be-68d4-4dd3-af32-92425b7bb623*/, "Windows Server 2012 R2 Cloud Storage", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012R2 },
|
{ { 0xb743a2be, 0x68d4, 0x4dd3, { 0xaf, 0x32, 0x92, 0x42, 0x5b, 0x7b, 0xb6, 0x23, } } /*b743a2be-68d4-4dd3-af32-92425b7bb623*/, LOGTEXT("Windows Server 2012 R2 Cloud Storage"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012R2 },
|
||||||
{ { 0x00091344, 0x1ea4, 0x4f37, { 0xb7, 0x89, 0x01, 0x75, 0x0b, 0xa6, 0x98, 0x8c, } } /*00091344-1ea4-4f37-b789-01750ba6988c*/, "Windows Server 2012 R2 Datacenter", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012R2 },
|
{ { 0x00091344, 0x1ea4, 0x4f37, { 0xb7, 0x89, 0x01, 0x75, 0x0b, 0xa6, 0x98, 0x8c, } } /*00091344-1ea4-4f37-b789-01750ba6988c*/, LOGTEXT("Windows Server 2012 R2 Datacenter"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012R2 },
|
||||||
{ { 0x21db6ba4, 0x9a7b, 0x4a14, { 0x9e, 0x29, 0x64, 0xa6, 0x0c, 0x59, 0x30, 0x1d, } } /*21db6ba4-9a7b-4a14-9e29-64a60c59301d*/, "Windows Server 2012 R2 Essentials", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012R2 },
|
{ { 0x21db6ba4, 0x9a7b, 0x4a14, { 0x9e, 0x29, 0x64, 0xa6, 0x0c, 0x59, 0x30, 0x1d, } } /*21db6ba4-9a7b-4a14-9e29-64a60c59301d*/, LOGTEXT("Windows Server 2012 R2 Essentials"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012R2 },
|
||||||
{ { 0xb3ca044e, 0xa358, 0x4d68, { 0x98, 0x83, 0xaa, 0xa2, 0x94, 0x1a, 0xca, 0x99, } } /*b3ca044e-a358-4d68-9883-aaa2941aca99*/, "Windows Server 2012 R2 Standard", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012R2 },
|
{ { 0xb3ca044e, 0xa358, 0x4d68, { 0x98, 0x83, 0xaa, 0xa2, 0x94, 0x1a, 0xca, 0x99, } } /*b3ca044e-a358-4d68-9883-aaa2941aca99*/, LOGTEXT("Windows Server 2012 R2 Standard"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2012R2 },
|
||||||
|
|
||||||
// Windows Server 2016
|
// Windows Server 2016
|
||||||
{ { 0x7b4433f4, 0xb1e7, 0x4788, { 0x89, 0x5a, 0xc4, 0x53, 0x78, 0xd3, 0x82, 0x53, } } /*7b4433f4-b1e7-4788-895a-c45378d38253*/, "Windows Server 2016 Azure Core", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
{ { 0x3dbf341b, 0x5f6c, 0x4fa7, { 0xb9, 0x36, 0x69, 0x9d, 0xce, 0x9e, 0x26, 0x3f, } } /*3dbf341b-5f6c-4fa7-b936-699dce9e263f*/, LOGTEXT("Windows Server 2016 Azure Core"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
||||||
{ { 0x3dbf341b, 0x5f6c, 0x4fa7, { 0xb9, 0x36, 0x69, 0x9d, 0xce, 0x9e, 0x26, 0x3f, } } /*3dbf341b-5f6c-4fa7-b936-699dce9e263f*/, "Windows Server 2016 Cloud Storage", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
{ { 0x7b4433f4, 0xb1e7, 0x4788, { 0x89, 0x5a, 0xc4, 0x53, 0x78, 0xd3, 0x82, 0x53, } } /*7b4433f4-b1e7-4788-895a-c45378d38253*/, LOGTEXT("Windows Server 2016 Cloud Storage"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
||||||
{ { 0x21c56779, 0xb449, 0x4d20, { 0xad, 0xfc, 0xee, 0xce, 0x0e, 0x1a, 0xd7, 0x4b, } } /*21c56779-b449-4d20-adfc-eece0e1ad74b*/, "Windows Server 2016 Datacenter", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
{ { 0x21c56779, 0xb449, 0x4d20, { 0xad, 0xfc, 0xee, 0xce, 0x0e, 0x1a, 0xd7, 0x4b, } } /*21c56779-b449-4d20-adfc-eece0e1ad74b*/, LOGTEXT("Windows Server 2016 Datacenter"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
||||||
{ { 0x2b5a1b0f, 0xa5ab, 0x4c54, { 0xac, 0x2f, 0xa6, 0xd9, 0x48, 0x24, 0xa2, 0x83, } } /*2b5a1b0f-a5ab-4c54-ac2f-a6d94824a283*/, "Windows Server 2016 Essentials", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
{ { 0x2b5a1b0f, 0xa5ab, 0x4c54, { 0xac, 0x2f, 0xa6, 0xd9, 0x48, 0x24, 0xa2, 0x83, } } /*2b5a1b0f-a5ab-4c54-ac2f-a6d94824a283*/, LOGTEXT("Windows Server 2016 Essentials"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
||||||
{ { 0x8c1c5410, 0x9f39, 0x4805, { 0x8c, 0x9d, 0x63, 0xa0, 0x77, 0x06, 0x35, 0x8f, } } /*8c1c5410-9f39-4805-8c9d-63a07706358f*/, "Windows Server 2016 Standard", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
{ { 0x8c1c5410, 0x9f39, 0x4805, { 0x8c, 0x9d, 0x63, 0xa0, 0x77, 0x06, 0x35, 0x8f, } } /*8c1c5410-9f39-4805-8c9d-63a07706358f*/, LOGTEXT("Windows Server 2016 Standard"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN2016 },
|
||||||
|
|
||||||
// Windows Server Preview
|
// Windows Server Preview
|
||||||
# ifdef INCLUDE_BETAS
|
# ifdef INCLUDE_BETAS
|
||||||
{ { 0xba947c44, 0xd19d, 0x4786, { 0xb6, 0xae, 0x22, 0x77, 0x0b, 0xc9, 0x4c, 0x54, } } /*ba947c44-d19d-4786-b6ae-22770bc94c54*/, "Windows Server 2016 Datacenter Preview", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_SRV_BETA },
|
{ { 0xba947c44, 0xd19d, 0x4786, { 0xb6, 0xae, 0x22, 0x77, 0x0b, 0xc9, 0x4c, 0x54, } } /*ba947c44-d19d-4786-b6ae-22770bc94c54*/, LOGTEXT("Windows Server 2016 Datacenter Preview"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_WIN_SRV_BETA },
|
||||||
# endif // INCLUDE_BETAS
|
# endif // INCLUDE_BETAS
|
||||||
|
|
||||||
// Windows Vista
|
// Windows Vista
|
||||||
{ { 0x4f3d1606, 0x3fea, 0x4c01, { 0xbe, 0x3c, 0x8d, 0x67, 0x1c, 0x40, 0x1e, 0x3b, } } /*4f3d1606-3fea-4c01-be3c-8d671c401e3b*/, "Windows Vista Business", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_VISTA },
|
{ { 0x4f3d1606, 0x3fea, 0x4c01, { 0xbe, 0x3c, 0x8d, 0x67, 0x1c, 0x40, 0x1e, 0x3b, } } /*4f3d1606-3fea-4c01-be3c-8d671c401e3b*/, LOGTEXT("Windows Vista Business"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_VISTA },
|
||||||
{ { 0x2c682dc2, 0x8b68, 0x4f63, { 0xa1, 0x65, 0xae, 0x29, 0x1d, 0x4c, 0xf1, 0x38, } } /*2c682dc2-8b68-4f63-a165-ae291d4cf138*/, "Windows Vista Business N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_VISTA },
|
{ { 0x2c682dc2, 0x8b68, 0x4f63, { 0xa1, 0x65, 0xae, 0x29, 0x1d, 0x4c, 0xf1, 0x38, } } /*2c682dc2-8b68-4f63-a165-ae291d4cf138*/, LOGTEXT("Windows Vista Business N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_VISTA },
|
||||||
{ { 0xcfd8ff08, 0xc0d7, 0x452b, { 0x9f, 0x60, 0xef, 0x5c, 0x70, 0xc3, 0x20, 0x94, } } /*cfd8ff08-c0d7-452b-9f60-ef5c70c32094*/, "Windows Vista Enterprise", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_VISTA },
|
{ { 0xcfd8ff08, 0xc0d7, 0x452b, { 0x9f, 0x60, 0xef, 0x5c, 0x70, 0xc3, 0x20, 0x94, } } /*cfd8ff08-c0d7-452b-9f60-ef5c70c32094*/, LOGTEXT("Windows Vista Enterprise"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_VISTA },
|
||||||
{ { 0xd4f54950, 0x26f2, 0x4fb4, { 0xba, 0x21, 0xff, 0xab, 0x16, 0xaf, 0xca, 0xde, } } /*d4f54950-26f2-4fb4-ba21-ffab16afcade*/, "Windows Vista Enterprise N", EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_VISTA },
|
{ { 0xd4f54950, 0x26f2, 0x4fb4, { 0xba, 0x21, 0xff, 0xab, 0x16, 0xaf, 0xca, 0xde, } } /*d4f54950-26f2-4fb4-ba21-ffab16afcade*/, LOGTEXT("Windows Vista Enterprise N"), EPID_WINDOWS, APP_ID_WINDOWS, KMS_ID_VISTA },
|
||||||
|
|
||||||
// Office 2010
|
// Office 2010
|
||||||
{ { 0x8ce7e872, 0x188c, 0x4b98, { 0x9d, 0x90, 0xf8, 0xf9, 0x0b, 0x7a, 0xad, 0x02, } } /*8ce7e872-188c-4b98-9d90-f8f90b7aad02*/, "Office Access 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x8ce7e872, 0x188c, 0x4b98, { 0x9d, 0x90, 0xf8, 0xf9, 0x0b, 0x7a, 0xad, 0x02, } } /*8ce7e872-188c-4b98-9d90-f8f90b7aad02*/, LOGTEXT("Office Access 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xcee5d470, 0x6e3b, 0x4fcc, { 0x8c, 0x2b, 0xd1, 0x74, 0x28, 0x56, 0x8a, 0x9f, } } /*cee5d470-6e3b-4fcc-8c2b-d17428568a9f*/, "Office Excel 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xcee5d470, 0x6e3b, 0x4fcc, { 0x8c, 0x2b, 0xd1, 0x74, 0x28, 0x56, 0x8a, 0x9f, } } /*cee5d470-6e3b-4fcc-8c2b-d17428568a9f*/, LOGTEXT("Office Excel 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x8947d0b8, 0xc33b, 0x43e1, { 0x8c, 0x56, 0x9b, 0x67, 0x4c, 0x05, 0x28, 0x32, } } /*8947d0b8-c33b-43e1-8c56-9b674c052832*/, "Office Groove 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x8947d0b8, 0xc33b, 0x43e1, { 0x8c, 0x56, 0x9b, 0x67, 0x4c, 0x05, 0x28, 0x32, } } /*8947d0b8-c33b-43e1-8c56-9b674c052832*/, LOGTEXT("Office Groove 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xca6b6639, 0x4ad6, 0x40ae, { 0xa5, 0x75, 0x14, 0xde, 0xe0, 0x7f, 0x64, 0x30, } } /*ca6b6639-4ad6-40ae-a575-14dee07f6430*/, "Office InfoPath 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xca6b6639, 0x4ad6, 0x40ae, { 0xa5, 0x75, 0x14, 0xde, 0xe0, 0x7f, 0x64, 0x30, } } /*ca6b6639-4ad6-40ae-a575-14dee07f6430*/, LOGTEXT("Office InfoPath 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x09ed9640, 0xf020, 0x400a, { 0xac, 0xd8, 0xd7, 0xd8, 0x67, 0xdf, 0xd9, 0xc2, } } /*09ed9640-f020-400a-acd8-d7d867dfd9c2*/, "Office Mondo 1 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x09ed9640, 0xf020, 0x400a, { 0xac, 0xd8, 0xd7, 0xd8, 0x67, 0xdf, 0xd9, 0xc2, } } /*09ed9640-f020-400a-acd8-d7d867dfd9c2*/, LOGTEXT("Office Mondo 1 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xef3d4e49, 0xa53d, 0x4d81, { 0xa2, 0xb1, 0x2c, 0xa6, 0xc2, 0x55, 0x6b, 0x2c, } } /*ef3d4e49-a53d-4d81-a2b1-2ca6c2556b2c*/, "Office Mondo 2 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xef3d4e49, 0xa53d, 0x4d81, { 0xa2, 0xb1, 0x2c, 0xa6, 0xc2, 0x55, 0x6b, 0x2c, } } /*ef3d4e49-a53d-4d81-a2b1-2ca6c2556b2c*/, LOGTEXT("Office Mondo 2 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xab586f5c, 0x5256, 0x4632, { 0x96, 0x2f, 0xfe, 0xfd, 0x8b, 0x49, 0xe6, 0xf4, } } /*ab586f5c-5256-4632-962f-fefd8b49e6f4*/, "Office OneNote 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xab586f5c, 0x5256, 0x4632, { 0x96, 0x2f, 0xfe, 0xfd, 0x8b, 0x49, 0xe6, 0xf4, } } /*ab586f5c-5256-4632-962f-fefd8b49e6f4*/, LOGTEXT("Office OneNote 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xecb7c192, 0x73ab, 0x4ded, { 0xac, 0xf4, 0x23, 0x99, 0xb0, 0x95, 0xd0, 0xcc, } } /*ecb7c192-73ab-4ded-acf4-2399b095d0cc*/, "Office OutLook 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xecb7c192, 0x73ab, 0x4ded, { 0xac, 0xf4, 0x23, 0x99, 0xb0, 0x95, 0xd0, 0xcc, } } /*ecb7c192-73ab-4ded-acf4-2399b095d0cc*/, LOGTEXT("Office OutLook 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x45593b1d, 0xdfb1, 0x4e91, { 0xbb, 0xfb, 0x2d, 0x5d, 0x0c, 0xe2, 0x22, 0x7a, } } /*45593b1d-dfb1-4e91-bbfb-2d5d0ce2227a*/, "Office PowerPoint 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x45593b1d, 0xdfb1, 0x4e91, { 0xbb, 0xfb, 0x2d, 0x5d, 0x0c, 0xe2, 0x22, 0x7a, } } /*45593b1d-dfb1-4e91-bbfb-2d5d0ce2227a*/, LOGTEXT("Office PowerPoint 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x6f327760, 0x8c5c, 0x417c, { 0x9b, 0x61, 0x83, 0x6a, 0x98, 0x28, 0x7e, 0x0c, } } /*6f327760-8c5c-417c-9b61-836a98287e0c*/, "Office Professional Plus 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x6f327760, 0x8c5c, 0x417c, { 0x9b, 0x61, 0x83, 0x6a, 0x98, 0x28, 0x7e, 0x0c, } } /*6f327760-8c5c-417c-9b61-836a98287e0c*/, LOGTEXT("Office Professional Plus 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xdf133ff7, 0xbf14, 0x4f95, { 0xaf, 0xe3, 0x7b, 0x48, 0xe7, 0xe3, 0x31, 0xef, } } /*df133ff7-bf14-4f95-afe3-7b48e7e331ef*/, "Office Project Pro 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xdf133ff7, 0xbf14, 0x4f95, { 0xaf, 0xe3, 0x7b, 0x48, 0xe7, 0xe3, 0x31, 0xef, } } /*df133ff7-bf14-4f95-afe3-7b48e7e331ef*/, LOGTEXT("Office Project Pro 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x5dc7bf61, 0x5ec9, 0x4996, { 0x9c, 0xcb, 0xdf, 0x80, 0x6a, 0x2d, 0x0e, 0xfe, } } /*5dc7bf61-5ec9-4996-9ccb-df806a2d0efe*/, "Office Project Standard 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x5dc7bf61, 0x5ec9, 0x4996, { 0x9c, 0xcb, 0xdf, 0x80, 0x6a, 0x2d, 0x0e, 0xfe, } } /*5dc7bf61-5ec9-4996-9ccb-df806a2d0efe*/, LOGTEXT("Office Project Standard 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xb50c4f75, 0x599b, 0x43e8, { 0x8d, 0xcd, 0x10, 0x81, 0xa7, 0x96, 0x72, 0x41, } } /*b50c4f75-599b-43e8-8dcd-1081a7967241*/, "Office Publisher 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xb50c4f75, 0x599b, 0x43e8, { 0x8d, 0xcd, 0x10, 0x81, 0xa7, 0x96, 0x72, 0x41, } } /*b50c4f75-599b-43e8-8dcd-1081a7967241*/, LOGTEXT("Office Publisher 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xea509e87, 0x07a1, 0x4a45, { 0x9e, 0xdc, 0xeb, 0xa5, 0xa3, 0x9f, 0x36, 0xaf, } } /*ea509e87-07a1-4a45-9edc-eba5a39f36af*/, "Office Small Business Basics 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xea509e87, 0x07a1, 0x4a45, { 0x9e, 0xdc, 0xeb, 0xa5, 0xa3, 0x9f, 0x36, 0xaf, } } /*ea509e87-07a1-4a45-9edc-eba5a39f36af*/, LOGTEXT("Office Small Business Basics 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x9da2a678, 0xfb6b, 0x4e67, { 0xab, 0x84, 0x60, 0xdd, 0x6a, 0x9c, 0x81, 0x9a, } } /*9da2a678-fb6b-4e67-ab84-60dd6a9c819a*/, "Office Standard 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x9da2a678, 0xfb6b, 0x4e67, { 0xab, 0x84, 0x60, 0xdd, 0x6a, 0x9c, 0x81, 0x9a, } } /*9da2a678-fb6b-4e67-ab84-60dd6a9c819a*/, LOGTEXT("Office Standard 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x92236105, 0xbb67, 0x494f, { 0x94, 0xc7, 0x7f, 0x7a, 0x60, 0x79, 0x29, 0xbd, } } /*92236105-bb67-494f-94c7-7f7a607929bd*/, "Office Visio Premium 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x92236105, 0xbb67, 0x494f, { 0x94, 0xc7, 0x7f, 0x7a, 0x60, 0x79, 0x29, 0xbd, } } /*92236105-bb67-494f-94c7-7f7a607929bd*/, LOGTEXT("Office Visio Premium 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0xe558389c, 0x83c3, 0x4b29, { 0xad, 0xfe, 0x5e, 0x4d, 0x7f, 0x46, 0xc3, 0x58, } } /*e558389c-83c3-4b29-adfe-5e4d7f46c358*/, "Office Visio Pro 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0xe558389c, 0x83c3, 0x4b29, { 0xad, 0xfe, 0x5e, 0x4d, 0x7f, 0x46, 0xc3, 0x58, } } /*e558389c-83c3-4b29-adfe-5e4d7f46c358*/, LOGTEXT("Office Visio Pro 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x9ed833ff, 0x4f92, 0x4f36, { 0xb3, 0x70, 0x86, 0x83, 0xa4, 0xf1, 0x32, 0x75, } } /*9ed833ff-4f92-4f36-b370-8683a4f13275*/, "Office Visio Standard 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x9ed833ff, 0x4f92, 0x4f36, { 0xb3, 0x70, 0x86, 0x83, 0xa4, 0xf1, 0x32, 0x75, } } /*9ed833ff-4f92-4f36-b370-8683a4f13275*/, LOGTEXT("Office Visio Standard 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
{ { 0x2d0882e7, 0xa4e7, 0x423b, { 0x8c, 0xcc, 0x70, 0xd9, 0x1e, 0x01, 0x58, 0xb1, } } /*2d0882e7-a4e7-423b-8ccc-70d91e0158b1*/, "Office Word 2010", EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
{ { 0x2d0882e7, 0xa4e7, 0x423b, { 0x8c, 0xcc, 0x70, 0xd9, 0x1e, 0x01, 0x58, 0xb1, } } /*2d0882e7-a4e7-423b-8ccc-70d91e0158b1*/, LOGTEXT("Office Word 2010"), EPID_OFFICE2010, APP_ID_OFFICE2010, KMS_ID_OFFICE2010 },
|
||||||
|
|
||||||
// Office 2013
|
// Office 2013
|
||||||
{ { 0x6ee7622c, 0x18d8, 0x4005, { 0x9f, 0xb7, 0x92, 0xdb, 0x64, 0x4a, 0x27, 0x9b, } } /*6ee7622c-18d8-4005-9fb7-92db644a279b*/, "Office Access 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0x6ee7622c, 0x18d8, 0x4005, { 0x9f, 0xb7, 0x92, 0xdb, 0x64, 0x4a, 0x27, 0x9b, } } /*6ee7622c-18d8-4005-9fb7-92db644a279b*/, LOGTEXT("Office Access 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xf7461d52, 0x7c2b, 0x43b2, { 0x87, 0x44, 0xea, 0x95, 0x8e, 0x0b, 0xd0, 0x9a, } } /*f7461d52-7c2b-43b2-8744-ea958e0bd09a*/, "Office Excel 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xf7461d52, 0x7c2b, 0x43b2, { 0x87, 0x44, 0xea, 0x95, 0x8e, 0x0b, 0xd0, 0x9a, } } /*f7461d52-7c2b-43b2-8744-ea958e0bd09a*/, LOGTEXT("Office Excel 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xa30b8040, 0xd68a, 0x423f, { 0xb0, 0xb5, 0x9c, 0xe2, 0x92, 0xea, 0x5a, 0x8f, } } /*a30b8040-d68a-423f-b0b5-9ce292ea5a8f*/, "Office InfoPath 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xa30b8040, 0xd68a, 0x423f, { 0xb0, 0xb5, 0x9c, 0xe2, 0x92, 0xea, 0x5a, 0x8f, } } /*a30b8040-d68a-423f-b0b5-9ce292ea5a8f*/, LOGTEXT("Office InfoPath 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0x1b9f11e3, 0xc85c, 0x4e1b, { 0xbb, 0x29, 0x87, 0x9a, 0xd2, 0xc9, 0x09, 0xe3, } } /*1b9f11e3-c85c-4e1b-bb29-879ad2c909e3*/, "Office Lync 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0x1b9f11e3, 0xc85c, 0x4e1b, { 0xbb, 0x29, 0x87, 0x9a, 0xd2, 0xc9, 0x09, 0xe3, } } /*1b9f11e3-c85c-4e1b-bb29-879ad2c909e3*/, LOGTEXT("Office Lync 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xdc981c6b, 0xfc8e, 0x420f, { 0xaa, 0x43, 0xf8, 0xf3, 0x3e, 0x5c, 0x09, 0x23, } } /*dc981c6b-fc8e-420f-aa43-f8f33e5c0923*/, "Office Mondo 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xdc981c6b, 0xfc8e, 0x420f, { 0xaa, 0x43, 0xf8, 0xf3, 0x3e, 0x5c, 0x09, 0x23, } } /*dc981c6b-fc8e-420f-aa43-f8f33e5c0923*/, LOGTEXT("Office Mondo 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xefe1f3e6, 0xaea2, 0x4144, { 0xa2, 0x08, 0x32, 0xaa, 0x87, 0x2b, 0x65, 0x45, } } /*efe1f3e6-aea2-4144-a208-32aa872b6545*/, "Office OneNote 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xefe1f3e6, 0xaea2, 0x4144, { 0xa2, 0x08, 0x32, 0xaa, 0x87, 0x2b, 0x65, 0x45, } } /*efe1f3e6-aea2-4144-a208-32aa872b6545*/, LOGTEXT("Office OneNote 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0x771c3afa, 0x50c5, 0x443f, { 0xb1, 0x51, 0xff, 0x25, 0x46, 0xd8, 0x63, 0xa0, } } /*771c3afa-50c5-443f-b151-ff2546d863a0*/, "Office OutLook 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0x771c3afa, 0x50c5, 0x443f, { 0xb1, 0x51, 0xff, 0x25, 0x46, 0xd8, 0x63, 0xa0, } } /*771c3afa-50c5-443f-b151-ff2546d863a0*/, LOGTEXT("Office OutLook 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0x8c762649, 0x97d1, 0x4953, { 0xad, 0x27, 0xb7, 0xe2, 0xc2, 0x5b, 0x97, 0x2e, } } /*8c762649-97d1-4953-ad27-b7e2c25b972e*/, "Office PowerPoint 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0x8c762649, 0x97d1, 0x4953, { 0xad, 0x27, 0xb7, 0xe2, 0xc2, 0x5b, 0x97, 0x2e, } } /*8c762649-97d1-4953-ad27-b7e2c25b972e*/, LOGTEXT("Office PowerPoint 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xb322da9c, 0xa2e2, 0x4058, { 0x9e, 0x4e, 0xf5, 0x9a, 0x69, 0x70, 0xbd, 0x69, } } /*b322da9c-a2e2-4058-9e4e-f59a6970bd69*/, "Office Professional Plus 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xb322da9c, 0xa2e2, 0x4058, { 0x9e, 0x4e, 0xf5, 0x9a, 0x69, 0x70, 0xbd, 0x69, } } /*b322da9c-a2e2-4058-9e4e-f59a6970bd69*/, LOGTEXT("Office Professional Plus 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0x4a5d124a, 0xe620, 0x44ba, { 0xb6, 0xff, 0x65, 0x89, 0x61, 0xb3, 0x3b, 0x9a, } } /*4a5d124a-e620-44ba-b6ff-658961b33b9a*/, "Office Project Pro 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0x4a5d124a, 0xe620, 0x44ba, { 0xb6, 0xff, 0x65, 0x89, 0x61, 0xb3, 0x3b, 0x9a, } } /*4a5d124a-e620-44ba-b6ff-658961b33b9a*/, LOGTEXT("Office Project Pro 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0x427a28d1, 0xd17c, 0x4abf, { 0xb7, 0x17, 0x32, 0xc7, 0x80, 0xba, 0x6f, 0x07, } } /*427a28d1-d17c-4abf-b717-32c780ba6f07*/, "Office Project Standard 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0x427a28d1, 0xd17c, 0x4abf, { 0xb7, 0x17, 0x32, 0xc7, 0x80, 0xba, 0x6f, 0x07, } } /*427a28d1-d17c-4abf-b717-32c780ba6f07*/, LOGTEXT("Office Project Standard 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0x00c79ff1, 0x6850, 0x443d, { 0xbf, 0x61, 0x71, 0xcd, 0xe0, 0xde, 0x30, 0x5f, } } /*00c79ff1-6850-443d-bf61-71cde0de305f*/, "Office Publisher 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0x00c79ff1, 0x6850, 0x443d, { 0xbf, 0x61, 0x71, 0xcd, 0xe0, 0xde, 0x30, 0x5f, } } /*00c79ff1-6850-443d-bf61-71cde0de305f*/, LOGTEXT("Office Publisher 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xb13afb38, 0xcd79, 0x4ae5, { 0x9f, 0x7f, 0xee, 0xd0, 0x58, 0xd7, 0x50, 0xca, } } /*b13afb38-cd79-4ae5-9f7f-eed058d750ca*/, "Office Standard 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xb13afb38, 0xcd79, 0x4ae5, { 0x9f, 0x7f, 0xee, 0xd0, 0x58, 0xd7, 0x50, 0xca, } } /*b13afb38-cd79-4ae5-9f7f-eed058d750ca*/, LOGTEXT("Office Standard 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xe13ac10e, 0x75d0, 0x4aff, { 0xa0, 0xcd, 0x76, 0x49, 0x82, 0xcf, 0x54, 0x1c, } } /*e13ac10e-75d0-4aff-a0cd-764982cf541c*/, "Office Visio Pro 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xe13ac10e, 0x75d0, 0x4aff, { 0xa0, 0xcd, 0x76, 0x49, 0x82, 0xcf, 0x54, 0x1c, } } /*e13ac10e-75d0-4aff-a0cd-764982cf541c*/, LOGTEXT("Office Visio Pro 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xac4efaf0, 0xf81f, 0x4f61, { 0xbd, 0xf7, 0xea, 0x32, 0xb0, 0x2a, 0xb1, 0x17, } } /*ac4efaf0-f81f-4f61-bdf7-ea32b02ab117*/, "Office Visio Standard 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xac4efaf0, 0xf81f, 0x4f61, { 0xbd, 0xf7, 0xea, 0x32, 0xb0, 0x2a, 0xb1, 0x17, } } /*ac4efaf0-f81f-4f61-bdf7-ea32b02ab117*/, LOGTEXT("Office Visio Standard 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
{ { 0xd9f5b1c6, 0x5386, 0x495a, { 0x88, 0xf9, 0x9a, 0xd6, 0xb4, 0x1a, 0xc9, 0xb3, } } /*d9f5b1c6-5386-495a-88f9-9ad6b41ac9b3*/, "Office Word 2013", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
{ { 0xd9f5b1c6, 0x5386, 0x495a, { 0x88, 0xf9, 0x9a, 0xd6, 0xb4, 0x1a, 0xc9, 0xb3, } } /*d9f5b1c6-5386-495a-88f9-9ad6b41ac9b3*/, LOGTEXT("Office Word 2013"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013 },
|
||||||
|
|
||||||
// Office 2013 (Pre-Release)
|
// Office 2013 (Pre-Release)
|
||||||
# ifdef INCLUDE_BETAS
|
# ifdef INCLUDE_BETAS
|
||||||
{ { 0x44b538e2, 0xfb34, 0x4732, { 0x81, 0xe4, 0x64, 0x4c, 0x17, 0xd2, 0xe7, 0x46, } } /*44b538e2-fb34-4732-81e4-644c17d2e746*/, "Office Access 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x44b538e2, 0xfb34, 0x4732, { 0x81, 0xe4, 0x64, 0x4c, 0x17, 0xd2, 0xe7, 0x46, } } /*44b538e2-fb34-4732-81e4-644c17d2e746*/, LOGTEXT("Office Access 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x9373bfa0, 0x97b3, 0x4587, { 0xab, 0x73, 0x30, 0x93, 0x44, 0x61, 0xd5, 0x5c, } } /*9373bfa0-97b3-4587-ab73-30934461d55c*/, "Office Excel 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x9373bfa0, 0x97b3, 0x4587, { 0xab, 0x73, 0x30, 0x93, 0x44, 0x61, 0xd5, 0x5c, } } /*9373bfa0-97b3-4587-ab73-30934461d55c*/, LOGTEXT("Office Excel 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0xaa286eb4, 0x556f, 0x4eeb, { 0x96, 0x7c, 0xc1, 0xb7, 0x71, 0xb7, 0x67, 0x3e, } } /*aa286eb4-556f-4eeb-967c-c1b771b7673e*/, "Office Groove 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0xaa286eb4, 0x556f, 0x4eeb, { 0x96, 0x7c, 0xc1, 0xb7, 0x71, 0xb7, 0x67, 0x3e, } } /*aa286eb4-556f-4eeb-967c-c1b771b7673e*/, LOGTEXT("Office Groove 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x7ccc8256, 0xfbaa, 0x49c6, { 0xb2, 0xa9, 0xf5, 0xaf, 0xb4, 0x25, 0x7c, 0xd2, } } /*7ccc8256-fbaa-49c6-b2a9-f5afb4257cd2*/, "Office InfoPath 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x7ccc8256, 0xfbaa, 0x49c6, { 0xb2, 0xa9, 0xf5, 0xaf, 0xb4, 0x25, 0x7c, 0xd2, } } /*7ccc8256-fbaa-49c6-b2a9-f5afb4257cd2*/, LOGTEXT("Office InfoPath 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0xc53dfe17, 0xcc00, 0x4967, { 0xb1, 0x88, 0xa0, 0x88, 0xa9, 0x65, 0x49, 0x4d, } } /*c53dfe17-cc00-4967-b188-a088a965494d*/, "Office Lync 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0xc53dfe17, 0xcc00, 0x4967, { 0xb1, 0x88, 0xa0, 0x88, 0xa9, 0x65, 0x49, 0x4d, } } /*c53dfe17-cc00-4967-b188-a088a965494d*/, LOGTEXT("Office Lync 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x2816a87d, 0xe1ed, 0x4097, { 0xb3, 0x11, 0xe2, 0x34, 0x1c, 0x57, 0xb1, 0x79, } } /*2816a87d-e1ed-4097-b311-e2341c57b179*/, "Office Mondo 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x2816a87d, 0xe1ed, 0x4097, { 0xb3, 0x11, 0xe2, 0x34, 0x1c, 0x57, 0xb1, 0x79, } } /*2816a87d-e1ed-4097-b311-e2341c57b179*/, LOGTEXT("Office Mondo 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x67c0f908, 0x184f, 0x4f64, { 0x82, 0x50, 0x12, 0xdb, 0x79, 0x7a, 0xb3, 0xc3, } } /*67c0f908-184f-4f64-8250-12db797ab3c3*/, "Office OneNote 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x67c0f908, 0x184f, 0x4f64, { 0x82, 0x50, 0x12, 0xdb, 0x79, 0x7a, 0xb3, 0xc3, } } /*67c0f908-184f-4f64-8250-12db797ab3c3*/, LOGTEXT("Office OneNote 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x7bce4e7a, 0xdd80, 0x4682, { 0x98, 0xfa, 0xf9, 0x93, 0x72, 0x58, 0x03, 0xd2, } } /*7bce4e7a-dd80-4682-98fa-f993725803d2*/, "Office Outlook 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x7bce4e7a, 0xdd80, 0x4682, { 0x98, 0xfa, 0xf9, 0x93, 0x72, 0x58, 0x03, 0xd2, } } /*7bce4e7a-dd80-4682-98fa-f993725803d2*/, LOGTEXT("Office Outlook 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x1ec10c0a, 0x54f6, 0x453e, { 0xb8, 0x5a, 0x6f, 0xa1, 0xbb, 0xfe, 0xa9, 0xb7, } } /*1ec10c0a-54f6-453e-b85a-6fa1bbfea9b7*/, "Office PowerPoint 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x1ec10c0a, 0x54f6, 0x453e, { 0xb8, 0x5a, 0x6f, 0xa1, 0xbb, 0xfe, 0xa9, 0xb7, } } /*1ec10c0a-54f6-453e-b85a-6fa1bbfea9b7*/, LOGTEXT("Office PowerPoint 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x87d2b5bf, 0xd47b, 0x41fb, { 0xaf, 0x62, 0x71, 0xc3, 0x82, 0xf5, 0xcc, 0x85, } } /*87d2b5bf-d47b-41fb-af62-71c382f5cc85*/, "Office Professional Plus 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x87d2b5bf, 0xd47b, 0x41fb, { 0xaf, 0x62, 0x71, 0xc3, 0x82, 0xf5, 0xcc, 0x85, } } /*87d2b5bf-d47b-41fb-af62-71c382f5cc85*/, LOGTEXT("Office Professional Plus 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x3cfe50a9, 0x0e03, 0x4b29, { 0x97, 0x54, 0x9f, 0x19, 0x3f, 0x07, 0xb7, 0x1f, } } /*3cfe50a9-0e03-4b29-9754-9f193f07b71f*/, "Office Project Pro 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x3cfe50a9, 0x0e03, 0x4b29, { 0x97, 0x54, 0x9f, 0x19, 0x3f, 0x07, 0xb7, 0x1f, } } /*3cfe50a9-0e03-4b29-9754-9f193f07b71f*/, LOGTEXT("Office Project Pro 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x39e49e57, 0xae68, 0x4ee3, { 0xb0, 0x98, 0x26, 0x48, 0x0d, 0xf3, 0xda, 0x96, } } /*39e49e57-ae68-4ee3-b098-26480df3da96*/, "Office Project Standard 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x39e49e57, 0xae68, 0x4ee3, { 0xb0, 0x98, 0x26, 0x48, 0x0d, 0xf3, 0xda, 0x96, } } /*39e49e57-ae68-4ee3-b098-26480df3da96*/, LOGTEXT("Office Project Standard 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x15aa2117, 0x8f79, 0x49a8, { 0x83, 0x17, 0x75, 0x30, 0x26, 0xd6, 0xa0, 0x54, } } /*15aa2117-8f79-49a8-8317-753026d6a054*/, "Office Publisher 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x15aa2117, 0x8f79, 0x49a8, { 0x83, 0x17, 0x75, 0x30, 0x26, 0xd6, 0xa0, 0x54, } } /*15aa2117-8f79-49a8-8317-753026d6a054*/, LOGTEXT("Office Publisher 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0xcfbfd60e, 0x0b5f, 0x427d, { 0x91, 0x7c, 0xa4, 0xdf, 0x42, 0xa8, 0x0e, 0x44, } } /*cfbfd60e-0b5f-427d-917c-a4df42a80e44*/, "Office Visio Pro 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0xcfbfd60e, 0x0b5f, 0x427d, { 0x91, 0x7c, 0xa4, 0xdf, 0x42, 0xa8, 0x0e, 0x44, } } /*cfbfd60e-0b5f-427d-917c-a4df42a80e44*/, LOGTEXT("Office Visio Pro 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0x7012cc81, 0x8887, 0x42e9, { 0xb1, 0x7d, 0x4e, 0x5e, 0x42, 0x76, 0x0f, 0x0d, } } /*7012cc81-8887-42e9-b17d-4e5e42760f0d*/, "Office Visio Standard 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0x7012cc81, 0x8887, 0x42e9, { 0xb1, 0x7d, 0x4e, 0x5e, 0x42, 0x76, 0x0f, 0x0d, } } /*7012cc81-8887-42e9-b17d-4e5e42760f0d*/, LOGTEXT("Office Visio Standard 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
{ { 0xde9c7eb6, 0x5a85, 0x420d, { 0x97, 0x03, 0xff, 0xf1, 0x1b, 0xdd, 0x4d, 0x43, } } /*de9c7eb6-5a85-420d-9703-fff11bdd4d43*/, "Office Word 2013 (Pre-Release)", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
{ { 0xde9c7eb6, 0x5a85, 0x420d, { 0x97, 0x03, 0xff, 0xf1, 0x1b, 0xdd, 0x4d, 0x43, } } /*de9c7eb6-5a85-420d-9703-fff11bdd4d43*/, LOGTEXT("Office Word 2013 (Pre-Release)"), EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2013_BETA },
|
||||||
# endif // INCLUDE_BETAS
|
# endif // INCLUDE_BETAS
|
||||||
|
|
||||||
// Office 2016
|
// Office 2016
|
||||||
{ { 0x67c0fc0c, 0xdeba, 0x401b, { 0xbf, 0x8b, 0x9c, 0x8a, 0xd8, 0x39, 0x58, 0x04, } } /*67c0fc0c-deba-401b-bf8b-9c8ad8395804*/, "Office Access 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0x67c0fc0c, 0xdeba, 0x401b, { 0xbf, 0x8b, 0x9c, 0x8a, 0xd8, 0x39, 0x58, 0x04, } } /*67c0fc0c-deba-401b-bf8b-9c8ad8395804*/, LOGTEXT("Office Access 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xc3e65d36, 0x141f, 0x4d2f, { 0xa3, 0x03, 0xa8, 0x42, 0xee, 0x75, 0x6a, 0x29, } } /*c3e65d36-141f-4d2f-a303-a842ee756a29*/, "Office Excel 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xc3e65d36, 0x141f, 0x4d2f, { 0xa3, 0x03, 0xa8, 0x42, 0xee, 0x75, 0x6a, 0x29, } } /*c3e65d36-141f-4d2f-a303-a842ee756a29*/, LOGTEXT("Office Excel 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0x9caabccb, 0x61b1, 0x4b4b, { 0x8b, 0xec, 0xd1, 0x0a, 0x3c, 0x3a, 0xc2, 0xce, } } /*9caabccb-61b1-4b4b-8bec-d10a3c3ac2ce*/, "Office Mondo 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0x9caabccb, 0x61b1, 0x4b4b, { 0x8b, 0xec, 0xd1, 0x0a, 0x3c, 0x3a, 0xc2, 0xce, } } /*9caabccb-61b1-4b4b-8bec-d10a3c3ac2ce*/, LOGTEXT("Office Mondo 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xe914ea6e, 0xa5fa, 0x4439, { 0xa3, 0x94, 0xa9, 0xbb, 0x32, 0x93, 0xca, 0x09, } } /*e914ea6e-a5fa-4439-a394-a9bb3293ca09*/, "Office Mondo R 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xe914ea6e, 0xa5fa, 0x4439, { 0xa3, 0x94, 0xa9, 0xbb, 0x32, 0x93, 0xca, 0x09, } } /*e914ea6e-a5fa-4439-a394-a9bb3293ca09*/, LOGTEXT("Office Mondo R 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xd8cace59, 0x33d2, 0x4ac7, { 0x9b, 0x1b, 0x9b, 0x72, 0x33, 0x9c, 0x51, 0xc8, } } /*d8cace59-33d2-4ac7-9b1b-9b72339c51c8*/, "Office OneNote 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xd8cace59, 0x33d2, 0x4ac7, { 0x9b, 0x1b, 0x9b, 0x72, 0x33, 0x9c, 0x51, 0xc8, } } /*d8cace59-33d2-4ac7-9b1b-9b72339c51c8*/, LOGTEXT("Office OneNote 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xec9d9265, 0x9d1e, 0x4ed0, { 0x83, 0x8a, 0xcd, 0xc2, 0x0f, 0x25, 0x51, 0xa1, } } /*ec9d9265-9d1e-4ed0-838a-cdc20f2551a1*/, "Office Outlook 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xec9d9265, 0x9d1e, 0x4ed0, { 0x83, 0x8a, 0xcd, 0xc2, 0x0f, 0x25, 0x51, 0xa1, } } /*ec9d9265-9d1e-4ed0-838a-cdc20f2551a1*/, LOGTEXT("Office Outlook 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xd70b1bba, 0xb893, 0x4544, { 0x96, 0xe2, 0xb7, 0xa3, 0x18, 0x09, 0x1c, 0x33, } } /*d70b1bba-b893-4544-96e2-b7a318091c33*/, "Office Powerpoint 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xd70b1bba, 0xb893, 0x4544, { 0x96, 0xe2, 0xb7, 0xa3, 0x18, 0x09, 0x1c, 0x33, } } /*d70b1bba-b893-4544-96e2-b7a318091c33*/, LOGTEXT("Office Powerpoint 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xd450596f, 0x894d, 0x49e0, { 0x96, 0x6a, 0xfd, 0x39, 0xed, 0x4c, 0x4c, 0x64, } } /*d450596f-894d-49e0-966a-fd39ed4c4c64*/, "Office Professional Plus 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xd450596f, 0x894d, 0x49e0, { 0x96, 0x6a, 0xfd, 0x39, 0xed, 0x4c, 0x4c, 0x64, } } /*d450596f-894d-49e0-966a-fd39ed4c4c64*/, LOGTEXT("Office Professional Plus 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0x4f414197, 0x0fc2, 0x4c01, { 0xb6, 0x8a, 0x86, 0xcb, 0xb9, 0xac, 0x25, 0x4c, } } /*4f414197-0fc2-4c01-b68a-86cbb9ac254c*/, "Office Project Pro 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0x4f414197, 0x0fc2, 0x4c01, { 0xb6, 0x8a, 0x86, 0xcb, 0xb9, 0xac, 0x25, 0x4c, } } /*4f414197-0fc2-4c01-b68a-86cbb9ac254c*/, LOGTEXT("Office Project Pro 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0x829b8110, 0x0e6f, 0x4349, { 0xbc, 0xa4, 0x42, 0x80, 0x35, 0x77, 0x78, 0x8d, } } /*829b8110-0e6f-4349-bca4-42803577788d*/, "Office Project Pro 2016 XC2R", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0x829b8110, 0x0e6f, 0x4349, { 0xbc, 0xa4, 0x42, 0x80, 0x35, 0x77, 0x78, 0x8d, } } /*829b8110-0e6f-4349-bca4-42803577788d*/, LOGTEXT("Office Project Pro 2016 XC2R"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xda7ddabc, 0x3fbe, 0x4447, { 0x9e, 0x01, 0x6a, 0xb7, 0x44, 0x0b, 0x4c, 0xd4, } } /*da7ddabc-3fbe-4447-9e01-6ab7440b4cd4*/, "Office Project Standard 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xda7ddabc, 0x3fbe, 0x4447, { 0x9e, 0x01, 0x6a, 0xb7, 0x44, 0x0b, 0x4c, 0xd4, } } /*da7ddabc-3fbe-4447-9e01-6ab7440b4cd4*/, LOGTEXT("Office Project Standard 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xcbbaca45, 0x556a, 0x4416, { 0xad, 0x03, 0xbd, 0xa5, 0x98, 0xea, 0xa7, 0xc8, } } /*cbbaca45-556a-4416-ad03-bda598eaa7c8*/, "Office Project Standard 2016 XC2R", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xcbbaca45, 0x556a, 0x4416, { 0xad, 0x03, 0xbd, 0xa5, 0x98, 0xea, 0xa7, 0xc8, } } /*cbbaca45-556a-4416-ad03-bda598eaa7c8*/, LOGTEXT("Office Project Standard 2016 XC2R"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0x041a06cb, 0xc5b8, 0x4772, { 0x80, 0x9f, 0x41, 0x6d, 0x03, 0xd1, 0x66, 0x54, } } /*041a06cb-c5b8-4772-809f-416d03d16654*/, "Office Publisher 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0x041a06cb, 0xc5b8, 0x4772, { 0x80, 0x9f, 0x41, 0x6d, 0x03, 0xd1, 0x66, 0x54, } } /*041a06cb-c5b8-4772-809f-416d03d16654*/, LOGTEXT("Office Publisher 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0x83e04ee1, 0xfa8d, 0x436d, { 0x89, 0x94, 0xd3, 0x1a, 0x86, 0x2c, 0xab, 0x77, } } /*83e04ee1-fa8d-436d-8994-d31a862cab77*/, "Office Skype for Business 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0x83e04ee1, 0xfa8d, 0x436d, { 0x89, 0x94, 0xd3, 0x1a, 0x86, 0x2c, 0xab, 0x77, } } /*83e04ee1-fa8d-436d-8994-d31a862cab77*/, LOGTEXT("Office Skype for Business 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xdedfa23d, 0x6ed1, 0x45a6, { 0x85, 0xdc, 0x63, 0xca, 0xe0, 0x54, 0x6d, 0xe6, } } /*dedfa23d-6ed1-45a6-85dc-63cae0546de6*/, "Office Standard 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xdedfa23d, 0x6ed1, 0x45a6, { 0x85, 0xdc, 0x63, 0xca, 0xe0, 0x54, 0x6d, 0xe6, } } /*dedfa23d-6ed1-45a6-85dc-63cae0546de6*/, LOGTEXT("Office Standard 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0x6bf301c1, 0xb94a, 0x43e9, { 0xba, 0x31, 0xd4, 0x94, 0x59, 0x8c, 0x47, 0xfb, } } /*6bf301c1-b94a-43e9-ba31-d494598c47fb*/, "Office Visio Pro 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0x6bf301c1, 0xb94a, 0x43e9, { 0xba, 0x31, 0xd4, 0x94, 0x59, 0x8c, 0x47, 0xfb, } } /*6bf301c1-b94a-43e9-ba31-d494598c47fb*/, LOGTEXT("Office Visio Pro 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xb234abe3, 0x0857, 0x4f9c, { 0xb0, 0x5a, 0x4d, 0xc3, 0x14, 0xf8, 0x55, 0x57, } } /*b234abe3-0857-4f9c-b05a-4dc314f85557*/, "Office Visio Pro 2016 XC2R", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xb234abe3, 0x0857, 0x4f9c, { 0xb0, 0x5a, 0x4d, 0xc3, 0x14, 0xf8, 0x55, 0x57, } } /*b234abe3-0857-4f9c-b05a-4dc314f85557*/, LOGTEXT("Office Visio Pro 2016 XC2R"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xaa2a7821, 0x1827, 0x4c2c, { 0x8f, 0x1d, 0x45, 0x13, 0xa3, 0x4d, 0xda, 0x97, } } /*aa2a7821-1827-4c2c-8f1d-4513a34dda97*/, "Office Visio Standard 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xaa2a7821, 0x1827, 0x4c2c, { 0x8f, 0x1d, 0x45, 0x13, 0xa3, 0x4d, 0xda, 0x97, } } /*aa2a7821-1827-4c2c-8f1d-4513a34dda97*/, LOGTEXT("Office Visio Standard 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0x361fe620, 0x64f4, 0x41b5, { 0xba, 0x77, 0x84, 0xf8, 0xe0, 0x79, 0xb1, 0xf7, } } /*361fe620-64f4-41b5-ba77-84f8e079b1f7*/, "Office Visio Standard 2016 XC2R", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0x361fe620, 0x64f4, 0x41b5, { 0xba, 0x77, 0x84, 0xf8, 0xe0, 0x79, 0xb1, 0xf7, } } /*361fe620-64f4-41b5-ba77-84f8e079b1f7*/, LOGTEXT("Office Visio Standard 2016 XC2R"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
{ { 0xbb11badf, 0xd8aa, 0x470e, { 0x93, 0x11, 0x20, 0xea, 0xf8, 0x0f, 0xe5, 0xcc, } } /*bb11badf-d8aa-470e-9311-20eaf80fe5cc*/, "Office Word 2016", EPID_OFFICE2013, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
{ { 0xbb11badf, 0xd8aa, 0x470e, { 0x93, 0x11, 0x20, 0xea, 0xf8, 0x0f, 0xe5, 0xcc, } } /*bb11badf-d8aa-470e-9311-20eaf80fe5cc*/, LOGTEXT("Office Word 2016"), EPID_OFFICE2016, APP_ID_OFFICE2013, KMS_ID_OFFICE2016 },
|
||||||
|
|
||||||
// End marker (necessity should be removed when time permits)
|
// End marker (necessity should be removed when time permits)
|
||||||
|
|
||||||
@ -300,12 +314,16 @@ __pure ProdListIndex_t getExtendedProductListSize(void)
|
|||||||
return _countof(ExtendedProductList) - 1;
|
return _countof(ExtendedProductList) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_LOG
|
||||||
__pure ProdListIndex_t getAppListSize(void)
|
__pure ProdListIndex_t getAppListSize(void)
|
||||||
{
|
{
|
||||||
return _countof(AppList);
|
return _countof(AppList);
|
||||||
}
|
}
|
||||||
|
#endif // NO_LOG
|
||||||
|
|
||||||
|
#endif // NO_EXTENDED_PRODUCT_LIST
|
||||||
|
#endif // IS_LIBRARY
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef NO_RANDOM_EPID
|
#ifndef NO_RANDOM_EPID
|
||||||
// HostType and OSBuild
|
// HostType and OSBuild
|
||||||
@ -322,6 +340,7 @@ static const struct KMSHostOS { uint16_t Type; uint16_t Build; } HostOS[] =
|
|||||||
static const struct PKEYCONFIG { uint16_t GroupID; uint32_t RangeMin; uint32_t RangeMax; } pkeyconfig[] = {
|
static const struct PKEYCONFIG { uint16_t GroupID; uint32_t RangeMin; uint32_t RangeMax; } pkeyconfig[] = {
|
||||||
{ 206, 471000000, 530999999 }, // Windows Server 2016
|
{ 206, 471000000, 530999999 }, // Windows Server 2016
|
||||||
{ 96, 199000000, 217999999 }, // Office2010
|
{ 96, 199000000, 217999999 }, // Office2010
|
||||||
|
{ 206, 234000000, 255999999 }, // Office2013
|
||||||
{ 206, 437000000, 458999999 }, // Office2016
|
{ 206, 437000000, 458999999 }, // Office2016
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -457,7 +476,7 @@ static void generateRandomPid(int index, char *const szPid, int serverType, int1
|
|||||||
strcpy(szPid, itoc(numberBuffer, HostOS[serverType].Type, 5));
|
strcpy(szPid, itoc(numberBuffer, HostOS[serverType].Type, 5));
|
||||||
strcat(szPid, "-");
|
strcat(szPid, "-");
|
||||||
|
|
||||||
if (index > 2) index=0;
|
if (index > 3) index=0;
|
||||||
|
|
||||||
strcat(szPid, itoc(numberBuffer, pkeyconfig[index].GroupID, 5));
|
strcat(szPid, itoc(numberBuffer, pkeyconfig[index].GroupID, 5));
|
||||||
strcat(szPid, "-");
|
strcat(szPid, "-");
|
||||||
@ -475,11 +494,15 @@ static void generateRandomPid(int index, char *const szPid, int serverType, int1
|
|||||||
strcat(szPid, itoc(numberBuffer, HostOS[serverType].Build, 0));
|
strcat(szPid, itoc(numberBuffer, HostOS[serverType].Build, 0));
|
||||||
strcat(szPid, ".0000-");
|
strcat(szPid, ".0000-");
|
||||||
|
|
||||||
time_t minTime = serverType==4 ? ((time_t)1470175200) /* Release Date Win 2016 */ : ((time_t)1382029200); // Release Date Win 2012R2
|
# define minTime ((time_t)1470175200) /* Release Date Win 2016 */
|
||||||
|
|
||||||
time_t maxTime, kmsTime;
|
time_t maxTime, kmsTime;
|
||||||
time(&maxTime);
|
time(&maxTime);
|
||||||
|
|
||||||
|
# ifndef BUILD_TIME
|
||||||
|
# define BUILD_TIME 1474752907
|
||||||
|
# endif
|
||||||
|
|
||||||
if (maxTime < (time_t)BUILD_TIME) // Just in case the system time is < 10/17/2013 1:00 pm
|
if (maxTime < (time_t)BUILD_TIME) // Just in case the system time is < 10/17/2013 1:00 pm
|
||||||
maxTime = (time_t)BUILD_TIME;
|
maxTime = (time_t)BUILD_TIME;
|
||||||
|
|
||||||
@ -504,7 +527,7 @@ void randomPidInit()
|
|||||||
int serverType = getRandomServerType();
|
int serverType = getRandomServerType();
|
||||||
int16_t lang = Lcid ? Lcid : LcidList[rand() % _countof(LcidList)];
|
int16_t lang = Lcid ? Lcid : LcidList[rand() % _countof(LcidList)];
|
||||||
|
|
||||||
for (i = 0; i < _countof(AppList) - 1; i++)
|
for (i = 0; i < MAX_KMSAPPS; i++)
|
||||||
{
|
{
|
||||||
if (KmsResponseParameters[i].Epid) continue;
|
if (KmsResponseParameters[i].Epid) continue;
|
||||||
|
|
||||||
@ -539,10 +562,8 @@ static void logRequest(const REQUEST *const baseRequest)
|
|||||||
if (++index >= (int)_countof(ExtendedProductList))
|
if (++index >= (int)_countof(ExtendedProductList))
|
||||||
#endif // NO_EXTENDED_PRODUCT_LIST
|
#endif // NO_EXTENDED_PRODUCT_LIST
|
||||||
{
|
{
|
||||||
#ifndef NO_BASIC_PRODUCT_LIST
|
|
||||||
productName = getProductNameLE(&baseRequest->KMSID, ProductList, &index);
|
productName = getProductNameLE(&baseRequest->KMSID, ProductList, &index);
|
||||||
if (++index >= (int)_countof(ProductList))
|
if (++index >= (int)_countof(ProductList))
|
||||||
#endif // NO_BASIC_PRODUCT_LIST
|
|
||||||
{
|
{
|
||||||
productName = getProductNameLE(&baseRequest->AppID, AppList, &index);
|
productName = getProductNameLE(&baseRequest->AppID, AppList, &index);
|
||||||
}
|
}
|
||||||
@ -599,7 +620,21 @@ static void getEpid(RESPONSE *const baseResponse, const char** EpidSource, const
|
|||||||
else
|
else
|
||||||
#endif // NO_RANDOM_EPID
|
#endif // NO_RANDOM_EPID
|
||||||
{
|
{
|
||||||
pid = AppList[index].pid;
|
switch(index)
|
||||||
|
{
|
||||||
|
case EPID_INDEX_OFFICE2016:
|
||||||
|
pid = EPID_OFFICE2016;
|
||||||
|
break;
|
||||||
|
case EPID_INDEX_OFFICE2013:
|
||||||
|
pid = EPID_OFFICE2013;
|
||||||
|
break;
|
||||||
|
case EPID_INDEX_OFFICE2010:
|
||||||
|
pid = EPID_OFFICE2010;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
pid = EPID_WINDOWS;
|
||||||
|
break;
|
||||||
|
}
|
||||||
#ifndef NO_LOG
|
#ifndef NO_LOG
|
||||||
*EpidSource = "vlmcsd default";
|
*EpidSource = "vlmcsd default";
|
||||||
#endif // NO_LOG
|
#endif // NO_LOG
|
||||||
@ -692,9 +727,27 @@ static BOOL __stdcall CreateResponseBaseCallback(const REQUEST *const baseReques
|
|||||||
|
|
||||||
ProdListIndex_t index;
|
ProdListIndex_t index;
|
||||||
|
|
||||||
getProductNameLE(&baseRequest->AppID, AppList, &index);
|
getProductNameLE(&baseRequest->KMSID, ProductList, &index);
|
||||||
|
|
||||||
if (index >= _countof(AppList) - 1) index = 0; //default to Windows
|
switch(index)
|
||||||
|
{
|
||||||
|
case KMS_ID_OFFICE2016:
|
||||||
|
index = EPID_INDEX_OFFICE2016;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case KMS_ID_OFFICE2013:
|
||||||
|
case KMS_ID_OFFICE2013_BETA:
|
||||||
|
index = EPID_INDEX_OFFICE2013;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case KMS_ID_OFFICE2010:
|
||||||
|
index = EPID_INDEX_OFFICE2010;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
index = EPID_INDEX_WINDOWS;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
getEpid(baseResponse, &EpidSource, index, hwId);
|
getEpid(baseResponse, &EpidSource, index, hwId);
|
||||||
|
|
||||||
@ -703,7 +756,7 @@ static BOOL __stdcall CreateResponseBaseCallback(const REQUEST *const baseReques
|
|||||||
memcpy(&baseResponse->CMID, &baseRequest->CMID, sizeof(GUID));
|
memcpy(&baseResponse->CMID, &baseRequest->CMID, sizeof(GUID));
|
||||||
memcpy(&baseResponse->ClientTime, &baseRequest->ClientTime, sizeof(FILETIME));
|
memcpy(&baseResponse->ClientTime, &baseRequest->ClientTime, sizeof(FILETIME));
|
||||||
|
|
||||||
baseResponse->Count = index == 1 || index == 2 ? LE32(10) : LE32(50);
|
baseResponse->Count = index > 0 && index < 4 ? LE32(10) : LE32(50);
|
||||||
baseResponse->VLActivationInterval = LE32(VLActivationInterval);
|
baseResponse->VLActivationInterval = LE32(VLActivationInterval);
|
||||||
baseResponse->VLRenewalInterval = LE32(VLRenewalInterval);
|
baseResponse->VLRenewalInterval = LE32(VLRenewalInterval);
|
||||||
|
|
||||||
@ -790,7 +843,7 @@ static int_fast8_t CreateV6Hmac(BYTE *const encrypt_start, const size_t encryptS
|
|||||||
(
|
(
|
||||||
hash + halfHashSize, // Use last 16 bytes of SHA256 as HMAC key
|
hash + halfHashSize, // Use last 16 bytes of SHA256 as HMAC key
|
||||||
encrypt_start, // hash only the encrypted part of the v6 response
|
encrypt_start, // hash only the encrypted part of the v6 response
|
||||||
encryptSize - sizeof(((RESPONSE_V6*)0)->HMAC), // encryptSize minus the HMAC itself
|
(DWORD)(encryptSize - sizeof(((RESPONSE_V6*)0)->HMAC)), // encryptSize minus the HMAC itself
|
||||||
hash // use same buffer for resulting hash where the key came from
|
hash // use same buffer for resulting hash where the key came from
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
@ -1028,23 +1081,20 @@ static RESPONSE_RESULT VerifyResponseV6(RESPONSE_RESULT result, const AesCtx* Ct
|
|||||||
CreateV6Hmac
|
CreateV6Hmac
|
||||||
(
|
(
|
||||||
rawResponse + sizeof(response_v6->Version), // Pointer to start of the encrypted part of the response
|
rawResponse + sizeof(response_v6->Version), // Pointer to start of the encrypted part of the response
|
||||||
(size_t)result.correctResponseSize - V6_UNENCRYPTED_SIZE, // size of the encrypted part
|
(size_t)result.correctResponseSize - sizeof(response_v6->Version), // size of the encrypted part
|
||||||
tolerance // tolerance -1, 0, or +1
|
tolerance // tolerance -1, 0, or +1
|
||||||
);
|
);
|
||||||
|
|
||||||
if
|
|
||||||
((
|
|
||||||
result.HmacSha256OK = !memcmp // Compare both HMACs
|
result.HmacSha256OK = !memcmp // Compare both HMACs
|
||||||
(
|
(
|
||||||
OldHmac,
|
OldHmac,
|
||||||
rawResponse + (size_t)result.correctResponseSize - sizeof(response_v6->HMAC),
|
rawResponse + (size_t)result.correctResponseSize - sizeof(response_v6->HMAC),
|
||||||
sizeof(OldHmac)
|
sizeof(OldHmac)
|
||||||
)
|
);
|
||||||
))
|
|
||||||
{
|
if (result.HmacSha256OK) break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
55
kms.h
55
kms.h
@ -6,7 +6,11 @@
|
|||||||
#endif // CONFIG
|
#endif // CONFIG
|
||||||
#include CONFIG
|
#include CONFIG
|
||||||
|
|
||||||
|
#if _MSC_VER
|
||||||
|
#include <time.h>
|
||||||
|
#else
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#endif // _MSC_VER
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
//
|
//
|
||||||
@ -231,30 +235,35 @@ typedef struct
|
|||||||
#define APP_ID_OFFICE2010 1
|
#define APP_ID_OFFICE2010 1
|
||||||
#define APP_ID_OFFICE2013 2
|
#define APP_ID_OFFICE2013 2
|
||||||
|
|
||||||
|
#define EPID_INDEX_WINDOWS APP_ID_WINDOWS
|
||||||
|
#define EPID_INDEX_OFFICE2010 APP_ID_OFFICE2010
|
||||||
|
#define EPID_INDEX_OFFICE2013 APP_ID_OFFICE2013
|
||||||
|
#define EPID_INDEX_OFFICE2016 3
|
||||||
|
|
||||||
// Update these numbers in License Manager
|
// Update these numbers in License Manager
|
||||||
#define KMS_ID_VISTA 0
|
#define KMS_ID_OFFICE2010 0
|
||||||
#define KMS_ID_WIN7 1
|
#define KMS_ID_OFFICE2013 1
|
||||||
#define KMS_ID_WIN8_VL 2
|
#define KMS_ID_OFFICE2013_BETA 2
|
||||||
#define KMS_ID_WIN_BETA 3
|
#define KMS_ID_OFFICE2016 3
|
||||||
#define KMS_ID_WIN8_RETAIL 4
|
#define KMS_ID_VISTA 4
|
||||||
#define KMS_ID_WIN81_VL 5
|
#define KMS_ID_WIN7 5
|
||||||
#define KMS_ID_WIN81_RETAIL 6
|
#define KMS_ID_WIN8_VL 6
|
||||||
#define KMS_ID_WIN2008A 7
|
#define KMS_ID_WIN_BETA 7
|
||||||
#define KMS_ID_WIN2008B 8
|
#define KMS_ID_WIN8_RETAIL 8
|
||||||
#define KMS_ID_WIN2008C 9
|
#define KMS_ID_WIN81_VL 9
|
||||||
#define KMS_ID_WIN2008R2A 10
|
#define KMS_ID_WIN81_RETAIL 10
|
||||||
#define KMS_ID_WIN2008R2B 11
|
#define KMS_ID_WIN2008A 11
|
||||||
#define KMS_ID_WIN2008R2C 12
|
#define KMS_ID_WIN2008B 12
|
||||||
#define KMS_ID_WIN2012 13
|
#define KMS_ID_WIN2008C 13
|
||||||
#define KMS_ID_WIN2012R2 14
|
#define KMS_ID_WIN2008R2A 14
|
||||||
#define KMS_ID_OFFICE2010 15
|
#define KMS_ID_WIN2008R2B 15
|
||||||
#define KMS_ID_OFFICE2013 16
|
#define KMS_ID_WIN2008R2C 16
|
||||||
#define KMS_ID_WIN_SRV_BETA 17
|
#define KMS_ID_WIN2012 17
|
||||||
#define KMS_ID_OFFICE2016 18
|
#define KMS_ID_WIN2012R2 18
|
||||||
#define KMS_ID_WIN10_VL 19
|
#define KMS_ID_WIN_SRV_BETA 19
|
||||||
#define KMS_ID_WIN10_RETAIL 20
|
#define KMS_ID_WIN10_VL 20
|
||||||
#define KMS_ID_WIN2016 21
|
#define KMS_ID_WIN10_RETAIL 21
|
||||||
#define KMS_ID_OFFICE2013_BETA 22
|
#define KMS_ID_WIN2016 22
|
||||||
#define KMS_ID_WIN10_LTSB2016 23
|
#define KMS_ID_WIN10_LTSB2016 23
|
||||||
|
|
||||||
#define PWINGUID &AppList[APP_ID_WINDOWS].guid
|
#define PWINGUID &AppList[APP_ID_WINDOWS].guid
|
||||||
|
4
libkms.c
4
libkms.c
@ -62,7 +62,7 @@ EXTERNC __declspec(EXTERNAL) SOCKET __cdecl ConnectToServer(const char* host, co
|
|||||||
|
|
||||||
size_t adrlen = strlen(host) + 16;
|
size_t adrlen = strlen(host) + 16;
|
||||||
char* RemoteAddr = (char*)alloca(adrlen);
|
char* RemoteAddr = (char*)alloca(adrlen);
|
||||||
snprintf(RemoteAddr, adrlen, "[%s]:%s", host, port);
|
vlmcsd_snprintf(RemoteAddr, adrlen, "[%s]:%s", host, port);
|
||||||
sock = connectToAddress(RemoteAddr, addressFamily, FALSE);
|
sock = connectToAddress(RemoteAddr, addressFamily, FALSE);
|
||||||
|
|
||||||
if (sock == INVALID_RPCCTX)
|
if (sock == INVALID_RPCCTX)
|
||||||
@ -161,7 +161,7 @@ EXTERNC __declspec(EXTERNAL) DWORD __cdecl StartKmsServer(const int port, Reques
|
|||||||
# endif // _WIN32
|
# endif // _WIN32
|
||||||
|
|
||||||
defaultport = vlmcsd_malloc(16);
|
defaultport = vlmcsd_malloc(16);
|
||||||
snprintf((char*)defaultport, (size_t)16, "%i", port);
|
vlmcsd_snprintf((char*)defaultport, (size_t)16, "%i", port);
|
||||||
|
|
||||||
CreateResponseBase = requestCallback;
|
CreateResponseBase = requestCallback;
|
||||||
error = listenOnAllAddresses();
|
error = listenOnAllAddresses();
|
||||||
|
@ -15,14 +15,14 @@ CFCLANG="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tabl
|
|||||||
LF="-Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none"
|
LF="-Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none"
|
||||||
LFCLANG="-Wl,-z,norelro -Wl,--hash-style=gnu"
|
LFCLANG="-Wl,-z,norelro -Wl,--hash-style=gnu"
|
||||||
|
|
||||||
gmake $MAKEFLAGS allmulti CAT=2 MULTI_NAME=vlmcsdmulti-FreeBSD-10.3-x64-gcc CLIENT_NAME=vlmcs-FreeBSD-10.3-x64-gcc PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64-gcc CC=gcc5 CFLAGS="$CF" LDFLAGS="$LF"
|
gmake $MAKEFLAGS allmulti CAT=2 MULTI_NAME=vlmcsdmulti-FreeBSD-10.3-x64-gcc CLIENT_NAME=vlmcs-FreeBSD-10.3-x64-gcc PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64-gcc CC=gcc6 CFLAGS="$CF" LDFLAGS="$LF"
|
||||||
gmake $MAKEFLAGS MULTI_NAME=vlmcsdmulti-FreeBSD-10.3-x64 CLIENT_NAME=vlmcs-FreeBSD-10.3-x64 PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64 CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="$LF" allmulti
|
gmake $MAKEFLAGS MULTI_NAME=vlmcsdmulti-FreeBSD-10.3-x64 CLIENT_NAME=vlmcs-FreeBSD-10.3-x64 PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64 CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="$LF" allmulti
|
||||||
gmake $MAKEFLAGS MULTI_NAME=vlmcsdmulti-FreeBSD-10.3-x86 CLIENT_NAME=vlmcs-FreeBSD-10.3-x86 PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86 CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="$LF"
|
gmake $MAKEFLAGS MULTI_NAME=vlmcsdmulti-FreeBSD-10.3-x86 CLIENT_NAME=vlmcs-FreeBSD-10.3-x86 PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86 CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="$LF"
|
||||||
gmake $MAKEFLAGS allmulti CAT=2 MULTI_NAME=vlmcsdmulti-FreeBSD-10.3-x86-gcc CLIENT_NAME=vlmcs-FreeBSD-10.3-x86-gcc PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86-gcc CC=gcc5 CFLAGS="$CF -m32 -DCOMPAT_32BIT" LDFLAGS="-L/usr/lib32 -B/usr/lib32 $LF"
|
gmake $MAKEFLAGS allmulti CAT=2 MULTI_NAME=vlmcsdmulti-FreeBSD-10.3-x86-gcc CLIENT_NAME=vlmcs-FreeBSD-10.3-x86-gcc PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86-gcc CC=gcc6 CFLAGS="$CF -m32 -DCOMPAT_32BIT" LDFLAGS="-L/usr/lib32 -B/usr/lib32 $LF"
|
||||||
gmake $MAKEFLAGS CAT=2 vlmcsd-FreeBSD-10.3-x64-threads-gcc PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64-threads-gcc THREADS=1 CC=gcc5 CFLAGS="$CF" LDFLAGS="-lpthread $LF"
|
gmake $MAKEFLAGS CAT=2 vlmcsd-FreeBSD-10.3-x64-threads-gcc PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64-threads-gcc THREADS=1 CC=gcc6 CFLAGS="$CF" LDFLAGS="-lpthread $LF"
|
||||||
gmake $MAKEFLAGS vlmcsd-FreeBSD-10.3-x64-threads PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64-threads THREADS=1 CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="-lpthread $LF"
|
gmake $MAKEFLAGS vlmcsd-FreeBSD-10.3-x64-threads PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64-threads THREADS=1 CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="-lpthread $LF"
|
||||||
gmake $MAKEFLAGS vlmcsd-FreeBSD-10.3-x86-threads PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86-threads THREADS=1 CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="-lpthread $LF"
|
gmake $MAKEFLAGS vlmcsd-FreeBSD-10.3-x86-threads PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86-threads THREADS=1 CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="-lpthread $LF"
|
||||||
gmake $MAKEFLAGS CAT=2 vlmcsd-FreeBSD-10.3-x86-threads-gcc PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86-threads-gcc THREADS=1 CC=gcc5 CFLAGS="$CF -m32 -DCOMPAT_32BIT" LDFLAGS="-lpthread -L/usr/lib32 -B/usr/lib32 $LF"
|
gmake $MAKEFLAGS CAT=2 vlmcsd-FreeBSD-10.3-x86-threads-gcc PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86-threads-gcc THREADS=1 CC=gcc6 CFLAGS="$CF -m32 -DCOMPAT_32BIT" LDFLAGS="-lpthread -L/usr/lib32 -B/usr/lib32 $LF"
|
||||||
gmake $MAKEFLAGS CRYPTO=openssl_with_aes CLIENT_NAME=vlmcs-FreeBSD-10.3-x64-openssl1.0.1-EXPERIMENTAL PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64-openssl1.0.1-EXPERIMENTAL CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="$LF"
|
gmake $MAKEFLAGS CRYPTO=openssl_with_aes CLIENT_NAME=vlmcs-FreeBSD-10.3-x64-openssl1.0.1-EXPERIMENTAL PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x64-openssl1.0.1-EXPERIMENTAL CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="$LF"
|
||||||
gmake $MAKEFLAGS CRYPTO=openssl_with_aes CLIENT_NAME=vlmcs-FreeBSD-10.3-x86-openssl1.0.1-EXPERIMENTAL PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86-openssl1.0.1-EXPERIMENTAL CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="$LF"
|
gmake $MAKEFLAGS CRYPTO=openssl_with_aes CLIENT_NAME=vlmcs-FreeBSD-10.3-x86-openssl1.0.1-EXPERIMENTAL PROGRAM_NAME=vlmcsd-FreeBSD-10.3-x86-openssl1.0.1-EXPERIMENTAL CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="$LF"
|
||||||
|
|
||||||
|
16
make_linux
16
make_linux
@ -70,10 +70,10 @@ export STAGING_DIR=.
|
|||||||
|
|
||||||
|
|
||||||
# Windows 32-bit using MingW32-w64 toolchain on Ubuntu Linux
|
# Windows 32-bit using MingW32-w64 toolchain on Ubuntu Linux
|
||||||
export CLIENT_NAME=binaries/Windows/intel/vlmcs-Windows-x86.exe
|
export CLIENT_NAME=binaries/Windows/intel/vlmcs-Windows-x86-gcc.exe
|
||||||
export PROGRAM_NAME=binaries/Windows/intel/vlmcsd-Windows-x86.exe
|
export PROGRAM_NAME=binaries/Windows/intel/vlmcsd-Windows-x86-gcc.exe
|
||||||
export MULTI_NAME=binaries/Windows/intel/vlmcsdmulti-Windows-x86.exe
|
export MULTI_NAME=binaries/Windows/intel/vlmcsdmulti-Windows-x86-gcc.exe
|
||||||
export DLL_NAME=binaries/Windows/intel/libkms32.dll
|
export DLL_NAME=binaries/Windows/intel/libkms32-gcc.dll
|
||||||
export THREADS=1
|
export THREADS=1
|
||||||
export CFLAGS="$SMALLCC"
|
export CFLAGS="$SMALLCC"
|
||||||
export CC=i686-w64-mingw32-gcc
|
export CC=i686-w64-mingw32-gcc
|
||||||
@ -131,10 +131,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# Windows 64-bit using MingW32-w64 toolchain on Ubuntu Linux
|
# Windows 64-bit using MingW32-w64 toolchain on Ubuntu Linux
|
||||||
export CLIENT_NAME=binaries/Windows/intel/vlmcs-Windows-x64.exe
|
export CLIENT_NAME=binaries/Windows/intel/vlmcs-Windows-x64-gcc.exe
|
||||||
export PROGRAM_NAME=binaries/Windows/intel/vlmcsd-Windows-x64.exe
|
export PROGRAM_NAME=binaries/Windows/intel/vlmcsd-Windows-x64-gcc.exe
|
||||||
export MULTI_NAME=binaries/Windows/intel/vlmcsdmulti-Windows-x64.exe
|
export MULTI_NAME=binaries/Windows/intel/vlmcsdmulti-Windows-x64-gcc.exe
|
||||||
export DLL_NAME=binaries/Windows/intel/libkms64.dll
|
export DLL_NAME=binaries/Windows/intel/libkms64-gcc.dll
|
||||||
export THREADS=1
|
export THREADS=1
|
||||||
export CFLAGS="$SMALLCC"
|
export CFLAGS="$SMALLCC"
|
||||||
export CC=x86_64-w64-mingw32-gcc
|
export CC=x86_64-w64-mingw32-gcc
|
||||||
|
8
make_osx
8
make_osx
@ -46,10 +46,10 @@ PATH=~/toolchains/iOS5.1-MacOS-Lion/usr/bin:$PATH make $MAKEFLAGS allmulti MULTI
|
|||||||
PATH=~/toolchains/gcc4.2/usr/bin:$PATH make -Bj allmulti SAFE_MODE=1 MULTI_NAME=vlmcsdmulti-MacOSX-ppc PROGRAM_NAME=vlmcsd-MacOSX-ppc CLIENT_NAME=vlmcs-MacOSX-ppc CC=gcc CFLAGS="$CFGCC42 -isysroot ~/toolchains/MacOSX10.5.sdk -arch ppc -mmacosx-version-min=10.0" && \
|
PATH=~/toolchains/gcc4.2/usr/bin:$PATH make -Bj allmulti SAFE_MODE=1 MULTI_NAME=vlmcsdmulti-MacOSX-ppc PROGRAM_NAME=vlmcsd-MacOSX-ppc CLIENT_NAME=vlmcs-MacOSX-ppc CC=gcc CFLAGS="$CFGCC42 -isysroot ~/toolchains/MacOSX10.5.sdk -arch ppc -mmacosx-version-min=10.0" && \
|
||||||
|
|
||||||
|
|
||||||
make $MAKEFLAGS allmulti MULTI_NAME=vlmcsdmulti-MacOSX-x86-gcc CLIENT_NAME=vlmcs-MacOSX-x86-gcc PROGRAM_NAME=vlmcsd-MacOSX-x86-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
|
make $MAKEFLAGS allmulti MULTI_NAME=vlmcsdmulti-MacOSX-x86-gcc CLIENT_NAME=vlmcs-MacOSX-x86-gcc PROGRAM_NAME=vlmcsd-MacOSX-x86-gcc CC=gcc-6 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
|
||||||
make $MAKEFLAGS vlmcsd-MacOSX-x86-threads-gcc THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x86-threads-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
|
make $MAKEFLAGS vlmcsd-MacOSX-x86-threads-gcc THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x86-threads-gcc CC=gcc-6 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
|
||||||
make $MAKEFLAGS allmulti MULTI_NAME=vlmcsdmulti-MacOSX-x64-gcc CLIENT_NAME=vlmcs-MacOSX-x64-gcc PROGRAM_NAME=vlmcsd-MacOSX-x64-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
|
make $MAKEFLAGS allmulti MULTI_NAME=vlmcsdmulti-MacOSX-x64-gcc CLIENT_NAME=vlmcs-MacOSX-x64-gcc PROGRAM_NAME=vlmcsd-MacOSX-x64-gcc CC=gcc-6 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
|
||||||
make $MAKEFLAGS vlmcsd-MacOSX-x64-threads-gcc THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x64-threads-gcc CC=gcc-5 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
|
make $MAKEFLAGS vlmcsd-MacOSX-x64-threads-gcc THREADS=1 PROGRAM_NAME=vlmcsd-MacOSX-x64-threads-gcc CC=gcc-6 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
|
||||||
|
|
||||||
# Sign the iOS binaries
|
# Sign the iOS binaries
|
||||||
#ldid -S *iOS*
|
#ldid -S *iOS*
|
||||||
|
39
make_windows
39
make_windows
@ -1,8 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export VLMCSD_VERSION="svn`svnversion`"
|
export VLMCSD_VERSION="svn`svnversion`"
|
||||||
|
|
||||||
|
msbuild='/cygdrive/c/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe'
|
||||||
|
version="$VLMCSD_VERSION, built $(date -u '+%Y-%m-%d %H:%M:%S') UTC"
|
||||||
|
|
||||||
rm -f cygkms*.dll libkms*.dll vlmcs-* vlmcsd-win* vlmcsd-cyg* vlmcsdmulti-* *_all.* vlmcsd.exe vlmcs.exe vlmcsdmulti.exe 2> /dev/null
|
rm -f cygkms*.dll libkms*.dll vlmcs-* vlmcsd-win* vlmcsd-cyg* vlmcsdmulti-* *_all.* vlmcsd.exe vlmcs.exe vlmcsdmulti.exe 2> /dev/null
|
||||||
|
|
||||||
|
export ExternalCompilerOptions="/D VERSION=\"\\\"$version\\\"\" /D BUILD_TIME=$(date '+%s')"
|
||||||
|
|
||||||
|
"$msbuild" VisualStudio/vlmcsd-2015-with-2013-c++-build-tools.sln /t:Rebuild /p:Configuration=Release /p:Platform=x86 /m /v:m
|
||||||
|
"$msbuild" VisualStudio/vlmcsd-2015-with-2013-c++-build-tools.sln /t:Rebuild /p:Configuration=Release /p:Platform=x64 /m /v:m
|
||||||
|
|
||||||
export CAT=2
|
export CAT=2
|
||||||
export VERBOSE=3
|
export VERBOSE=3
|
||||||
NUMCPU=`cat /proc/cpuinfo | grep "processor" | wc -l`
|
NUMCPU=`cat /proc/cpuinfo | grep "processor" | wc -l`
|
||||||
@ -12,9 +21,9 @@ CFMSRPC="-Wno-missing-braces -Wno-unused-variable $CF" # -fno-common -fno-stack-
|
|||||||
PF32=""
|
PF32=""
|
||||||
PF64="-mpreferred-stack-boundary=4 -march=nocona -mtune=generic"
|
PF64="-mpreferred-stack-boundary=4 -march=nocona -mtune=generic"
|
||||||
LFCYG32="-fwhole-program -Wl,--nxcompat,--dynamicbase,--tsaware,--large-address-aware,--disable-long-section-names"
|
LFCYG32="-fwhole-program -Wl,--nxcompat,--dynamicbase,--tsaware,--large-address-aware,--disable-long-section-names"
|
||||||
LFWIN32="-fwhole-program -Wl,--nxcompat,--dynamicbase,--tsaware,--large-address-aware,--disable-long-section-names"
|
LFWIN32="-fwhole-program -Wl,--nxcompat,--dynamicbase,--tsaware,--large-address-aware,--disable-long-section-names,--no-seh"
|
||||||
LFCYG64="-fwhole-program -Wl,--nxcompat,--dynamicbase,--tsaware,--disable-long-section-names,--high-entropy-va"
|
LFCYG64="-fwhole-program -Wl,--nxcompat,--dynamicbase,--tsaware,--disable-long-section-names,--high-entropy-va"
|
||||||
LFWIN64="-fwhole-program -Wl,--nxcompat,--dynamicbase,--tsaware,--disable-long-section-names,--high-entropy-va"
|
LFWIN64="-fwhole-program -Wl,--nxcompat,--dynamicbase,--tsaware,--disable-long-section-names,--high-entropy-va,--no-seh"
|
||||||
|
|
||||||
MAKEFLAGS="-j$NUMCPU -B"
|
MAKEFLAGS="-j$NUMCPU -B"
|
||||||
REUSEFLAGS="-j$NUMCPU"
|
REUSEFLAGS="-j$NUMCPU"
|
||||||
@ -35,12 +44,13 @@ make $MAKEFLAGS THREADS=1 MSRPC=1 DNS_PARSER=internal CLIENT_NAME=vlmcs-cygwin-m
|
|||||||
|
|
||||||
export CAT=2
|
export CAT=2
|
||||||
#unset CAT
|
#unset CAT
|
||||||
make $MAKEFLAGS libkms32.dll CRYPTO=windows FEATURES=minimum THREADS=1 DLL_NAME=libkms32.dll CC=i686-w64-MingW32-gcc.exe CFLAGS="$CF -flto=jobserver -fvisibility=hidden" PLATFORMFLAGS="$PF32" LDFLAGS="-static-libgcc $LFWIN32"
|
make $MAKEFLAGS libkms32-gcc.dll CRYPTO=windows FEATURES=minimum THREADS=1 DLL_NAME=libkms32-gcc.dll CC=i686-w64-MingW32-gcc.exe CFLAGS="$CF -flto=jobserver -fvisibility=hidden" PLATFORMFLAGS="$PF32" LDFLAGS="-static-libgcc $LFWIN32"
|
||||||
make $MAKEFLAGS libkms64.dll CRYPTO=windows FEATURES=minimum THREADS=1 DLL_NAME=libkms64.dll CC=x86_64-w64-MingW32-gcc.exe CFLAGS="$CF -flto=jobserver -fvisibility=hidden" PLATFORMFLAGS="$PF64" LDFLAGS="-static-libgcc $LFWIN64"
|
make $MAKEFLAGS libkms64-gcc.dll CRYPTO=windows FEATURES=minimum THREADS=1 DLL_NAME=libkms64-gcc.dll CC=x86_64-w64-MingW32-gcc.exe CFLAGS="$CF -flto=jobserver -fvisibility=hidden" PLATFORMFLAGS="$PF64" LDFLAGS="-static-libgcc $LFWIN64"
|
||||||
#make $MAKEFLAGS all vlmcsdmulti-Windows-x86 THREADS=1 CRYPTO=windows CLIENT_NAME=vlmcs-Windows-x86 PROGRAM_NAME=vlmcsd-Windows-x86 MULTI_NAME=vlmcsdmulti-Windows-x86 CC=i686-w64-MingW32-gcc.exe CFLAGS="$CF" PLATFORMFLAGS="$PF32" LDFLAGS="$LFWIN32"
|
make $MAKEFLAGS allmulti THREADS=1 CRYPTO=windows CLIENT_NAME=vlmcs-Windows-x86-gcc PROGRAM_NAME=vlmcsd-Windows-x86-gcc MULTI_NAME=vlmcsdmulti-Windows-x86-gcc CC=i686-w64-MingW32-gcc.exe CFLAGS="$CF -fno-lto" PLATFORMFLAGS="$PF32" LDFLAGS="$LFWIN32"
|
||||||
#make $MAKEFLAGS all vlmcsdmulti-Windows-x64 THREADS=1 CRYPTO=windows CLIENT_NAME=vlmcs-Windows-x64 PROGRAM_NAME=vlmcsd-Windows-x64 MULTI_NAME=vlmcsdmulti-Windows-x64 CC=x86_64-w64-MingW32-gcc.exe CFLAGS="$CF" PLATFORMFLAGS="$PF64" LDFLAGS="$LFWIN64"
|
make $MAKEFLAGS allmulti THREADS=1 CRYPTO=windows CLIENT_NAME=vlmcs-Windows-x64-gcc PROGRAM_NAME=vlmcsd-Windows-x64-gcc MULTI_NAME=vlmcsdmulti-Windows-x64-gcc CC=x86_64-w64-MingW32-gcc.exe CFLAGS="$CF -fno-lto" PLATFORMFLAGS="$PF64" LDFLAGS="$LFWIN64"
|
||||||
#make -Bj MSRPC=1 CRYPTO=windows CLIENT_NAME=vlmcs-Windows-msrpc-x86 PROGRAM_NAME=vlmcsd-Windows-msrpc-x86 MULTI_NAME=vlmcsdmulti-Windows-msrpc-x86 CC=i686-w64-MingW32-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF32" LDFLAGS="-Wl,--nxcompat,--dynamicbase,--tsaware,--large-address-aware"
|
unset CAT
|
||||||
#make $MAKEFLAGS THREADS=1 MSRPC=1 CRYPTO=windows CLIENT_NAME=vlmcs-Windows-msrpc-x64 PROGRAM_NAME=vlmcsd-Windows-msrpc-x64 MULTI_NAME=vlmcsdmulti-Windows-msrpc-x64 CC=x86_64-w64-MingW32-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF64" LDFLAGS="$LFCYG64"
|
make -Bj allmulti MSRPC=1 CRYPTO=windows CLIENT_NAME=vlmcs-Windows-msrpc-x86 PROGRAM_NAME=vlmcsd-Windows-msrpc-x86 MULTI_NAME=vlmcsdmulti-Windows-msrpc-x86 CC=i686-w64-MingW32-gcc.exe CFLAGS="$CFMSRPC -fno-lto" PLATFORMFLAGS="$PF32" LDFLAGS="$LFWIN32"
|
||||||
|
make $MAKEFLAGS allmulti THREADS=1 MSRPC=1 CRYPTO=windows CLIENT_NAME=vlmcs-Windows-msrpc-x64 PROGRAM_NAME=vlmcsd-Windows-msrpc-x64 MULTI_NAME=vlmcsdmulti-Windows-msrpc-x64 CC=x86_64-w64-MingW32-gcc.exe CFLAGS="$CFMSRPC -fno-lto" PLATFORMFLAGS="$PF64" LDFLAGS="$LFWIN64"
|
||||||
#unset CAT
|
#unset CAT
|
||||||
#make $MAKEFLAGS vlmcsdmulti-Windows-msrpc-x86 THREADS=1 MSRPC=1 CRYPTO=windows MULTI_NAME=vlmcsdmulti-Windows-msrpc-x86 CC=i686-w64-MingW32-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF32" LDFLAGS="-Wl,--nxcompat,--dynamicbase,--tsaware,--large-address-aware"
|
#make $MAKEFLAGS vlmcsdmulti-Windows-msrpc-x86 THREADS=1 MSRPC=1 CRYPTO=windows MULTI_NAME=vlmcsdmulti-Windows-msrpc-x86 CC=i686-w64-MingW32-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF32" LDFLAGS="-Wl,--nxcompat,--dynamicbase,--tsaware,--large-address-aware"
|
||||||
#make $MAKEFLAGS vlmcsdmulti-Windows-msrpc-x64 THREADS=1 MSRPC=1 CRYPTO=windows MULTI_NAME=vlmcsdmulti-Windows-msrpc-x64 CC=x86_64-w64-MingW32-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF64" LDFLAGS="$LFCYG64"
|
#make $MAKEFLAGS vlmcsdmulti-Windows-msrpc-x64 THREADS=1 MSRPC=1 CRYPTO=windows MULTI_NAME=vlmcsdmulti-Windows-msrpc-x64 CC=x86_64-w64-MingW32-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF64" LDFLAGS="$LFCYG64"
|
||||||
@ -48,10 +58,10 @@ export CAT=2
|
|||||||
|
|
||||||
rm -f *_all.* *.o 2> /dev/null &
|
rm -f *_all.* *.o 2> /dev/null &
|
||||||
|
|
||||||
echo ""
|
#echo ""
|
||||||
echo "Copying MingW binaries from distribution server"
|
#echo "Copying MingW binaries from distribution server"
|
||||||
|
|
||||||
scp -p root@ubuntu64:x/binaries/Windows/intel/*Windows* root@ubuntu64:x/binaries/Windows/intel/libkms* .
|
#scp -p root@ubuntu64:x/binaries/Windows/intel/*Windows* root@ubuntu64:x/binaries/Windows/intel/libkms* .
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Installing binaries"
|
echo "Installing binaries"
|
||||||
@ -62,10 +72,11 @@ cp -p cygkms64.dll /usr/local/bin/cygkms.dll &
|
|||||||
|
|
||||||
cp -p libkms32.dll /cygdrive/c/nttools/x86 &
|
cp -p libkms32.dll /cygdrive/c/nttools/x86 &
|
||||||
cp -p libkms64.dll /cygdrive/c/nttools/x64 &
|
cp -p libkms64.dll /cygdrive/c/nttools/x64 &
|
||||||
cp -p vlmcsdmulti-Windows-x86.exe /cygdrive/c/nttools/x86/vlmcsdmulti.exe
|
cp -p vlmcsd-Windows-x86.exe /cygdrive/c/nttools/x86/vlmcsd.exe
|
||||||
|
cp -p vlmcs-Windows-x86.exe /cygdrive/c/nttools/x86/vlmcs.exe
|
||||||
|
|
||||||
cmd /C mklink c:\\nttools\\x86\\vlmcsd.exe vlmcsdmulti.exe 2> /dev/null &
|
#cmd /C mklink c:\\nttools\\x86\\vlmcsd.exe vlmcsdmulti.exe 2> /dev/null &
|
||||||
cmd /C mklink c:\\nttools\\x86\\vlmcs.exe vlmcsdmulti.exe 2> /dev/null &
|
#cmd /C mklink c:\\nttools\\x86\\vlmcs.exe vlmcsdmulti.exe 2> /dev/null &
|
||||||
|
|
||||||
echo "Installing man pages"
|
echo "Installing man pages"
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
* msrpc-client.h
|
* msrpc-client.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef USE_MSRPC
|
||||||
#ifndef MSRPC_CLIENT_H_
|
#ifndef MSRPC_CLIENT_H_
|
||||||
#define MSRPC_CLIENT_H_
|
#define MSRPC_CLIENT_H_
|
||||||
|
|
||||||
@ -19,5 +20,6 @@ RpcStatus rpcSendRequest(const RpcCtx handle, BYTE* KmsRequest, size_t requestSi
|
|||||||
RpcStatus closeRpc(RpcCtx s);
|
RpcStatus closeRpc(RpcCtx s);
|
||||||
|
|
||||||
#define INVALID_RPCCTX ((RpcCtx)~0)
|
#define INVALID_RPCCTX ((RpcCtx)~0)
|
||||||
|
#endif // USE_MSRPC
|
||||||
|
|
||||||
#endif /* MSRPC_CLIENT_H_ */
|
#endif /* MSRPC_CLIENT_H_ */
|
||||||
|
23
network.c
23
network.c
@ -40,12 +40,11 @@
|
|||||||
|
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
#include "endian.h"
|
#include "endian.h"
|
||||||
#include "output.h"
|
//#include "output.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "shared_globals.h"
|
#include "shared_globals.h"
|
||||||
#include "rpc.h"
|
#include "rpc.h"
|
||||||
|
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
typedef ssize_t (*sendrecv_t)(int, void*, size_t, int);
|
typedef ssize_t (*sendrecv_t)(int, void*, size_t, int);
|
||||||
#else
|
#else
|
||||||
@ -92,7 +91,7 @@ static int_fast8_t ip2str(char *restrict result, const size_t resultLength, cons
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((unsigned int)snprintf(result, resultLength, socketAddress->sa_family == AF_INET6 ? fIPv6 : fIPv4, ipAddress, portNumber) > resultLength) return FALSE;
|
if ((unsigned int)vlmcsd_snprintf(result, resultLength, socketAddress->sa_family == AF_INET6 ? fIPv6 : fIPv4, ipAddress, portNumber) > resultLength) return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -245,7 +244,7 @@ SOCKET connectToAddress(const char *const addr, const int AddressFamily, int_fas
|
|||||||
// struct sockaddr_in* addr4 = (struct sockaddr_in*)sa->ai_addr;
|
// struct sockaddr_in* addr4 = (struct sockaddr_in*)sa->ai_addr;
|
||||||
// struct sockaddr_in6* addr6 = (struct sockaddr_in6*)sa->ai_addr;
|
// struct sockaddr_in6* addr6 = (struct sockaddr_in6*)sa->ai_addr;
|
||||||
|
|
||||||
if (ip2str(szAddr, sizeof(szAddr), sa->ai_addr, sa->ai_addrlen))
|
if (ip2str(szAddr, sizeof(szAddr), sa->ai_addr, (socklen_t)sa->ai_addrlen))
|
||||||
{
|
{
|
||||||
if (showHostName)
|
if (showHostName)
|
||||||
printf("Connecting to %s (%s) ... ", addr, szAddr);
|
printf("Connecting to %s (%s) ... ", addr, szAddr);
|
||||||
@ -274,7 +273,7 @@ SOCKET connectToAddress(const char *const addr, const int AddressFamily, int_fas
|
|||||||
setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (sockopt_t)&to, sizeof(to));
|
setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (sockopt_t)&to, sizeof(to));
|
||||||
# endif // !defined(NO_TIMEOUT) && !__minix__
|
# endif // !defined(NO_TIMEOUT) && !__minix__
|
||||||
|
|
||||||
if (!connect(s, sa->ai_addr, sa->ai_addrlen))
|
if (!connect(s, sa->ai_addr, (int)sa->ai_addrlen))
|
||||||
{
|
{
|
||||||
printf("successful\n");
|
printf("successful\n");
|
||||||
break;
|
break;
|
||||||
@ -310,7 +309,7 @@ static int_fast8_t allowSocketReuse(SOCKET s)
|
|||||||
if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (sockopt_t)&socketOption, sizeof(socketOption)))
|
if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (sockopt_t)&socketOption, sizeof(socketOption)))
|
||||||
{
|
{
|
||||||
# ifdef _PEDANTIC
|
# ifdef _PEDANTIC
|
||||||
printerrorf("Warning: %s does not support socket option SO_REUSEADDR: %s\n", ipstr, vlmcsd_strerror(socket_errno));
|
printerrorf("Warning: Socket option SO_REUSEADDR unsupported: %s\n", vlmcsd_strerror(socket_errno));
|
||||||
# endif // _PEDANTIC
|
# endif // _PEDANTIC
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,7 +402,7 @@ void getPrivateIPAddresses(int* numAddresses, char*** ipAddresses)
|
|||||||
|
|
||||||
for (currentAdapter = firstAdapter, *numAddresses = 0; currentAdapter != NULL; currentAdapter = currentAdapter->Next)
|
for (currentAdapter = firstAdapter, *numAddresses = 0; currentAdapter != NULL; currentAdapter = currentAdapter->Next)
|
||||||
{
|
{
|
||||||
PIP_ADAPTER_UNICAST_ADDRESS_XP currentAddress;
|
PIP_ADAPTER_UNICAST_ADDRESS currentAddress;
|
||||||
int length;
|
int length;
|
||||||
|
|
||||||
if (currentAdapter->OperStatus != IfOperStatusUp) continue;
|
if (currentAdapter->OperStatus != IfOperStatusUp) continue;
|
||||||
@ -418,7 +417,7 @@ void getPrivateIPAddresses(int* numAddresses, char*** ipAddresses)
|
|||||||
|
|
||||||
for (currentAdapter = firstAdapter, *numAddresses = 0; currentAdapter != NULL; currentAdapter = currentAdapter->Next)
|
for (currentAdapter = firstAdapter, *numAddresses = 0; currentAdapter != NULL; currentAdapter = currentAdapter->Next)
|
||||||
{
|
{
|
||||||
PIP_ADAPTER_UNICAST_ADDRESS_XP currentAddress;
|
PIP_ADAPTER_UNICAST_ADDRESS currentAddress;
|
||||||
int length;
|
int length;
|
||||||
|
|
||||||
if (currentAdapter->OperStatus != IfOperStatusUp) continue;
|
if (currentAdapter->OperStatus != IfOperStatusUp) continue;
|
||||||
@ -521,7 +520,7 @@ static int listenOnAddress(const struct addrinfo *const ai, SOCKET *s)
|
|||||||
int error;
|
int error;
|
||||||
char ipstr[64];
|
char ipstr[64];
|
||||||
|
|
||||||
ip2str(ipstr, sizeof(ipstr), ai->ai_addr, ai->ai_addrlen);
|
ip2str(ipstr, sizeof(ipstr), ai->ai_addr, (socklen_t)ai->ai_addrlen);
|
||||||
|
|
||||||
//*s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
|
//*s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
|
||||||
*s = socket(ai->ai_family, SOCK_STREAM, IPPROTO_TCP);
|
*s = socket(ai->ai_family, SOCK_STREAM, IPPROTO_TCP);
|
||||||
@ -615,7 +614,7 @@ static int listenOnAddress(const struct addrinfo *const ai, SOCKET *s)
|
|||||||
|
|
||||||
# endif // HAVE_FREEBIND
|
# endif // HAVE_FREEBIND
|
||||||
|
|
||||||
if (bind(*s, ai->ai_addr, ai->ai_addrlen) || listen(*s, SOMAXCONN))
|
if (bind(*s, ai->ai_addr, (int)ai->ai_addrlen) || listen(*s, SOMAXCONN))
|
||||||
{
|
{
|
||||||
error = socket_errno;
|
error = socket_errno;
|
||||||
printerrorf("Warning: %s: %s\n", ipstr, vlmcsd_strerror(error));
|
printerrorf("Warning: %s: %s\n", ipstr, vlmcsd_strerror(error));
|
||||||
@ -696,7 +695,7 @@ static SOCKET network_accept_any()
|
|||||||
if (SocketList[i] > maxSocket) maxSocket = SocketList[i];
|
if (SocketList[i] > maxSocket) maxSocket = SocketList[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
status = select(maxSocket + 1, &ListeningSocketsList, NULL, NULL, NULL);
|
status = select((int)maxSocket + 1, &ListeningSocketsList, NULL, NULL, NULL);
|
||||||
|
|
||||||
if (status < 0) return INVALID_SOCKET;
|
if (status < 0) return INVALID_SOCKET;
|
||||||
|
|
||||||
@ -871,7 +870,7 @@ static void *serveClientThreadProc (PCLDATA clData)
|
|||||||
#ifndef NO_SOCKETS
|
#ifndef NO_SOCKETS
|
||||||
|
|
||||||
#if defined(USE_THREADS) && (defined(_WIN32) || defined(__CYGWIN__)) // Windows Threads
|
#if defined(USE_THREADS) && (defined(_WIN32) || defined(__CYGWIN__)) // Windows Threads
|
||||||
static int serveClientAsyncWinThreads(const PCLDATA thr_CLData)
|
static int serveClientAsyncWinThreads(PCLDATA thr_CLData)
|
||||||
{
|
{
|
||||||
wait_sem();
|
wait_sem();
|
||||||
|
|
||||||
|
@ -13,6 +13,13 @@
|
|||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "output.h"
|
#include "output.h"
|
||||||
|
|
||||||
|
#if _MSC_VER
|
||||||
|
//typedef signed char int_fast8_t;
|
||||||
|
//typedef unsigned char BYTE;
|
||||||
|
//typedef UINT_PTR size_t;
|
||||||
|
//typedef unsigned long DWORD;
|
||||||
|
#define STDIN_FILENO 0
|
||||||
|
#endif
|
||||||
|
|
||||||
int_fast8_t sendrecv(SOCKET sock, BYTE *data, int len, int_fast8_t do_send);
|
int_fast8_t sendrecv(SOCKET sock, BYTE *data, int len, int_fast8_t do_send);
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
SERVICE_STATUS gSvcStatus;
|
SERVICE_STATUS gSvcStatus;
|
||||||
SERVICE_STATUS_HANDLE gSvcStatusHandle;
|
SERVICE_STATUS_HANDLE gSvcStatusHandle;
|
||||||
|
|
||||||
static VOID WINAPI ServiceCtrlHandler(const DWORD dwCtrl)
|
VOID WINAPI ServiceCtrlHandler(DWORD dwCtrl)
|
||||||
{
|
{
|
||||||
// Handle the requested control code.
|
// Handle the requested control code.
|
||||||
|
|
||||||
|
24
output.c
24
output.c
@ -2,6 +2,10 @@
|
|||||||
#define _DEFAULT_SOURCE
|
#define _DEFAULT_SOURCE
|
||||||
#endif // _DEFAULT_SOURCE
|
#endif // _DEFAULT_SOURCE
|
||||||
|
|
||||||
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG
|
#ifndef CONFIG
|
||||||
#define CONFIG "config.h"
|
#define CONFIG "config.h"
|
||||||
#endif // CONFIG
|
#endif // CONFIG
|
||||||
@ -66,8 +70,12 @@ static void vlogger(const char *message, va_list args)
|
|||||||
|
|
||||||
// We write everything to a string before we really log inside the critical section
|
// We write everything to a string before we really log inside the critical section
|
||||||
// so formatting the output can be concurrent
|
// so formatting the output can be concurrent
|
||||||
int len = strlen(mbstr);
|
int len = (int)strlen(mbstr);
|
||||||
vsnprintf(mbstr + len, sizeof(mbstr) - len, message, args);
|
//# if !_MSC_VER
|
||||||
|
vlmcsd_vsnprintf(mbstr + len, sizeof(mbstr) - len, message, args);
|
||||||
|
//# else
|
||||||
|
// wvsprintf(mbstr + len, message, args);
|
||||||
|
//# endif
|
||||||
|
|
||||||
lock_mutex(&logmutex);
|
lock_mutex(&logmutex);
|
||||||
fprintf(log, "%s", mbstr);
|
fprintf(log, "%s", mbstr);
|
||||||
@ -104,7 +112,7 @@ int printerrorf(const char *const fmt, ...)
|
|||||||
# ifdef IS_LIBRARY
|
# ifdef IS_LIBRARY
|
||||||
|
|
||||||
size_t len = strlen(ErrorMessage);
|
size_t len = strlen(ErrorMessage);
|
||||||
vsnprintf(ErrorMessage + len, MESSAGE_BUFFER_SIZE - len - 1, fmt, arglist);
|
vlmcsd_vsnprintf(ErrorMessage + len, MESSAGE_BUFFER_SIZE - len - 1, fmt, arglist);
|
||||||
|
|
||||||
# else // !IS_LIBRARY
|
# else // !IS_LIBRARY
|
||||||
|
|
||||||
@ -168,7 +176,7 @@ void uuid2StringLE(const GUID *const guid, char *const string)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NO_VERBOSE_LOG
|
#if !defined(NO_VERBOSE_LOG) && !defined(NO_LOG)
|
||||||
void logRequestVerbose(const REQUEST *const Request, const PRINTFUNC p)
|
void logRequestVerbose(const REQUEST *const Request, const PRINTFUNC p)
|
||||||
{
|
{
|
||||||
char guidBuffer[GUID_STRING_LENGTH + 1];
|
char guidBuffer[GUID_STRING_LENGTH + 1];
|
||||||
@ -196,13 +204,7 @@ void logRequestVerbose(const REQUEST *const Request, const PRINTFUNC p)
|
|||||||
p("SKU ID (aka Activation ID) : %s (%s)\n", guidBuffer, productName);
|
p("SKU ID (aka Activation ID) : %s (%s)\n", guidBuffer, productName);
|
||||||
|
|
||||||
uuid2StringLE(&Request->KMSID, guidBuffer);
|
uuid2StringLE(&Request->KMSID, guidBuffer);
|
||||||
|
|
||||||
#ifndef NO_BASIC_PRODUCT_LIST
|
|
||||||
productName = getProductNameLE(&Request->KMSID, ProductList, &index);
|
productName = getProductNameLE(&Request->KMSID, ProductList, &index);
|
||||||
#else
|
|
||||||
productName = "Unknown";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
p("KMS ID (aka KMS counted ID) : %s (%s)\n", guidBuffer, productName);
|
p("KMS ID (aka KMS counted ID) : %s (%s)\n", guidBuffer, productName);
|
||||||
|
|
||||||
uuid2StringLE(&Request->CMID, guidBuffer);
|
uuid2StringLE(&Request->CMID, guidBuffer);
|
||||||
@ -252,7 +254,7 @@ void logResponseVerbose(const char *const ePID, const BYTE *const hwid, const RE
|
|||||||
p("Renewal interval policy : %u\n", (uint32_t)LE32(response->VLRenewalInterval));
|
p("Renewal interval policy : %u\n", (uint32_t)LE32(response->VLRenewalInterval));
|
||||||
p("Activation interval policy : %u\n", (uint32_t)LE32(response->VLActivationInterval));
|
p("Activation interval policy : %u\n", (uint32_t)LE32(response->VLActivationInterval));
|
||||||
}
|
}
|
||||||
#endif // NO_VERBOSE_LOG
|
#endif // !defined(NO_VERBOSE_LOG) && !defined(NO_LOG)
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_VERSION_INFORMATION
|
#ifndef NO_VERSION_INFORMATION
|
||||||
|
1
output.h
1
output.h
@ -7,6 +7,7 @@
|
|||||||
#include CONFIG
|
#include CONFIG
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include "types.h"
|
||||||
#include "kms.h"
|
#include "kms.h"
|
||||||
|
|
||||||
typedef int (*PRINTFUNC)(const char *const fmt, ...);
|
typedef int (*PRINTFUNC)(const char *const fmt, ...);
|
||||||
|
35
rpc.c
35
rpc.c
@ -95,9 +95,9 @@ static void CheckRpcRequest(const RPC_REQUEST64 *const Request, const unsigned i
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Ctx != *Ndr64Ctx)
|
if (Ctx != *Ndr64Ctx)
|
||||||
kmsMajorVersion = LE16(((WORD*)Request->Ndr.Data)[1]);
|
kmsMajorVersion = (uint_fast8_t)LE16(((WORD*)Request->Ndr.Data)[1]);
|
||||||
else
|
else
|
||||||
kmsMajorVersion = LE16(((WORD*)Request->Ndr64.Data)[1]);
|
kmsMajorVersion = (uint_fast8_t)LE16(((WORD*)Request->Ndr64.Data)[1]);
|
||||||
|
|
||||||
if (kmsMajorVersion > 6)
|
if (kmsMajorVersion > 6)
|
||||||
{
|
{
|
||||||
@ -394,11 +394,12 @@ static int rpcBind(const RPC_BIND_REQUEST *const Request, RPC_BIND_RESPONSE* Res
|
|||||||
getsockname(sock, (struct sockaddr*)&addr, &socklen) ||
|
getsockname(sock, (struct sockaddr*)&addr, &socklen) ||
|
||||||
getnameinfo((struct sockaddr*)&addr, socklen, NULL, 0, (char*)Response->SecondaryAddress, sizeof(Response->SecondaryAddress), NI_NUMERICSERV))
|
getnameinfo((struct sockaddr*)&addr, socklen, NULL, 0, (char*)Response->SecondaryAddress, sizeof(Response->SecondaryAddress), NI_NUMERICSERV))
|
||||||
{
|
{
|
||||||
portNumberSize = Response->SecondaryAddressLength = 0;
|
portNumberSize = 0;
|
||||||
|
Response->SecondaryAddressLength = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
portNumberSize = strlen((char*)Response->SecondaryAddress) + 1;
|
portNumberSize = (uint_fast8_t)strlen((char*)Response->SecondaryAddress) + 1;
|
||||||
Response->SecondaryAddressLength = LE16(portNumberSize);
|
Response->SecondaryAddressLength = LE16(portNumberSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -542,7 +543,7 @@ void rpcServer(const SOCKET sock, const DWORD RpcAssocGroup, const char* const i
|
|||||||
if (!_recv(sock, requestBuffer, request_len)) return;
|
if (!_recv(sock, requestBuffer, request_len)) return;
|
||||||
|
|
||||||
// Request is invalid
|
// Request is invalid
|
||||||
BYTE isValid = _Actions[_a].CheckRequestSize(requestBuffer, request_len, &NdrCtx, &Ndr64Ctx);
|
BYTE isValid = (BYTE)_Actions[_a].CheckRequestSize(requestBuffer, request_len, &NdrCtx, &Ndr64Ctx);
|
||||||
if (rpcRequestHeader.PacketType != RPC_PT_REQUEST && !isValid) return;
|
if (rpcRequestHeader.PacketType != RPC_PT_REQUEST && !isValid) return;
|
||||||
|
|
||||||
// Unable to create a valid response from request
|
// Unable to create a valid response from request
|
||||||
@ -552,7 +553,7 @@ void rpcServer(const SOCKET sock, const DWORD RpcAssocGroup, const char* const i
|
|||||||
|
|
||||||
memcpy(rpcResponseHeader, &rpcRequestHeader, sizeof(RPC_HEADER));
|
memcpy(rpcResponseHeader, &rpcRequestHeader, sizeof(RPC_HEADER));
|
||||||
|
|
||||||
rpcResponseHeader->FragLength = LE16(response_len);
|
rpcResponseHeader->FragLength = LE16((WORD)response_len);
|
||||||
rpcResponseHeader->PacketType = _Actions[_a].ResponsePacketType;
|
rpcResponseHeader->PacketType = _Actions[_a].ResponsePacketType;
|
||||||
|
|
||||||
if (rpcResponseHeader->PacketType == RPC_PT_ALTERCONTEXT_ACK)
|
if (rpcResponseHeader->PacketType == RPC_PT_ALTERCONTEXT_ACK)
|
||||||
@ -710,7 +711,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
|||||||
RequestHeader = (RPC_HEADER*)_Request;
|
RequestHeader = (RPC_HEADER*)_Request;
|
||||||
RpcRequest = (RPC_REQUEST64*)(_Request + sizeof(RPC_HEADER));
|
RpcRequest = (RPC_REQUEST64*)(_Request + sizeof(RPC_HEADER));
|
||||||
|
|
||||||
createRpcRequestHeader(RequestHeader, RPC_PT_REQUEST, size);
|
createRpcRequestHeader(RequestHeader, RPC_PT_REQUEST, (WORD)size);
|
||||||
|
|
||||||
// Increment CallId for next Request
|
// Increment CallId for next Request
|
||||||
CallId++;
|
CallId++;
|
||||||
@ -720,7 +721,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
|||||||
if (useNdr64)
|
if (useNdr64)
|
||||||
{
|
{
|
||||||
RpcRequest->ContextId = LE16(1); // We negotiate NDR64 always as context 1
|
RpcRequest->ContextId = LE16(1); // We negotiate NDR64 always as context 1
|
||||||
RpcRequest->AllocHint = LE32(requestSize + sizeof(RpcRequest->Ndr64));
|
RpcRequest->AllocHint = LE32((DWORD)(requestSize + sizeof(RpcRequest->Ndr64)));
|
||||||
RpcRequest->Ndr64.DataLength = LE64((uint64_t)requestSize);
|
RpcRequest->Ndr64.DataLength = LE64((uint64_t)requestSize);
|
||||||
RpcRequest->Ndr64.DataSizeIs = LE64((uint64_t)requestSize);
|
RpcRequest->Ndr64.DataSizeIs = LE64((uint64_t)requestSize);
|
||||||
memcpy(RpcRequest->Ndr64.Data, KmsRequest, requestSize);
|
memcpy(RpcRequest->Ndr64.Data, KmsRequest, requestSize);
|
||||||
@ -728,9 +729,9 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
RpcRequest->ContextId = 0; // We negotiate NDR32 always as context 0
|
RpcRequest->ContextId = 0; // We negotiate NDR32 always as context 0
|
||||||
RpcRequest->AllocHint = LE32(requestSize + sizeof(RpcRequest->Ndr));
|
RpcRequest->AllocHint = LE32((DWORD)(requestSize + sizeof(RpcRequest->Ndr)));
|
||||||
RpcRequest->Ndr.DataLength = LE32(requestSize);
|
RpcRequest->Ndr.DataLength = LE32((DWORD)requestSize);
|
||||||
RpcRequest->Ndr.DataSizeIs = LE32(requestSize);
|
RpcRequest->Ndr.DataSizeIs = LE32((DWORD)requestSize);
|
||||||
memcpy(RpcRequest->Ndr.Data, KmsRequest, requestSize);
|
memcpy(RpcRequest->Ndr.Data, KmsRequest, requestSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -738,7 +739,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
|||||||
{
|
{
|
||||||
int bytesread;
|
int bytesread;
|
||||||
|
|
||||||
if (!_send(sock, _Request, size))
|
if (!_send(sock, _Request, (int)size))
|
||||||
{
|
{
|
||||||
printerrorf("\nFatal: Could not send RPC request\n");
|
printerrorf("\nFatal: Could not send RPC request\n");
|
||||||
status = RPC_S_COMM_FAILURE;
|
status = RPC_S_COMM_FAILURE;
|
||||||
@ -759,7 +760,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
|||||||
if (size > LE16(ResponseHeader.FragLength) - sizeof(ResponseHeader))
|
if (size > LE16(ResponseHeader.FragLength) - sizeof(ResponseHeader))
|
||||||
size = LE16(ResponseHeader.FragLength) - sizeof(ResponseHeader);
|
size = LE16(ResponseHeader.FragLength) - sizeof(ResponseHeader);
|
||||||
|
|
||||||
if (!_recv(sock, &_Response, size))
|
if (!_recv(sock, &_Response, (int)size))
|
||||||
{
|
{
|
||||||
printerrorf("\nFatal: RPC response is incomplete\n");
|
printerrorf("\nFatal: RPC response is incomplete\n");
|
||||||
status = RPC_S_COMM_FAILURE;
|
status = RPC_S_COMM_FAILURE;
|
||||||
@ -823,7 +824,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
|||||||
memset(*KmsResponse, 0, *responseSize + MAX_EXCESS_BYTES);
|
memset(*KmsResponse, 0, *responseSize + MAX_EXCESS_BYTES);
|
||||||
|
|
||||||
// Read up to 16 bytes more than bytes expected to detect faulty KMS emulators
|
// Read up to 16 bytes more than bytes expected to detect faulty KMS emulators
|
||||||
if ((bytesread = recv(sock, (char*)*KmsResponse, *responseSize + MAX_EXCESS_BYTES, 0)) < (int)*responseSize)
|
if ((bytesread = recv(sock, (char*)*KmsResponse, (int)(*responseSize) + MAX_EXCESS_BYTES, 0)) < (int)*responseSize)
|
||||||
{
|
{
|
||||||
printerrorf("\nFatal: No or incomplete KMS response received. Required %u bytes but only got %i\n",
|
printerrorf("\nFatal: No or incomplete KMS response received. Required %u bytes but only got %i\n",
|
||||||
(uint32_t)*responseSize,
|
(uint32_t)*responseSize,
|
||||||
@ -897,12 +898,12 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
|||||||
WORD ctxIndex = 0;
|
WORD ctxIndex = 0;
|
||||||
WORD i;
|
WORD i;
|
||||||
WORD CtxBTFN = (WORD)~0, CtxNDR64 = (WORD)~0;
|
WORD CtxBTFN = (WORD)~0, CtxNDR64 = (WORD)~0;
|
||||||
BYTE _Request[rpcBindSize];
|
BYTE* _Request = (BYTE*)alloca(rpcBindSize);
|
||||||
|
|
||||||
RequestHeader = (RPC_HEADER*)_Request;
|
RequestHeader = (RPC_HEADER*)_Request;
|
||||||
bindRequest = (RPC_BIND_REQUEST* )(_Request + sizeof(RPC_HEADER));
|
bindRequest = (RPC_BIND_REQUEST* )(_Request + sizeof(RPC_HEADER));
|
||||||
|
|
||||||
createRpcRequestHeader(RequestHeader, packetType, rpcBindSize);
|
createRpcRequestHeader(RequestHeader, packetType, (WORD)rpcBindSize);
|
||||||
RequestHeader->PacketFlags |= UseMultiplexedRpc ? RPC_PF_MULTIPLEX : 0;
|
RequestHeader->PacketFlags |= UseMultiplexedRpc ? RPC_PF_MULTIPLEX : 0;
|
||||||
|
|
||||||
bindRequest->AssocGroup = 0;
|
bindRequest->AssocGroup = 0;
|
||||||
@ -935,7 +936,7 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
|||||||
CtxBTFN = ctxIndex;
|
CtxBTFN = ctxIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_send(sock, _Request, rpcBindSize))
|
if (!_send(sock, _Request, (int)rpcBindSize))
|
||||||
{
|
{
|
||||||
printerrorf("\nFatal: Sending RPC bind request failed\n");
|
printerrorf("\nFatal: Sending RPC bind request failed\n");
|
||||||
return RPC_S_COMM_FAILURE;
|
return RPC_S_COMM_FAILURE;
|
||||||
|
12
rpc.h
12
rpc.h
@ -8,6 +8,15 @@
|
|||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
|
//#if _MSC_VER
|
||||||
|
//typedef signed char int_fast8_t;
|
||||||
|
//typedef unsigned char BYTE;
|
||||||
|
//typedef UINT_PTR size_t;
|
||||||
|
//typedef unsigned long DWORD;
|
||||||
|
//#define STDIN_FILENO 0
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
|
||||||
#if !defined(_WIN32) && !defined(__CYGWIN__)
|
#if !defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
#define RPC_S_OK 0
|
#define RPC_S_OK 0
|
||||||
#define RPC_S_INVALID_ARG 87
|
#define RPC_S_INVALID_ARG 87
|
||||||
@ -257,6 +266,7 @@ typedef struct {
|
|||||||
} /*__packed*/ RPC_RESPONSE64;
|
} /*__packed*/ RPC_RESPONSE64;
|
||||||
|
|
||||||
|
|
||||||
|
//#define RpcCtx SOCKET
|
||||||
typedef SOCKET RpcCtx;
|
typedef SOCKET RpcCtx;
|
||||||
typedef int RpcStatus;
|
typedef int RpcStatus;
|
||||||
|
|
||||||
@ -304,7 +314,7 @@ typedef union _RPC_FLAGS
|
|||||||
|
|
||||||
extern RPC_FLAGS RpcFlags;
|
extern RPC_FLAGS RpcFlags;
|
||||||
|
|
||||||
void rpcServer(const RpcCtx socket, const DWORD RpcAssocGroup, const char* const ipstr);
|
void rpcServer(const SOCKET sock, const DWORD RpcAssocGroup, const char* const ipstr);
|
||||||
RpcStatus rpcBindClient(const RpcCtx sock, const int_fast8_t verbose);
|
RpcStatus rpcBindClient(const RpcCtx sock, const int_fast8_t verbose);
|
||||||
RpcStatus rpcSendRequest(const RpcCtx socket, const BYTE *const KmsRequest, const size_t requestSize, BYTE **KmsResponse, size_t *const responseSize);
|
RpcStatus rpcSendRequest(const RpcCtx socket, const BYTE *const KmsRequest, const size_t requestSize, BYTE **KmsResponse, size_t *const responseSize);
|
||||||
|
|
||||||
|
@ -33,7 +33,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#if !_MSC_VER
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -45,7 +47,7 @@
|
|||||||
//#include <semaphore.h>
|
//#include <semaphore.h>
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
#define MAX_KMSAPPS 3
|
#define MAX_KMSAPPS 4
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
const char* Epid;
|
const char* Epid;
|
||||||
|
44
types.h
44
types.h
@ -1,6 +1,10 @@
|
|||||||
#ifndef __types_h
|
#ifndef __types_h
|
||||||
#define __types_h
|
#define __types_h
|
||||||
|
|
||||||
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG
|
#ifndef CONFIG
|
||||||
#define CONFIG "config.h"
|
#define CONFIG "config.h"
|
||||||
#endif // CONFIG
|
#endif // CONFIG
|
||||||
@ -57,11 +61,6 @@
|
|||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
#endif // alloca
|
#endif // alloca
|
||||||
|
|
||||||
#ifndef alloca
|
|
||||||
#if _MSC_VER
|
|
||||||
#define alloca _malloca
|
|
||||||
#endif // _MSC_VER
|
|
||||||
#endif // alloca
|
|
||||||
|
|
||||||
#ifndef alloca
|
#ifndef alloca
|
||||||
#ifdef __has_builtin // clang feature test
|
#ifdef __has_builtin // clang feature test
|
||||||
@ -72,8 +71,15 @@
|
|||||||
#endif // alloca
|
#endif // alloca
|
||||||
|
|
||||||
#ifndef alloca
|
#ifndef alloca
|
||||||
|
#if !_MSC_VER
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
#else
|
||||||
|
#include <malloc.h>
|
||||||
|
//#define alloca _malloca
|
||||||
#endif
|
#endif
|
||||||
|
//#define alloca _malloca
|
||||||
|
//#endif // _MSC_VER
|
||||||
|
#endif // alloca
|
||||||
|
|
||||||
#ifndef __packed
|
#ifndef __packed
|
||||||
#if _MSC_VER
|
#if _MSC_VER
|
||||||
@ -84,12 +90,20 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __pure
|
#ifndef __pure
|
||||||
|
#if _MSC_VER
|
||||||
|
#define __pure
|
||||||
|
#else
|
||||||
#define __pure __attribute__((pure))
|
#define __pure __attribute__((pure))
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __noreturn
|
#ifndef __noreturn
|
||||||
|
#if _MSC_VER
|
||||||
|
#define __noreturn __declspec(noreturn)
|
||||||
|
#else
|
||||||
#define __noreturn __attribute__((noreturn))
|
#define __noreturn __attribute__((noreturn))
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define restrict __restrict
|
#define restrict __restrict
|
||||||
|
|
||||||
@ -157,7 +171,7 @@ typedef uint8_t ProdListIndex_t;
|
|||||||
|
|
||||||
// Stupid MingW just uses rand() from msvcrt.dll which uses RAND_MAX of 0x7fff
|
// Stupid MingW just uses rand() from msvcrt.dll which uses RAND_MAX of 0x7fff
|
||||||
#if RAND_MAX < 0x7fffffff
|
#if RAND_MAX < 0x7fffffff
|
||||||
#define rand32(x) ((uint32_t)((rand(x) << 17) | (rand(x) << 2) | (rand(x) & 3)))
|
#define rand32() ((uint32_t)((rand() << 17) | (rand() << 2) | (rand() & 3)))
|
||||||
#elif RAND_MAX < 0xffffffff
|
#elif RAND_MAX < 0xffffffff
|
||||||
#define rand32(x) ((uint32_t)((rand(x) << 1) | (rand(x) & 1)))
|
#define rand32(x) ((uint32_t)((rand(x) << 1) | (rand(x) & 1)))
|
||||||
#else
|
#else
|
||||||
@ -285,11 +299,11 @@ typedef void* sockopt_t;
|
|||||||
#undef IsEqualGUID
|
#undef IsEqualGUID
|
||||||
#define IsEqualGUID(a, b) ( !memcmp(a, b, sizeof(GUID)) )
|
#define IsEqualGUID(a, b) ( !memcmp(a, b, sizeof(GUID)) )
|
||||||
|
|
||||||
#ifndef __stdcall
|
#if !defined(__stdcall) && !_MSC_VER
|
||||||
#define __stdcall
|
#define __stdcall
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __cdecl
|
#if !defined(__cdecl) && !_MSC_VER
|
||||||
#define __cdecl
|
#define __cdecl
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -301,4 +315,18 @@ typedef struct {
|
|||||||
} CLDATA, *const PCLDATA;
|
} CLDATA, *const PCLDATA;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define strcasecmp _stricmp
|
||||||
|
#define strncasecmp _strnicmp
|
||||||
|
#define vlmcsd_snprintf _snprintf
|
||||||
|
#define vlmcsd_vsnprintf _vsnprintf
|
||||||
|
#define vlmcsd_unlink DeleteFile
|
||||||
|
#define vlmcsd_strtoll strtol // TODO: Get some 64-bit strtoll
|
||||||
|
#else // !_MSC_VER
|
||||||
|
#define vlmcsd_snprintf snprintf
|
||||||
|
#define vlmcsd_vsnprintf vsnprintf
|
||||||
|
#define vlmcsd_strtoll strtoll
|
||||||
|
#define vlmcsd_unlink unlink
|
||||||
|
#endif // !_MSC_VER
|
||||||
|
|
||||||
#endif // __types_h
|
#endif // __types_h
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- Creator : groff version 1.22.3 -->
|
<!-- Creator : groff version 1.22.3 -->
|
||||||
<!-- CreationDate: Sat Aug 27 18:14:38 2016 -->
|
<!-- CreationDate: Thu Oct 6 01:17:00 2016 -->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
"http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
BIN
vlmcs.1.pdf
BIN
vlmcs.1.pdf
Binary file not shown.
66
vlmcs.c
66
vlmcs.c
@ -8,15 +8,24 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "vlmcs.h"
|
#include "vlmcs.h"
|
||||||
|
#if _MSC_VER
|
||||||
|
#include <Shlwapi.h>
|
||||||
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#if _MSC_VER
|
||||||
|
#include "wingetopt.h"
|
||||||
|
#else
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
#endif
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#ifndef _MSC_VER
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
@ -66,6 +75,7 @@ static int AddressFamily = AF_UNSPEC;
|
|||||||
static int_fast8_t incompatibleOptions = 0;
|
static int_fast8_t incompatibleOptions = 0;
|
||||||
static const char* fn_ini_client = NULL;
|
static const char* fn_ini_client = NULL;
|
||||||
static int_fast16_t kmsVersionMinor = 0;
|
static int_fast16_t kmsVersionMinor = 0;
|
||||||
|
static const char* ePidGroup[] = { "Windows", "Office2010", "Office2013", "Office2016" };
|
||||||
|
|
||||||
#ifndef NO_DNS
|
#ifndef NO_DNS
|
||||||
static int_fast8_t NoSrvRecordPriority = FALSE;
|
static int_fast8_t NoSrvRecordPriority = FALSE;
|
||||||
@ -84,7 +94,7 @@ typedef struct
|
|||||||
} LicensePack;
|
} LicensePack;
|
||||||
|
|
||||||
|
|
||||||
typedef char iniFileEpidLines[3][256];
|
typedef char iniFileEpidLines[4][256];
|
||||||
|
|
||||||
// Well known "license packs"
|
// Well known "license packs"
|
||||||
static const LicensePack LicensePackList[] =
|
static const LicensePack LicensePackList[] =
|
||||||
@ -300,7 +310,7 @@ __noreturn static void showProducts(PRINTFUNC p)
|
|||||||
|
|
||||||
for (currentProduct = ExtendedProductList; currentProduct->name; currentProduct++)
|
for (currentProduct = ExtendedProductList; currentProduct->name; currentProduct++)
|
||||||
{
|
{
|
||||||
uint_fast8_t len = strlen(currentProduct->name);
|
uint_fast8_t len = (uint_fast8_t)strlen(currentProduct->name);
|
||||||
|
|
||||||
if (len > longestString)
|
if (len > longestString)
|
||||||
longestString = len;
|
longestString = len;
|
||||||
@ -537,7 +547,7 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
|||||||
|
|
||||||
case 'i':
|
case 'i':
|
||||||
|
|
||||||
switch(getOptionArgumentInt(o, 4, 6))
|
switch(getOptionArgumentInt((char)o, 4, 6))
|
||||||
{
|
{
|
||||||
case 4:
|
case 4:
|
||||||
AddressFamily = AF_INET;
|
AddressFamily = AF_INET;
|
||||||
@ -563,13 +573,13 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
|||||||
case 'n': // Fixed number of Requests (regardless, whether they are required)
|
case 'n': // Fixed number of Requests (regardless, whether they are required)
|
||||||
|
|
||||||
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
||||||
FixedRequests = getOptionArgumentInt(o, 1, INT_MAX);
|
FixedRequests = getOptionArgumentInt((char)o, 1, INT_MAX);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'r': // Fake minimum required client count
|
case 'r': // Fake minimum required client count
|
||||||
|
|
||||||
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
||||||
ActiveLicensePack.N_Policy = getOptionArgumentInt(o, 0, INT_MAX);
|
ActiveLicensePack.N_Policy = getOptionArgumentInt((char)o, 0, INT_MAX);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'c': // use a specific client GUID
|
case 'c': // use a specific client GUID
|
||||||
@ -595,7 +605,7 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
|||||||
|
|
||||||
case 'g': // Set custom "grace" time in minutes (default 30 days)
|
case 'g': // Set custom "grace" time in minutes (default 30 days)
|
||||||
|
|
||||||
BindingExpiration = getOptionArgumentInt(o, 0, INT_MAX);
|
BindingExpiration = getOptionArgumentInt((char)o, 0, INT_MAX);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 's': // Set specfic SKU ID
|
case 's': // Set specfic SKU ID
|
||||||
@ -656,7 +666,7 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
|||||||
|
|
||||||
case 't':
|
case 't':
|
||||||
|
|
||||||
LicenseStatus = getOptionArgumentInt(o, 0, 0x7fffffff);
|
LicenseStatus = getOptionArgumentInt((char)o, 0, 0x7fffffff);
|
||||||
if ((unsigned int)LicenseStatus > 6) errorout("Warning: Correct license status is 0 <= license status <= 6.\n");
|
if ((unsigned int)LicenseStatus > 6) errorout("Warning: Correct license status is 0 <= license status <= 6.\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -912,13 +922,13 @@ int SendActivationRequest(const RpcCtx sock, RESPONSE *baseResponse, REQUEST *ba
|
|||||||
if (LE16(((RESPONSE*)(response))->MajorVer) == 4)
|
if (LE16(((RESPONSE*)(response))->MajorVer) == 4)
|
||||||
{
|
{
|
||||||
RESPONSE_V4 response_v4;
|
RESPONSE_V4 response_v4;
|
||||||
*result = DecryptResponseV4(&response_v4, responseSize, response, request);
|
*result = DecryptResponseV4(&response_v4, (const int)responseSize, response, request);
|
||||||
memcpy(baseResponse, &response_v4.ResponseBase, sizeof(RESPONSE));
|
memcpy(baseResponse, &response_v4.ResponseBase, sizeof(RESPONSE));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RESPONSE_V6 response_v6;
|
RESPONSE_V6 response_v6;
|
||||||
*result = DecryptResponseV6(&response_v6, responseSize, response, request, hwid);
|
*result = DecryptResponseV6(&response_v6, (int)responseSize, response, request, hwid);
|
||||||
memcpy(baseResponse, &response_v6.ResponseBase, sizeof(RESPONSE));
|
memcpy(baseResponse, &response_v6.ResponseBase, sizeof(RESPONSE));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -999,7 +1009,7 @@ static void newIniBackupFile(const char* const restrict fname)
|
|||||||
if (fclose(f))
|
if (fclose(f))
|
||||||
{
|
{
|
||||||
errorout("Fatal: Cannot write to %s: %s\n", fname, strerror(errno));
|
errorout("Fatal: Cannot write to %s: %s\n", fname, strerror(errno));
|
||||||
unlink(fname);
|
vlmcsd_unlink(fname);
|
||||||
exit(!0);
|
exit(!0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1008,7 +1018,9 @@ static void newIniBackupFile(const char* const restrict fname)
|
|||||||
static void updateIniFile(iniFileEpidLines* const restrict lines)
|
static void updateIniFile(iniFileEpidLines* const restrict lines)
|
||||||
{
|
{
|
||||||
int_fast8_t lineWritten[_countof(*lines)];
|
int_fast8_t lineWritten[_countof(*lines)];
|
||||||
|
# if !_MSC_VER
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
|
# endif
|
||||||
uint_fast8_t i;
|
uint_fast8_t i;
|
||||||
int_fast8_t iniFileExistedBefore = TRUE;
|
int_fast8_t iniFileExistedBefore = TRUE;
|
||||||
unsigned int lineNumber;
|
unsigned int lineNumber;
|
||||||
@ -1020,6 +1032,13 @@ static void updateIniFile(iniFileEpidLines* const restrict lines)
|
|||||||
strcpy(fn_bak, fn_ini_client);
|
strcpy(fn_bak, fn_ini_client);
|
||||||
strcat(fn_bak, "~");
|
strcat(fn_bak, "~");
|
||||||
|
|
||||||
|
# if _MSC_VER
|
||||||
|
if (!PathFileExists(fn_ini_client))
|
||||||
|
{
|
||||||
|
iniFileExistedBefore = FALSE;
|
||||||
|
newIniBackupFile(fn_bak);
|
||||||
|
}
|
||||||
|
# else
|
||||||
if (stat(fn_ini_client, &statbuf))
|
if (stat(fn_ini_client, &statbuf))
|
||||||
{
|
{
|
||||||
if (errno != ENOENT)
|
if (errno != ENOENT)
|
||||||
@ -1033,9 +1052,10 @@ static void updateIniFile(iniFileEpidLines* const restrict lines)
|
|||||||
newIniBackupFile(fn_bak);
|
newIniBackupFile(fn_bak);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
unlink(fn_bak); // Required for Windows. Most Unix systems don't need it.
|
vlmcsd_unlink(fn_bak); // Required for Windows. Most Unix systems don't need it.
|
||||||
if (rename(fn_ini_client, fn_bak))
|
if (rename(fn_ini_client, fn_bak))
|
||||||
{
|
{
|
||||||
errorout("Fatal: Cannot create %s: %s\n", fn_bak, strerror(errno));
|
errorout("Fatal: Cannot create %s: %s\n", fn_bak, strerror(errno));
|
||||||
@ -1069,7 +1089,7 @@ static void updateIniFile(iniFileEpidLines* const restrict lines)
|
|||||||
{
|
{
|
||||||
for (i = 0; i < _countof(*lines); i++)
|
for (i = 0; i < _countof(*lines); i++)
|
||||||
{
|
{
|
||||||
if (*(*lines)[i] && !strncasecmp(sourceLine, (*lines)[i], GUID_STRING_LENGTH))
|
if (*(*lines)[i] && !strncasecmp(sourceLine, (*lines)[i], strlen(ePidGroup[i])))
|
||||||
{
|
{
|
||||||
if (lineWritten[i]) break;
|
if (lineWritten[i]) break;
|
||||||
|
|
||||||
@ -1109,17 +1129,18 @@ static void updateIniFile(iniFileEpidLines* const restrict lines)
|
|||||||
exit(!0);
|
exit(!0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iniFileExistedBefore) unlink(fn_bak);
|
if (!iniFileExistedBefore) vlmcsd_unlink(fn_bak);
|
||||||
|
|
||||||
free(fn_bak);
|
free(fn_bak);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void grabServerData()
|
static void grabServerData()
|
||||||
{
|
{
|
||||||
RpcCtx s = INVALID_RPCCTX;
|
RpcCtx s = INVALID_RPCCTX;
|
||||||
WORD MajorVer = 6;
|
WORD MajorVer = 6;
|
||||||
iniFileEpidLines lines;
|
iniFileEpidLines lines;
|
||||||
int_fast8_t Licenses[_countof(lines)] = { 0, 15, 14 };
|
static int_fast8_t Licenses[_countof(lines)] = { 0, 16, 17, 19 };
|
||||||
uint_fast8_t i;
|
uint_fast8_t i;
|
||||||
RESPONSE response;
|
RESPONSE response;
|
||||||
RESPONSE_RESULT result;
|
RESPONSE_RESULT result;
|
||||||
@ -1152,29 +1173,26 @@ static void grabServerData()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%i of %i", (int)(i + 7 - MajorVer), (int)(9 - MajorVer));
|
printf("%i of %i", (int)(i + 7 - MajorVer), (int)(10 - MajorVer));
|
||||||
displayResponse(result, &request, &response, hwid);
|
displayResponse(result, &request, &response, hwid);
|
||||||
|
|
||||||
char guidBuffer[GUID_STRING_LENGTH + 1];
|
|
||||||
char ePID[3 * PID_BUFFER_SIZE];
|
char ePID[3 * PID_BUFFER_SIZE];
|
||||||
|
|
||||||
uuid2StringLE(&request.AppID, guidBuffer);
|
|
||||||
|
|
||||||
if (!ucs2_to_utf8(response.KmsPID, ePID, PID_BUFFER_SIZE, 3 * PID_BUFFER_SIZE))
|
if (!ucs2_to_utf8(response.KmsPID, ePID, PID_BUFFER_SIZE, 3 * PID_BUFFER_SIZE))
|
||||||
{
|
{
|
||||||
memset(ePID + 3 * PID_BUFFER_SIZE - 3, 0, 3);
|
memset(ePID + 3 * PID_BUFFER_SIZE - 3, 0, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
snprintf(lines[i], sizeof(lines[0]), "%s = %s", guidBuffer, ePID);
|
vlmcsd_snprintf(lines[i], sizeof(lines[0]), "%s = %s", ePidGroup[i], ePID);
|
||||||
|
|
||||||
if (response.MajorVer > 5)
|
if (response.MajorVer > 5)
|
||||||
{
|
{
|
||||||
len = strlen(lines[i]);
|
len = strlen(lines[i]);
|
||||||
snprintf (lines[i] + len, sizeof(lines[0]) - len, "/ %02X %02X %02X %02X %02X %02X %02X %02X", hwid[0], hwid[1], hwid[2], hwid[3], hwid[4], hwid[5], hwid[6], hwid[7]);
|
vlmcsd_snprintf (lines[i] + len, sizeof(lines[0]) - len, " / %02X %02X %02X %02X %02X %02X %02X %02X", hwid[0], hwid[1], hwid[2], hwid[3], hwid[4], hwid[5], hwid[6], hwid[7]);
|
||||||
}
|
}
|
||||||
|
|
||||||
len = strlen(lines[i]);
|
len = strlen(lines[i]);
|
||||||
snprintf(lines[i] + len, sizeof(lines[0]) - len, "\n");
|
vlmcsd_snprintf(lines[i] + len, sizeof(lines[0]) - len, "\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1190,7 +1208,7 @@ static void grabServerData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int client_main(const int argc, CARGV argv)
|
int client_main(int argc, CARGV argv)
|
||||||
{
|
{
|
||||||
#if defined(_WIN32) && !defined(USE_MSRPC)
|
#if defined(_WIN32) && !defined(USE_MSRPC)
|
||||||
|
|
||||||
@ -1356,10 +1374,10 @@ static void CreateRequestBase(REQUEST *Request)
|
|||||||
{
|
{
|
||||||
int len, len2;
|
int len, len2;
|
||||||
unsigned int index = rand() % _countof(ClientDnsNames.first);
|
unsigned int index = rand() % _countof(ClientDnsNames.first);
|
||||||
len = utf8_to_ucs2(Request->WorkstationName, ClientDnsNames.first[index], WORKSTATION_NAME_BUFFER, WORKSTATION_NAME_BUFFER * 3);
|
len = (int)utf8_to_ucs2(Request->WorkstationName, ClientDnsNames.first[index], WORKSTATION_NAME_BUFFER, WORKSTATION_NAME_BUFFER * 3);
|
||||||
|
|
||||||
index = rand() % _countof(ClientDnsNames.second);
|
index = rand() % _countof(ClientDnsNames.second);
|
||||||
len2 = utf8_to_ucs2(Request->WorkstationName + len, ClientDnsNames.second[index], WORKSTATION_NAME_BUFFER, WORKSTATION_NAME_BUFFER * 3);
|
len2 = (int)utf8_to_ucs2(Request->WorkstationName + len, ClientDnsNames.second[index], WORKSTATION_NAME_BUFFER, WORKSTATION_NAME_BUFFER * 3);
|
||||||
|
|
||||||
index = rand() % _countof(ClientDnsNames.tld);
|
index = rand() % _countof(ClientDnsNames.tld);
|
||||||
utf8_to_ucs2(Request->WorkstationName + len + len2, ClientDnsNames.tld[index], WORKSTATION_NAME_BUFFER, WORKSTATION_NAME_BUFFER * 3);
|
utf8_to_ucs2(Request->WorkstationName + len + len2, ClientDnsNames.tld[index], WORKSTATION_NAME_BUFFER, WORKSTATION_NAME_BUFFER * 3);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- Creator : groff version 1.22.3 -->
|
<!-- Creator : groff version 1.22.3 -->
|
||||||
<!-- CreationDate: Sat Aug 27 18:14:38 2016 -->
|
<!-- CreationDate: Thu Oct 6 01:17:00 2016 -->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
"http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
<!-- Creator : groff version 1.22.3 -->
|
<!-- Creator : groff version 1.22.3 -->
|
||||||
<!-- CreationDate: Sat Aug 27 18:14:38 2016 -->
|
<!-- CreationDate: Thu Oct 6 01:17:00 2016 -->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
"http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
BIN
vlmcsd.7.pdf
BIN
vlmcsd.7.pdf
Binary file not shown.
15
vlmcsd.8
15
vlmcsd.8
@ -1,5 +1,5 @@
|
|||||||
.mso www.tmac
|
.mso www.tmac
|
||||||
.TH VLMCSD 8 "July 2016" "Hotbird64" "KMS Activation Manual"
|
.TH VLMCSD 8 "September 2016" "Hotbird64" "KMS Activation Manual"
|
||||||
.LO 8
|
.LO 8
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
@ -135,7 +135,10 @@ Use \fIePID\fR as Windows ePID. If specified, \fB-r\fR is disregarded for Window
|
|||||||
Use \fIePID\fR as Office 2010 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2010.
|
Use \fIePID\fR as Office 2010 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2010.
|
||||||
|
|
||||||
.IP "\fB-3\fR \fIePID\fR"
|
.IP "\fB-3\fR \fIePID\fR"
|
||||||
Use \fIePID\fR as Office 2013/2016 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2013/2016.
|
Use \fIePID\fR as Office 2013 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2013.
|
||||||
|
|
||||||
|
.IP "\fB-6\fR \fIePID\fR"
|
||||||
|
Use \fIePID\fR as Office 2016 ePID (including Project and Visio). If specified, \fB-r\fR is disregarded for Office 2016.
|
||||||
|
|
||||||
.IP "\fB-H\fR \fIHwId\fR"
|
.IP "\fB-H\fR \fIHwId\fR"
|
||||||
Use \fIHwId\fR for all products. All HWIDs in the ini file (see \fB-i\fR) will not be used. In an ini file you can specify a seperate HWID for each \fIapplication-guid\fR. This is not possible when entering a HWID from the command line.
|
Use \fIHwId\fR for all products. All HWIDs in the ini file (see \fB-i\fR) will not be used. In an ini file you can specify a seperate HWID for each \fIapplication-guid\fR. This is not possible when entering a HWID from the command line.
|
||||||
@ -162,15 +165,15 @@ These options determine how ePIDs are generated if
|
|||||||
.br
|
.br
|
||||||
- the file specified by \fB-i\fR cannot be opened or
|
- the file specified by \fB-i\fR cannot be opened or
|
||||||
.br
|
.br
|
||||||
- the file specified by \fB-i\fR does not contain the \fIapplication-guid\fR for the KMS request
|
- the file specified by \fB-i\fR does not contain an ePID for the KMS request
|
||||||
|
|
||||||
\fB-r0\fR means there are no random ePIDs. vlmcsd simply issues default ePIDs that are built into the binary at compile time. \fBPro:\fR behaves like real KMS server that also always issues the same ePID. \fBCon\fR: Microsoft may start blacklisting again and the default ePID may not work any longer.
|
\fB-r0\fR means there are no random ePIDs. vlmcsd simply issues default ePIDs that are built into the binary at compile time. \fBPro:\fR behaves like real KMS server that also always issues the same ePID. \fBCon:\fR Microsoft may start blacklisting again and the default ePID may not work any longer.
|
||||||
|
|
||||||
\fB-r1\fR instructs vlmcsd to generate random ePIDs when the program starts or receives a SIGHUP signal and uses these ePIDs until it is stopped or receives another SIGHUP. Most other KMS emulators generate a new ePID on every KMS request. This is easily detectable. Microsoft could just modify sppsvc.exe in a way that it always sends two identical KMS requests in two RPC requests but over the same TCP connection. If both KMS responses contain the different ePIDs, the KMS server is not genuine. \fB-r1\fR is the default mode. \fB-r1\fR also ensures that all three ePIDs (Windows, Office 2010 and Office 2013) use the same OS build number and LCID (language id).
|
\fB-r1\fR instructs vlmcsd to generate random ePIDs when the program starts or receives a SIGHUP signal and uses these ePIDs until it is stopped or receives another SIGHUP. Most other KMS emulators generate a new ePID on every KMS request. This is easily detectable. Microsoft could just modify sppsvc.exe in a way that it always sends two identical KMS requests in two RPC requests but over the same TCP connection. If both KMS responses contain the different ePIDs, the KMS server is not genuine. \fB-r1\fR is the default mode. \fB-r1\fR also ensures that all three ePIDs (Windows, Office 2010 and Office 2013) use the same OS build number and LCID (language id).
|
||||||
|
|
||||||
If vlmcsd has been started by an internet superserver, \fB-r1\fR works identically to \fB-r2\fR. This is simply due to the fact that vlmcsd is started upon a connection request and does not stay in memory after servicing a KMS request.
|
If vlmcsd has been started by an internet superserver, \fB-r1\fR works almost identically to \fB-r2\fR. The only exception occurs if you send more than one activation request over the same TCP connection. This is simply due to the fact that vlmcsd is started upon a connection request and does not stay in memory after servicing a KMS request. Consider using \fB-r0\fR or \fB-w\fR, \fB-0\fR, \fB-3\fR and \fB-6\fB when starting vlmcsd by an internet superserver.
|
||||||
|
|
||||||
\fB-r2\fR behaves like most other KMS server emulators with random support and generates a new random ePID on every request. Use this mode with "care". However since Microsoft currently does not seem to do any verification of the ePID, you currently don't need to pay attention to ePIDs at all.
|
\fB-r2\fR behaves like most other KMS server emulators with random support and generates a new random ePID on every request. \fB-r2\fR should be treated as debugging option only because it allows very easy emulator detection.
|
||||||
|
|
||||||
.IP "\fB-C\fR \fILCID\fR"
|
.IP "\fB-C\fR \fILCID\fR"
|
||||||
Do not randomize the locale id part of the ePID and use \fILCID\fR instead. The \fILCID\fR must be specified as a decimal number, e.g. 1049 for "Russian - Russia". This option has no effect if the ePID is not randomized at all, e.g. if it is selected from the command line or an ini file.
|
Do not randomize the locale id part of the ePID and use \fILCID\fR instead. The \fILCID\fR must be specified as a decimal number, e.g. 1049 for "Russian - Russia". This option has no effect if the ePID is not randomized at all, e.g. if it is selected from the command line or an ini file.
|
||||||
|
@ -318,8 +318,13 @@ OPTIONS
|
|||||||
|
|
||||||
|
|
||||||
-3 ePID
|
-3 ePID
|
||||||
Use ePID as Office 2013/2016 ePID (including Project and Visio).
|
Use ePID as Office 2013 ePID (including Project and Visio). If
|
||||||
If specified, -r is disregarded for Office 2013/2016.
|
specified, -r is disregarded for Office 2013.
|
||||||
|
|
||||||
|
|
||||||
|
-6 ePID
|
||||||
|
Use ePID as Office 2016 ePID (including Project and Visio). If
|
||||||
|
specified, -r is disregarded for Office 2016.
|
||||||
|
|
||||||
|
|
||||||
-H HwId
|
-H HwId
|
||||||
@ -356,8 +361,8 @@ OPTIONS
|
|||||||
- you did not sprecify an ePID in the command line and
|
- you did not sprecify an ePID in the command line and
|
||||||
- you haven't used -i or
|
- you haven't used -i or
|
||||||
- the file specified by -i cannot be opened or
|
- the file specified by -i cannot be opened or
|
||||||
- the file specified by -i does not contain the application-guid
|
- the file specified by -i does not contain an ePID for the KMS
|
||||||
for the KMS request
|
request
|
||||||
|
|
||||||
-r0 means there are no random ePIDs. vlmcsd simply issues
|
-r0 means there are no random ePIDs. vlmcsd simply issues
|
||||||
default ePIDs that are built into the binary at compile time.
|
default ePIDs that are built into the binary at compile time.
|
||||||
@ -378,15 +383,17 @@ OPTIONS
|
|||||||
LCID (language id).
|
LCID (language id).
|
||||||
|
|
||||||
If vlmcsd has been started by an internet superserver, -r1 works
|
If vlmcsd has been started by an internet superserver, -r1 works
|
||||||
identically to -r2. This is simply due to the fact that vlmcsd
|
almost identically to -r2. The only exception occurs if you send
|
||||||
is started upon a connection request and does not stay in memory
|
more than one activation request over the same TCP connection.
|
||||||
after servicing a KMS request.
|
This is simply due to the fact that vlmcsd is started upon a
|
||||||
|
connection request and does not stay in memory after servicing a
|
||||||
|
KMS request. Consider using -r0 or -w, -0, -3 and -6 when start‐
|
||||||
|
ing vlmcsd by an internet superserver.
|
||||||
|
|
||||||
-r2 behaves like most other KMS server emulators with random
|
-r2 behaves like most other KMS server emulators with random
|
||||||
support and generates a new random ePID on every request. Use
|
support and generates a new random ePID on every request. -r2
|
||||||
this mode with "care". However since Microsoft currently does
|
should be treated as debugging option only because it allows
|
||||||
not seem to do any verification of the ePID, you currently don't
|
very easy emulator detection.
|
||||||
need to pay attention to ePIDs at all.
|
|
||||||
|
|
||||||
|
|
||||||
-C LCID
|
-C LCID
|
||||||
@ -605,4 +612,4 @@ SEE ALSO
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Hotbird64 July 2016 VLMCSD(8)
|
Hotbird64 September 2016 VLMCSD(8)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- Creator : groff version 1.22.3 -->
|
<!-- Creator : groff version 1.22.3 -->
|
||||||
<!-- CreationDate: Sat Aug 27 18:14:38 2016 -->
|
<!-- CreationDate: Thu Oct 6 01:17:00 2016 -->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
"http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
@ -502,9 +502,15 @@ is disregarded for Office 2010.</p>
|
|||||||
|
|
||||||
<p style="margin-left:11%;"><b>-3</b> <i>ePID</i></p>
|
<p style="margin-left:11%;"><b>-3</b> <i>ePID</i></p>
|
||||||
|
|
||||||
<p style="margin-left:22%;">Use <i>ePID</i> as Office
|
<p style="margin-left:22%;">Use <i>ePID</i> as Office 2013
|
||||||
2013/2016 ePID (including Project and Visio). If specified,
|
ePID (including Project and Visio). If specified, <b>-r</b>
|
||||||
<b>-r</b> is disregarded for Office 2013/2016.</p>
|
is disregarded for Office 2013.</p>
|
||||||
|
|
||||||
|
<p style="margin-left:11%;"><b>-6</b> <i>ePID</i></p>
|
||||||
|
|
||||||
|
<p style="margin-left:22%;">Use <i>ePID</i> as Office 2016
|
||||||
|
ePID (including Project and Visio). If specified, <b>-r</b>
|
||||||
|
is disregarded for Office 2016.</p>
|
||||||
|
|
||||||
<p style="margin-left:11%;"><b>-H</b> <i>HwId</i></p>
|
<p style="margin-left:11%;"><b>-H</b> <i>HwId</i></p>
|
||||||
|
|
||||||
@ -549,14 +555,14 @@ ePIDs are generated if</p>
|
|||||||
sprecify an ePID in the command line and <br>
|
sprecify an ePID in the command line and <br>
|
||||||
- you haven’t used <b>-i</b> or <br>
|
- you haven’t used <b>-i</b> or <br>
|
||||||
- the file specified by <b>-i</b> cannot be opened or <br>
|
- the file specified by <b>-i</b> cannot be opened or <br>
|
||||||
- the file specified by <b>-i</b> does not contain the
|
- the file specified by <b>-i</b> does not contain an ePID
|
||||||
<i>application-guid</i> for the KMS request</p>
|
for the KMS request</p>
|
||||||
|
|
||||||
<p style="margin-left:22%; margin-top: 1em"><b>-r0</b>
|
<p style="margin-left:22%; margin-top: 1em"><b>-r0</b>
|
||||||
means there are no random ePIDs. vlmcsd simply issues
|
means there are no random ePIDs. vlmcsd simply issues
|
||||||
default ePIDs that are built into the binary at compile
|
default ePIDs that are built into the binary at compile
|
||||||
time. <b>Pro:</b> behaves like real KMS server that also
|
time. <b>Pro:</b> behaves like real KMS server that also
|
||||||
always issues the same ePID. <b>Con</b>: Microsoft may start
|
always issues the same ePID. <b>Con:</b> Microsoft may start
|
||||||
blacklisting again and the default ePID may not work any
|
blacklisting again and the default ePID may not work any
|
||||||
longer.</p>
|
longer.</p>
|
||||||
|
|
||||||
@ -576,17 +582,19 @@ id).</p>
|
|||||||
|
|
||||||
<p style="margin-left:22%; margin-top: 1em">If vlmcsd has
|
<p style="margin-left:22%; margin-top: 1em">If vlmcsd has
|
||||||
been started by an internet superserver, <b>-r1</b> works
|
been started by an internet superserver, <b>-r1</b> works
|
||||||
identically to <b>-r2</b>. This is simply due to the fact
|
almost identically to <b>-r2</b>. The only exception occurs
|
||||||
that vlmcsd is started upon a connection request and does
|
if you send more than one activation request over the same
|
||||||
not stay in memory after servicing a KMS request.</p>
|
TCP connection. This is simply due to the fact that vlmcsd
|
||||||
|
is started upon a connection request and does not stay in
|
||||||
|
memory after servicing a KMS request. Consider using
|
||||||
|
<b>-r0</b> or <b>-w</b>, <b>-0</b>, <b>-3</b> and <b>-6 when
|
||||||
|
starting vlmcsd by an internet superserver.</b></p>
|
||||||
|
|
||||||
<p style="margin-left:22%; margin-top: 1em"><b>-r2</b>
|
<p style="margin-left:22%; margin-top: 1em"><b>-r2</b>
|
||||||
behaves like most other KMS server emulators with random
|
behaves like most other KMS server emulators with random
|
||||||
support and generates a new random ePID on every request.
|
support and generates a new random ePID on every request.
|
||||||
Use this mode with "care". However since Microsoft
|
<b>-r2</b> should be treated as debugging option only
|
||||||
currently does not seem to do any verification of the ePID,
|
because it allows very easy emulator detection.</p>
|
||||||
you currently don’t need to pay attention to ePIDs at
|
|
||||||
all.</p>
|
|
||||||
|
|
||||||
<p style="margin-left:11%;"><b>-C</b> <i>LCID</i></p>
|
<p style="margin-left:11%;"><b>-C</b> <i>LCID</i></p>
|
||||||
|
|
||||||
|
BIN
vlmcsd.8.pdf
BIN
vlmcsd.8.pdf
Binary file not shown.
@ -318,8 +318,13 @@ OPTIONS
|
|||||||
|
|
||||||
|
|
||||||
-3 ePID
|
-3 ePID
|
||||||
Use ePID as Office 2013/2016 ePID (including Project and Visio).
|
Use ePID as Office 2013 ePID (including Project and Visio). If
|
||||||
If specified, -r is disregarded for Office 2013/2016.
|
specified, -r is disregarded for Office 2013.
|
||||||
|
|
||||||
|
|
||||||
|
-6 ePID
|
||||||
|
Use ePID as Office 2016 ePID (including Project and Visio). If
|
||||||
|
specified, -r is disregarded for Office 2016.
|
||||||
|
|
||||||
|
|
||||||
-H HwId
|
-H HwId
|
||||||
@ -356,8 +361,8 @@ OPTIONS
|
|||||||
- you did not sprecify an ePID in the command line and
|
- you did not sprecify an ePID in the command line and
|
||||||
- you haven't used -i or
|
- you haven't used -i or
|
||||||
- the file specified by -i cannot be opened or
|
- the file specified by -i cannot be opened or
|
||||||
- the file specified by -i does not contain the application-guid
|
- the file specified by -i does not contain an ePID for the KMS
|
||||||
for the KMS request
|
request
|
||||||
|
|
||||||
-r0 means there are no random ePIDs. vlmcsd simply issues
|
-r0 means there are no random ePIDs. vlmcsd simply issues
|
||||||
default ePIDs that are built into the binary at compile time.
|
default ePIDs that are built into the binary at compile time.
|
||||||
@ -378,15 +383,17 @@ OPTIONS
|
|||||||
LCID (language id).
|
LCID (language id).
|
||||||
|
|
||||||
If vlmcsd has been started by an internet superserver, -r1 works
|
If vlmcsd has been started by an internet superserver, -r1 works
|
||||||
identically to -r2. This is simply due to the fact that vlmcsd
|
almost identically to -r2. The only exception occurs if you send
|
||||||
is started upon a connection request and does not stay in memory
|
more than one activation request over the same TCP connection.
|
||||||
after servicing a KMS request.
|
This is simply due to the fact that vlmcsd is started upon a
|
||||||
|
connection request and does not stay in memory after servicing a
|
||||||
|
KMS request. Consider using -r0 or -w, -0, -3 and -6 when start‐
|
||||||
|
ing vlmcsd by an internet superserver.
|
||||||
|
|
||||||
-r2 behaves like most other KMS server emulators with random
|
-r2 behaves like most other KMS server emulators with random
|
||||||
support and generates a new random ePID on every request. Use
|
support and generates a new random ePID on every request. -r2
|
||||||
this mode with "care". However since Microsoft currently does
|
should be treated as debugging option only because it allows
|
||||||
not seem to do any verification of the ePID, you currently don't
|
very easy emulator detection.
|
||||||
need to pay attention to ePIDs at all.
|
|
||||||
|
|
||||||
|
|
||||||
-C LCID
|
-C LCID
|
||||||
@ -605,4 +612,4 @@ SEE ALSO
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Hotbird64 July 2016 VLMCSD(8)
|
Hotbird64 September 2016 VLMCSD(8)
|
||||||
|
294
vlmcsd.c
294
vlmcsd.c
@ -1,3 +1,7 @@
|
|||||||
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG
|
#ifndef CONFIG
|
||||||
#define CONFIG "config.h"
|
#define CONFIG "config.h"
|
||||||
#endif // CONFIG
|
#endif // CONFIG
|
||||||
@ -25,6 +29,10 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#if _MSC_VER
|
||||||
|
#include "wingetopt.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
@ -72,7 +80,8 @@
|
|||||||
#include "ntservice.h"
|
#include "ntservice.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
|
|
||||||
static const char* const optstring = "N:B:m:t:w:0:3:H:A:R:u:g:L:p:i:P:l:r:U:W:C:F:o:T:SseDdVvqkZ";
|
static const char* const optstring = "N:B:m:t:w:0:3:6:H:A:R:u:g:L:p:i:P:l:r:U:W:C:F:o:T:SseDdVvqkZ";
|
||||||
|
|
||||||
|
|
||||||
#if !defined(NO_SOCKETS) && !defined(USE_MSRPC) && !defined(SIMPLE_SOCKETS)
|
#if !defined(NO_SOCKETS) && !defined(USE_MSRPC) && !defined(SIMPLE_SOCKETS)
|
||||||
static uint_fast8_t maxsockets = 0;
|
static uint_fast8_t maxsockets = 0;
|
||||||
@ -103,6 +112,10 @@ char* IniFileErrorBuffer = NULL;
|
|||||||
|
|
||||||
static IniFileParameter_t IniFileParameterList[] =
|
static IniFileParameter_t IniFileParameterList[] =
|
||||||
{
|
{
|
||||||
|
{ "Windows", INI_PARAM_WINDOWS },
|
||||||
|
{ "Office2010", INI_PARAM_OFFICE2010 },
|
||||||
|
{ "Office2013", INI_PARAM_OFFICE2013 },
|
||||||
|
{ "Office2016", INI_PARAM_OFFICE2016 },
|
||||||
# ifndef NO_RANDOM_EPID
|
# ifndef NO_RANDOM_EPID
|
||||||
{ "RandomizationLevel", INI_PARAM_RANDOMIZATION_LEVEL },
|
{ "RandomizationLevel", INI_PARAM_RANDOMIZATION_LEVEL },
|
||||||
{ "LCID", INI_PARAM_LCID },
|
{ "LCID", INI_PARAM_LCID },
|
||||||
@ -265,6 +278,7 @@ static __noreturn void usage()
|
|||||||
" -w <ePID> always use <ePID> for Windows\n"
|
" -w <ePID> always use <ePID> for Windows\n"
|
||||||
" -0 <ePID> always use <ePID> for Office2010\n"
|
" -0 <ePID> always use <ePID> for Office2010\n"
|
||||||
" -3 <ePID> always use <ePID> for Office2013\n"
|
" -3 <ePID> always use <ePID> for Office2013\n"
|
||||||
|
" -6 <ePID> always use <ePID> for Office2016\n"
|
||||||
" -H <HwId> always use hardware Id <HwId>\n"
|
" -H <HwId> always use hardware Id <HwId>\n"
|
||||||
#endif // NO_CL_PIDS
|
#endif // NO_CL_PIDS
|
||||||
#if !defined(_WIN32) && !defined(NO_USER_SWITCH)
|
#if !defined(_WIN32) && !defined(NO_USER_SWITCH)
|
||||||
@ -366,7 +380,7 @@ __pure static DWORD timeSpanString2Minutes(const char *const restrict argument)
|
|||||||
{
|
{
|
||||||
char *unitId;
|
char *unitId;
|
||||||
|
|
||||||
long long val = strtoll(argument, &unitId, 10);
|
long long val = vlmcsd_strtoll(argument, &unitId, 10);
|
||||||
|
|
||||||
switch (toupper((int)*unitId))
|
switch (toupper((int)*unitId))
|
||||||
{
|
{
|
||||||
@ -459,7 +473,7 @@ static BOOL getIniFileArgumentInt(unsigned int *result, const char *const argume
|
|||||||
|
|
||||||
if (!stringToInt(argument, min, max, &tempResult))
|
if (!stringToInt(argument, min, max, &tempResult))
|
||||||
{
|
{
|
||||||
snprintf(IniFileErrorBuffer, INIFILE_ERROR_BUFFERSIZE, "Must be integer between %u and %u", min, max);
|
vlmcsd_snprintf(IniFileErrorBuffer, INIFILE_ERROR_BUFFERSIZE, "Must be integer between %u and %u", min, max);
|
||||||
IniFileErrorMessage = IniFileErrorBuffer;
|
IniFileErrorMessage = IniFileErrorBuffer;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -477,13 +491,98 @@ static char* allocateStringArgument(const char *const argument)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static __pure int isControlCharOrSlash(const char c)
|
||||||
|
{
|
||||||
|
if ((unsigned char)c < '!') return !0;
|
||||||
|
if (c == '/') return !0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void iniFileLineNextWord(const char **s)
|
||||||
|
{
|
||||||
|
while (**s && isspace((int)**s)) (*s)++;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static BOOL setHwIdFromIniFileLine(const char **s, const ProdListIndex_t index)
|
||||||
|
{
|
||||||
|
iniFileLineNextWord(s);
|
||||||
|
|
||||||
|
if (**s == '/')
|
||||||
|
{
|
||||||
|
if (KmsResponseParameters[index].HwId) return TRUE;
|
||||||
|
|
||||||
|
BYTE* HwId = (BYTE*)vlmcsd_malloc(sizeof(((RESPONSE_V6 *)0)->HwId));
|
||||||
|
hex2bin(HwId, *s + 1, sizeof(((RESPONSE_V6 *)0)->HwId));
|
||||||
|
KmsResponseParameters[index].HwId = HwId;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static BOOL setEpidFromIniFileLine(const char **s, const ProdListIndex_t index)
|
||||||
|
{
|
||||||
|
iniFileLineNextWord(s);
|
||||||
|
const char *savedPosition = *s;
|
||||||
|
uint_fast16_t i;
|
||||||
|
|
||||||
|
for (i = 0; !isControlCharOrSlash(**s); i++)
|
||||||
|
{
|
||||||
|
if (utf8_to_ucs2_char((const unsigned char*)*s, (const unsigned char**)s) == (WCHAR)~0)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (i < 1 || i >= PID_BUFFER_SIZE) return FALSE;
|
||||||
|
if (KmsResponseParameters[index].Epid) return TRUE;
|
||||||
|
|
||||||
|
size_t size = *s - savedPosition + 1;
|
||||||
|
|
||||||
|
char* epidbuffer = (char*)vlmcsd_malloc(size);
|
||||||
|
memcpy(epidbuffer, savedPosition, size - 1);
|
||||||
|
epidbuffer[size - 1] = 0;
|
||||||
|
|
||||||
|
KmsResponseParameters[index].Epid = epidbuffer;
|
||||||
|
|
||||||
|
#ifndef NO_LOG
|
||||||
|
KmsResponseParameters[index].EpidSource = fn_ini;
|
||||||
|
#endif //NO_LOG
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static BOOL setIniFileParameter(uint_fast8_t id, const char *const iniarg)
|
static BOOL setIniFileParameter(uint_fast8_t id, const char *const iniarg)
|
||||||
{
|
{
|
||||||
unsigned int result;
|
unsigned int result;
|
||||||
BOOL success = TRUE;
|
BOOL success = TRUE;
|
||||||
|
const char *s = (const char*)iniarg;
|
||||||
|
|
||||||
switch (id)
|
switch (id)
|
||||||
{
|
{
|
||||||
|
case INI_PARAM_WINDOWS:
|
||||||
|
setEpidFromIniFileLine(&s, EPID_INDEX_WINDOWS);
|
||||||
|
setHwIdFromIniFileLine(&s, EPID_INDEX_WINDOWS);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case INI_PARAM_OFFICE2010:
|
||||||
|
setEpidFromIniFileLine(&s, EPID_INDEX_OFFICE2010);
|
||||||
|
setHwIdFromIniFileLine(&s, EPID_INDEX_OFFICE2010);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case INI_PARAM_OFFICE2013:
|
||||||
|
setEpidFromIniFileLine(&s, EPID_INDEX_OFFICE2013);
|
||||||
|
setHwIdFromIniFileLine(&s, EPID_INDEX_OFFICE2013);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case INI_PARAM_OFFICE2016:
|
||||||
|
setEpidFromIniFileLine(&s, EPID_INDEX_OFFICE2016);
|
||||||
|
setHwIdFromIniFileLine(&s, EPID_INDEX_OFFICE2016);
|
||||||
|
break;
|
||||||
|
|
||||||
# if !defined(NO_USER_SWITCH) && !defined(_WIN32)
|
# if !defined(NO_USER_SWITCH) && !defined(_WIN32)
|
||||||
|
|
||||||
case INI_PARAM_GID:
|
case INI_PARAM_GID:
|
||||||
@ -651,92 +750,6 @@ static BOOL setIniFileParameter(uint_fast8_t id, const char *const iniarg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static __pure int isControlCharOrSlash(const char c)
|
|
||||||
{
|
|
||||||
if ((unsigned char)c < '!') return !0;
|
|
||||||
if (c == '/') return !0;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void iniFileLineNextWord(const char **s)
|
|
||||||
{
|
|
||||||
while ( **s && isspace((int)**s) ) (*s)++;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static BOOL setHwIdFromIniFileLine(const char **s, const ProdListIndex_t index)
|
|
||||||
{
|
|
||||||
iniFileLineNextWord(s);
|
|
||||||
|
|
||||||
if (**s == '/')
|
|
||||||
{
|
|
||||||
if (KmsResponseParameters[index].HwId) return TRUE;
|
|
||||||
|
|
||||||
BYTE* HwId = (BYTE*)vlmcsd_malloc(sizeof(((RESPONSE_V6 *)0)->HwId));
|
|
||||||
hex2bin(HwId, *s + 1, sizeof(((RESPONSE_V6 *)0)->HwId));
|
|
||||||
KmsResponseParameters[index].HwId = HwId;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static BOOL checkGuidInIniFileLine(const char **s, ProdListIndex_t *const index)
|
|
||||||
{
|
|
||||||
GUID AppGuid;
|
|
||||||
|
|
||||||
if (!string2Uuid(*s, &AppGuid)) return FALSE;
|
|
||||||
|
|
||||||
(*s) += GUID_STRING_LENGTH;
|
|
||||||
getProductNameHE(&AppGuid, AppList, index);
|
|
||||||
|
|
||||||
if (*index > getAppListSize() - 2)
|
|
||||||
{
|
|
||||||
IniFileErrorMessage = "Unknown App Guid.";
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
iniFileLineNextWord(s);
|
|
||||||
if ( *(*s)++ != '=' ) return FALSE;
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static BOOL setEpidFromIniFileLine(const char **s, const ProdListIndex_t index)
|
|
||||||
{
|
|
||||||
iniFileLineNextWord(s);
|
|
||||||
const char *savedPosition = *s;
|
|
||||||
uint_fast16_t i;
|
|
||||||
|
|
||||||
for (i = 0; !isControlCharOrSlash(**s); i++)
|
|
||||||
{
|
|
||||||
if (utf8_to_ucs2_char((const unsigned char*)*s, (const unsigned char**)s) == (WCHAR)~0)
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i < 1 || i >= PID_BUFFER_SIZE) return FALSE;
|
|
||||||
if (KmsResponseParameters[index].Epid) return TRUE;
|
|
||||||
|
|
||||||
size_t size = *s - savedPosition + 1;
|
|
||||||
|
|
||||||
char* epidbuffer = (char*)vlmcsd_malloc(size);
|
|
||||||
memcpy(epidbuffer, savedPosition, size - 1);
|
|
||||||
epidbuffer[size - 1] = 0;
|
|
||||||
|
|
||||||
KmsResponseParameters[index].Epid = epidbuffer;
|
|
||||||
|
|
||||||
#ifndef NO_LOG
|
|
||||||
KmsResponseParameters[index].EpidSource = fn_ini;
|
|
||||||
#endif //NO_LOG
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static BOOL getIniFileArgument(const char **s)
|
static BOOL getIniFileArgument(const char **s)
|
||||||
{
|
{
|
||||||
while (!isspace((int)**s) && **s != '=' && **s) (*s)++;
|
while (!isspace((int)**s) && **s != '=' && **s) (*s)++;
|
||||||
@ -786,7 +799,7 @@ static BOOL setupListeningSocketsFromIniFile(const char *s)
|
|||||||
if (strncasecmp("Listen", s, 6)) return TRUE;
|
if (strncasecmp("Listen", s, 6)) return TRUE;
|
||||||
if (!getIniFileArgument(&s)) return TRUE;
|
if (!getIniFileArgument(&s)) return TRUE;
|
||||||
|
|
||||||
snprintf(IniFileErrorBuffer, INIFILE_ERROR_BUFFERSIZE, "Cannot listen on %s.", s);
|
vlmcsd_snprintf(IniFileErrorBuffer, INIFILE_ERROR_BUFFERSIZE, "Cannot listen on %s.", s);
|
||||||
IniFileErrorMessage = IniFileErrorBuffer;
|
IniFileErrorMessage = IniFileErrorBuffer;
|
||||||
return addListeningSocket(s);
|
return addListeningSocket(s);
|
||||||
}
|
}
|
||||||
@ -797,7 +810,6 @@ static BOOL readIniFile(const uint_fast8_t pass)
|
|||||||
{
|
{
|
||||||
char line[256];
|
char line[256];
|
||||||
const char *s;
|
const char *s;
|
||||||
ProdListIndex_t appIndex;
|
|
||||||
unsigned int lineNumber;
|
unsigned int lineNumber;
|
||||||
uint_fast8_t lineParseError;
|
uint_fast8_t lineParseError;
|
||||||
|
|
||||||
@ -821,9 +833,9 @@ static BOOL readIniFile(const uint_fast8_t pass)
|
|||||||
{
|
{
|
||||||
if (handleIniFileParameter(s)) continue;
|
if (handleIniFileParameter(s)) continue;
|
||||||
|
|
||||||
lineParseError = !checkGuidInIniFileLine(&s, &appIndex) ||
|
lineParseError = TRUE;/*!checkGuidInIniFileLine(&s, &appIndex) ||
|
||||||
!setEpidFromIniFileLine(&s, appIndex) ||
|
!setEpidFromIniFileLine(&s, appIndex) ||
|
||||||
!setHwIdFromIniFileLine(&s, appIndex);
|
!setHwIdFromIniFileLine(&s, appIndex);*/
|
||||||
}
|
}
|
||||||
# if !defined(NO_SOCKETS) && !defined(SIMPLE_SOCKETS) && !defined(USE_MSRPC)
|
# if !defined(NO_SOCKETS) && !defined(SIMPLE_SOCKETS) && !defined(USE_MSRPC)
|
||||||
else if (pass == INI_FILE_PASS_2)
|
else if (pass == INI_FILE_PASS_2)
|
||||||
@ -1070,7 +1082,7 @@ static void parseGeneralArguments() {
|
|||||||
BYTE* HwId;
|
BYTE* HwId;
|
||||||
#endif // NO_CL_PIDS
|
#endif // NO_CL_PIDS
|
||||||
|
|
||||||
for (opterr = 0; ( o = getopt(global_argc, (char* const*)global_argv, optstring) ) > 0; ) switch (o)
|
for (opterr = 0; (o = getopt(global_argc, (char* const*)global_argv, (const char*)optstring)) > 0; ) switch (o)
|
||||||
{
|
{
|
||||||
# if !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
|
# if !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
|
||||||
case 'Z':
|
case 'Z':
|
||||||
@ -1080,24 +1092,32 @@ static void parseGeneralArguments() {
|
|||||||
# endif // !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
|
# endif // !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
|
||||||
|
|
||||||
# ifndef NO_CL_PIDS
|
# ifndef NO_CL_PIDS
|
||||||
|
|
||||||
case 'w':
|
case 'w':
|
||||||
KmsResponseParameters[APP_ID_WINDOWS].Epid = getCommandLineArg(optarg);
|
KmsResponseParameters[EPID_INDEX_WINDOWS].Epid = getCommandLineArg(optarg);
|
||||||
# ifndef NO_LOG
|
# ifndef NO_LOG
|
||||||
KmsResponseParameters[APP_ID_WINDOWS].EpidSource = "command line";
|
KmsResponseParameters[EPID_INDEX_WINDOWS].EpidSource = "command line";
|
||||||
# endif // NO_LOG
|
# endif // NO_LOG
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '0':
|
case '0':
|
||||||
KmsResponseParameters[APP_ID_OFFICE2010].Epid = getCommandLineArg(optarg);
|
KmsResponseParameters[EPID_INDEX_OFFICE2010].Epid = getCommandLineArg(optarg);
|
||||||
# ifndef NO_LOG
|
# ifndef NO_LOG
|
||||||
KmsResponseParameters[APP_ID_OFFICE2010].EpidSource = "command line";
|
KmsResponseParameters[EPID_INDEX_OFFICE2010].EpidSource = "command line";
|
||||||
# endif // NO_LOG
|
# endif // NO_LOG
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '3':
|
case '3':
|
||||||
KmsResponseParameters[APP_ID_OFFICE2013].Epid = getCommandLineArg(optarg);
|
KmsResponseParameters[EPID_INDEX_OFFICE2013].Epid = getCommandLineArg(optarg);
|
||||||
# ifndef NO_LOG
|
# ifndef NO_LOG
|
||||||
KmsResponseParameters[APP_ID_OFFICE2013].EpidSource = "command line";
|
KmsResponseParameters[EPID_INDEX_OFFICE2013].EpidSource = "command line";
|
||||||
|
# endif // NO_LOG
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '6':
|
||||||
|
KmsResponseParameters[EPID_INDEX_OFFICE2016].Epid = getCommandLineArg(optarg);
|
||||||
|
# ifndef NO_LOG
|
||||||
|
KmsResponseParameters[EPID_INDEX_OFFICE2016].EpidSource = "command line";
|
||||||
# endif // NO_LOG
|
# endif // NO_LOG
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1106,10 +1126,12 @@ static void parseGeneralArguments() {
|
|||||||
|
|
||||||
hex2bin(HwId, optarg, sizeof(((RESPONSE_V6 *)0)->HwId));
|
hex2bin(HwId, optarg, sizeof(((RESPONSE_V6 *)0)->HwId));
|
||||||
|
|
||||||
KmsResponseParameters[APP_ID_WINDOWS].HwId = HwId;
|
KmsResponseParameters[EPID_INDEX_WINDOWS].HwId =
|
||||||
KmsResponseParameters[APP_ID_OFFICE2010].HwId = HwId;
|
KmsResponseParameters[EPID_INDEX_OFFICE2010].HwId =
|
||||||
KmsResponseParameters[APP_ID_OFFICE2013].HwId = HwId;
|
KmsResponseParameters[EPID_INDEX_OFFICE2013].HwId =
|
||||||
|
KmsResponseParameters[EPID_INDEX_OFFICE2016].HwId = HwId;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
# endif // NO_CL_PIDS
|
# endif // NO_CL_PIDS
|
||||||
|
|
||||||
# ifndef NO_SOCKETS
|
# ifndef NO_SOCKETS
|
||||||
@ -1129,7 +1151,7 @@ static void parseGeneralArguments() {
|
|||||||
# ifdef USE_MSRPC
|
# ifdef USE_MSRPC
|
||||||
MaxTasks = getOptionArgumentInt(o, 1, RPC_C_LISTEN_MAX_CALLS_DEFAULT);
|
MaxTasks = getOptionArgumentInt(o, 1, RPC_C_LISTEN_MAX_CALLS_DEFAULT);
|
||||||
# else // !USE_MSRPC
|
# else // !USE_MSRPC
|
||||||
MaxTasks = getOptionArgumentInt(o, 1, SEM_VALUE_MAX);
|
MaxTasks = getOptionArgumentInt((char)o, 1, SEM_VALUE_MAX);
|
||||||
# endif // !USE_MSRPC
|
# endif // !USE_MSRPC
|
||||||
ignoreIniFileParameter(INI_PARAM_MAX_WORKERS);
|
ignoreIniFileParameter(INI_PARAM_MAX_WORKERS);
|
||||||
break;
|
break;
|
||||||
@ -1139,7 +1161,7 @@ static void parseGeneralArguments() {
|
|||||||
|
|
||||||
# if !defined(NO_TIMEOUT) && !__minix__ && !defined(USE_MSRPC)
|
# if !defined(NO_TIMEOUT) && !__minix__ && !defined(USE_MSRPC)
|
||||||
case 't':
|
case 't':
|
||||||
ServerTimeout = getOptionArgumentInt(o, 1, 600);
|
ServerTimeout = getOptionArgumentInt((char)o, 1, 600);
|
||||||
ignoreIniFileParameter(INI_PARAM_CONNECTION_TIMEOUT);
|
ignoreIniFileParameter(INI_PARAM_CONNECTION_TIMEOUT);
|
||||||
break;
|
break;
|
||||||
# endif // !defined(NO_TIMEOUT) && !__minix__ && !defined(USE_MSRPC)
|
# endif // !defined(NO_TIMEOUT) && !__minix__ && !defined(USE_MSRPC)
|
||||||
@ -1183,7 +1205,7 @@ static void parseGeneralArguments() {
|
|||||||
# if !defined(NO_PRIVATE_IP_DETECT)
|
# if !defined(NO_PRIVATE_IP_DETECT)
|
||||||
case 'o':
|
case 'o':
|
||||||
ignoreIniFileParameter(INI_PARAM_PUBLIC_IP_PROTECTION_LEVEL);
|
ignoreIniFileParameter(INI_PARAM_PUBLIC_IP_PROTECTION_LEVEL);
|
||||||
PublicIPProtectionLevel = getOptionArgumentInt(o, 0, 3);
|
PublicIPProtectionLevel = getOptionArgumentInt((char)o, 0, 3);
|
||||||
|
|
||||||
# if !HAVE_GETIFADDR
|
# if !HAVE_GETIFADDR
|
||||||
if (PublicIPProtectionLevel & 1) usage();
|
if (PublicIPProtectionLevel & 1) usage();
|
||||||
@ -1248,12 +1270,12 @@ static void parseGeneralArguments() {
|
|||||||
|
|
||||||
# ifndef NO_RANDOM_EPID
|
# ifndef NO_RANDOM_EPID
|
||||||
case 'r':
|
case 'r':
|
||||||
RandomizationLevel = (int_fast8_t)getOptionArgumentInt(o, 0, 2);
|
RandomizationLevel = (int_fast8_t)getOptionArgumentInt((char)o, 0, 2);
|
||||||
ignoreIniFileParameter(INI_PARAM_RANDOMIZATION_LEVEL);
|
ignoreIniFileParameter(INI_PARAM_RANDOMIZATION_LEVEL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'C':
|
case 'C':
|
||||||
Lcid = (uint16_t)getOptionArgumentInt(o, 0, 32767);
|
Lcid = (uint16_t)getOptionArgumentInt((char)o, 0, 32767);
|
||||||
|
|
||||||
ignoreIniFileParameter(INI_PARAM_LCID);
|
ignoreIniFileParameter(INI_PARAM_LCID);
|
||||||
|
|
||||||
@ -1297,15 +1319,15 @@ static void parseGeneralArguments() {
|
|||||||
|
|
||||||
# ifndef NO_CUSTOM_INTERVALS
|
# ifndef NO_CUSTOM_INTERVALS
|
||||||
case 'R':
|
case 'R':
|
||||||
VLRenewalInterval = getTimeSpanFromCommandLine(optarg, o);
|
VLRenewalInterval = getTimeSpanFromCommandLine(optarg, (char)o);
|
||||||
ignoreIniFileParameter(INI_PARAM_RENEWAL_INTERVAL);
|
ignoreIniFileParameter(INI_PARAM_RENEWAL_INTERVAL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'A':
|
case 'A':
|
||||||
VLActivationInterval = getTimeSpanFromCommandLine(optarg, o);
|
VLActivationInterval = getTimeSpanFromCommandLine(optarg, (char)o);
|
||||||
ignoreIniFileParameter(INI_PARAM_ACTIVATION_INTERVAL);
|
ignoreIniFileParameter(INI_PARAM_ACTIVATION_INTERVAL);
|
||||||
break;
|
break;
|
||||||
#endif
|
# endif // NO_CUSTOM_INTERVALS
|
||||||
|
|
||||||
# ifndef USE_MSRPC
|
# ifndef USE_MSRPC
|
||||||
case 'd':
|
case 'd':
|
||||||
@ -1356,7 +1378,7 @@ static void parseGeneralArguments() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_PID_FILE
|
#if !defined(NO_PID_FILE)
|
||||||
static void writePidFile()
|
static void writePidFile()
|
||||||
{
|
{
|
||||||
# ifndef NO_SIGHUP
|
# ifndef NO_SIGHUP
|
||||||
@ -1369,7 +1391,11 @@ static void writePidFile()
|
|||||||
|
|
||||||
if (_f)
|
if (_f)
|
||||||
{
|
{
|
||||||
fprintf(_f, "%u", (uint32_t)getpid());
|
# if _MSC_VER
|
||||||
|
fprintf(_f, "%u", (unsigned int)GetCurrentProcessId());
|
||||||
|
# else
|
||||||
|
fprintf(_f, "%u", (unsigned int)getpid());
|
||||||
|
# endif
|
||||||
fclose(_f);
|
fclose(_f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1382,18 +1408,17 @@ static void writePidFile()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define writePidFile(x)
|
#define writePidFile()
|
||||||
#endif // NO_PID_FILE
|
#endif // !defined(NO_PID_FILE)
|
||||||
|
|
||||||
#if !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
#if !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
||||||
|
|
||||||
void cleanup()
|
void cleanup()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!InetdMode)
|
if (!InetdMode)
|
||||||
{
|
{
|
||||||
# ifndef NO_PID_FILE
|
# ifndef NO_PID_FILE
|
||||||
if (fn_pid) unlink(fn_pid);
|
if (fn_pid) vlmcsd_unlink(fn_pid);
|
||||||
# endif // NO_PID_FILE
|
# endif // NO_PID_FILE
|
||||||
closeAllListeningSockets();
|
closeAllListeningSockets();
|
||||||
|
|
||||||
@ -1412,7 +1437,6 @@ void cleanup()
|
|||||||
logger("vlmcsd %s was shutdown\n", Version);
|
logger("vlmcsd %s was shutdown\n", Version);
|
||||||
# endif // NO_LOG
|
# endif // NO_LOG
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(USE_MSRPC)
|
#elif defined(USE_MSRPC)
|
||||||
@ -1509,7 +1533,7 @@ int setupListeningSockets()
|
|||||||
{
|
{
|
||||||
int o;
|
int o;
|
||||||
# if HAVE_GETIFADDR
|
# if HAVE_GETIFADDR
|
||||||
char** privateIPList;
|
char** privateIPList = NULL;
|
||||||
int numPrivateIPs = 0;
|
int numPrivateIPs = 0;
|
||||||
if (PublicIPProtectionLevel & 1) getPrivateIPAddresses(&numPrivateIPs, &privateIPList);
|
if (PublicIPProtectionLevel & 1) getPrivateIPAddresses(&numPrivateIPs, &privateIPList);
|
||||||
uint_fast8_t allocsockets = maxsockets ? (maxsockets + numPrivateIPs) : ((PublicIPProtectionLevel & 1) ? numPrivateIPs : 2);
|
uint_fast8_t allocsockets = maxsockets ? (maxsockets + numPrivateIPs) : ((PublicIPProtectionLevel & 1) ? numPrivateIPs : 2);
|
||||||
@ -1525,7 +1549,7 @@ int setupListeningSockets()
|
|||||||
// Reset getopt since we've alread used it
|
// Reset getopt since we've alread used it
|
||||||
optReset();
|
optReset();
|
||||||
|
|
||||||
for (opterr = 0; ( o = getopt(global_argc, (char* const*)global_argv, optstring) ) > 0; ) switch (o)
|
for (opterr = 0; (o = getopt(global_argc, (char* const*)global_argv, (const char*)optstring)) > 0; ) switch (o)
|
||||||
{
|
{
|
||||||
case 'P':
|
case 'P':
|
||||||
defaultport = optarg;
|
defaultport = optarg;
|
||||||
@ -1593,17 +1617,13 @@ int setupListeningSockets()
|
|||||||
|
|
||||||
int server_main(int argc, CARGV argv)
|
int server_main(int argc, CARGV argv)
|
||||||
{
|
{
|
||||||
#if !defined(_NTSERVICE) && !defined(NO_SOCKETS)
|
|
||||||
int error;
|
|
||||||
#endif // !defined(_NTSERVICE) && !defined(NO_SOCKETS)
|
|
||||||
|
|
||||||
// Initialize ePID / HwId parameters
|
// Initialize ePID / HwId parameters
|
||||||
memset(KmsResponseParameters, 0, sizeof(KmsResponseParameters));
|
memset(KmsResponseParameters, 0, sizeof(KmsResponseParameters));
|
||||||
|
|
||||||
global_argc = argc;
|
global_argc = argc;
|
||||||
global_argv = argv;
|
global_argv = argv;
|
||||||
|
|
||||||
#ifdef _NTSERVICE // #endif is in newmain()
|
# ifdef _NTSERVICE
|
||||||
DWORD lasterror = ERROR_SUCCESS;
|
DWORD lasterror = ERROR_SUCCESS;
|
||||||
|
|
||||||
if (!StartServiceCtrlDispatcher(NTServiceDispatchTable) && (lasterror = GetLastError()) == ERROR_FAILED_SERVICE_CONTROLLER_CONNECT)
|
if (!StartServiceCtrlDispatcher(NTServiceDispatchTable) && (lasterror = GetLastError()) == ERROR_FAILED_SERVICE_CONTROLLER_CONNECT)
|
||||||
@ -1613,19 +1633,22 @@ int server_main(int argc, CARGV argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return lasterror;
|
return lasterror;
|
||||||
|
# else // !_NTSERVICE
|
||||||
|
return newmain();
|
||||||
|
# endif // !_NTSERVICE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int newmain()
|
int newmain()
|
||||||
{
|
{
|
||||||
int error;
|
|
||||||
|
|
||||||
// Initialize thread synchronization objects for Windows and Cygwin
|
// Initialize thread synchronization objects for Windows and Cygwin
|
||||||
# ifdef USE_THREADS
|
# ifdef USE_THREADS
|
||||||
|
|
||||||
# ifndef NO_LOG
|
# ifndef NO_LOG
|
||||||
// Initialize the Critical Section for proper logging
|
// Initialize the Critical Section for proper logging
|
||||||
|
# if _WIN32
|
||||||
InitializeCriticalSection(&logmutex);
|
InitializeCriticalSection(&logmutex);
|
||||||
|
# endif // _WIN32
|
||||||
# endif // NO_LOG
|
# endif // NO_LOG
|
||||||
|
|
||||||
# endif // USE_THREADS
|
# endif // USE_THREADS
|
||||||
@ -1633,14 +1656,16 @@ int newmain()
|
|||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
|
|
||||||
# ifndef USE_MSRPC
|
# ifndef USE_MSRPC
|
||||||
// Windows Sockets must be initialized
|
|
||||||
WSADATA wsadata;
|
WSADATA wsadata;
|
||||||
|
{
|
||||||
|
// Windows Sockets must be initialized
|
||||||
|
int error;
|
||||||
if ((error = WSAStartup(0x0202, &wsadata)))
|
if ((error = WSAStartup(0x0202, &wsadata)))
|
||||||
{
|
{
|
||||||
printerrorf("Fatal: Could not initialize Windows sockets (Error: %d).\n", error);
|
printerrorf("Fatal: Could not initialize Windows sockets (Error: %d).\n", error);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
# endif // USE_MSRPC
|
# endif // USE_MSRPC
|
||||||
|
|
||||||
// Windows can never daemonize
|
// Windows can never daemonize
|
||||||
@ -1649,10 +1674,11 @@ int newmain()
|
|||||||
# else // __CYGWIN__
|
# else // __CYGWIN__
|
||||||
|
|
||||||
// Do not daemonize if we are a Windows service
|
// Do not daemonize if we are a Windows service
|
||||||
|
# ifdef _NTSERVICE
|
||||||
if (IsNTService) nodaemon = 1;
|
if (IsNTService) nodaemon = 1;
|
||||||
|
# endif
|
||||||
|
|
||||||
# endif // _WIN32 / __CYGWIN__
|
# endif // _WIN32 / __CYGWIN__
|
||||||
#endif // _NTSERVICE ( #ifdef is main(int argc, CARGV argv) )
|
|
||||||
|
|
||||||
parseGeneralArguments(); // Does not return if an error occurs
|
parseGeneralArguments(); // Does not return if an error occurs
|
||||||
|
|
||||||
@ -1673,6 +1699,7 @@ int newmain()
|
|||||||
# endif // !defined(_WIN32) && !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
# endif // !defined(_WIN32) && !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
||||||
|
|
||||||
# ifndef NO_INI_FILE
|
# ifndef NO_INI_FILE
|
||||||
|
|
||||||
if (fn_ini && !readIniFile(INI_FILE_PASS_1))
|
if (fn_ini && !readIniFile(INI_FILE_PASS_1))
|
||||||
{
|
{
|
||||||
# ifdef INI_FILE
|
# ifdef INI_FILE
|
||||||
@ -1680,6 +1707,7 @@ int newmain()
|
|||||||
# endif // INI_FILE
|
# endif // INI_FILE
|
||||||
printerrorf("Warning: Can't read %s: %s\n", fn_ini, strerror(errno));
|
printerrorf("Warning: Can't read %s: %s\n", fn_ini, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
# endif // NO_INI_FILE
|
# endif // NO_INI_FILE
|
||||||
|
|
||||||
# if defined(USE_MSRPC) && !defined(NO_PRIVATE_IP_DETECT)
|
# if defined(USE_MSRPC) && !defined(NO_PRIVATE_IP_DETECT)
|
||||||
@ -1701,6 +1729,7 @@ int newmain()
|
|||||||
# if !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
# if !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
||||||
if (!InetdMode)
|
if (!InetdMode)
|
||||||
{
|
{
|
||||||
|
int error;
|
||||||
# ifdef SIMPLE_SOCKETS
|
# ifdef SIMPLE_SOCKETS
|
||||||
if ((error = listenOnAllAddresses())) return error;
|
if ((error = listenOnAllAddresses())) return error;
|
||||||
# else // !SIMPLE_SOCKETS
|
# else // !SIMPLE_SOCKETS
|
||||||
@ -1753,8 +1782,13 @@ int newmain()
|
|||||||
# if !defined(NO_SOCKETS)
|
# if !defined(NO_SOCKETS)
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
if (!IsNTService)
|
if (!IsNTService)
|
||||||
|
{
|
||||||
# endif // _WIN32
|
# endif // _WIN32
|
||||||
|
int error;
|
||||||
if ((error = daemonizeAndSetSignalAction())) return error;
|
if ((error = daemonizeAndSetSignalAction())) return error;
|
||||||
|
# ifdef _WIN32
|
||||||
|
}
|
||||||
|
# endif // _WIN32
|
||||||
# endif // !defined(NO_SOCKETS)
|
# endif // !defined(NO_SOCKETS)
|
||||||
|
|
||||||
writePidFile();
|
writePidFile();
|
||||||
|
6
vlmcsd.h
6
vlmcsd.h
@ -16,9 +16,7 @@ extern char *fn_log;
|
|||||||
//int main(int argc, CARGV);
|
//int main(int argc, CARGV);
|
||||||
extern void cleanup();
|
extern void cleanup();
|
||||||
|
|
||||||
#ifdef _NTSERVICE
|
|
||||||
int newmain();
|
int newmain();
|
||||||
#endif
|
|
||||||
|
|
||||||
#if MULTI_CALL_BINARY < 1
|
#if MULTI_CALL_BINARY < 1
|
||||||
#define server_main main
|
#define server_main main
|
||||||
@ -50,6 +48,10 @@ int server_main(int argc, CARGV argv);
|
|||||||
#define INI_PARAM_FREEBIND 17
|
#define INI_PARAM_FREEBIND 17
|
||||||
#define INI_PARAM_PUBLIC_IP_PROTECTION_LEVEL 18
|
#define INI_PARAM_PUBLIC_IP_PROTECTION_LEVEL 18
|
||||||
#define INI_PARAM_LOG_DATE_AND_TIME 19
|
#define INI_PARAM_LOG_DATE_AND_TIME 19
|
||||||
|
#define INI_PARAM_WINDOWS 20
|
||||||
|
#define INI_PARAM_OFFICE2010 21
|
||||||
|
#define INI_PARAM_OFFICE2013 22
|
||||||
|
#define INI_PARAM_OFFICE2016 23
|
||||||
|
|
||||||
#define INI_FILE_PASS_1 1
|
#define INI_FILE_PASS_1 1
|
||||||
#define INI_FILE_PASS_2 2
|
#define INI_FILE_PASS_2 2
|
||||||
|
11
vlmcsd.ini
11
vlmcsd.ini
@ -12,13 +12,16 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Set ePID/HwId for Windows explicitly
|
# Set ePID/HwId for Windows explicitly
|
||||||
;55c92734-d682-4d71-983e-d6ec3f16059f = 06401-00206-271-392041-03-1033-9600.0000-3622014 / 01 02 03 04 05 06 07 08
|
;Windows = 06401-00206-471-111111-03-1033-9600.0000-3622014 / 01 02 03 04 05 06 07 08
|
||||||
|
|
||||||
# Set ePID for Office 2010 (including Visio and Project) explicitly
|
# Set ePID for Office 2010 (including Visio and Project) explicitly
|
||||||
;59a52881-a989-479d-af46-f275c6370663 = 06401-00096-199-496023-03-1033-9600.0000-3622014
|
;Office2010 = 06401-00096-199-222222-03-1033-9600.0000-3622014
|
||||||
|
|
||||||
# Set ePID for Office 2013 (including Visio and Project) explicitly
|
# Set ePID/HwId for Office 2013 (including Visio and Project) explicitly
|
||||||
;0ff1ce15-a989-479d-af46-f275c6370663 = 06401-00206-234-409313-03-1033-9600.0000-3622014
|
;Office2013 = 06401-00206-234-333333-03-1033-9600.0000-3622014 / 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-9600.0000-3622014 / 01 02 03 04 05 06 07 08
|
||||||
|
|
||||||
# Use custom TCP port
|
# Use custom TCP port
|
||||||
# Command line: -P
|
# Command line: -P
|
||||||
|
28
vlmcsd.ini.5
28
vlmcsd.ini.5
@ -1,4 +1,4 @@
|
|||||||
.TH VLMCSD.INI 5 "July 2016" "Hotbird64" "KMS Activation Manual"
|
.TH VLMCSD.INI 5 "September 2016" "Hotbird64" "KMS Activation Manual"
|
||||||
.LO 8
|
.LO 8
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
@ -73,7 +73,7 @@ Can be TRUE or FALSE. Specifies whether you want to use the NDR64 transfer synta
|
|||||||
Can be TRUE or FALSE. Specifies whether you want to use bind time feature negotiation in RPC. See options \fB-b0\fR and \fB-b1\fR in \fBvlmcsd\fR(8). The default is TRUE.
|
Can be TRUE or FALSE. Specifies whether you want to use bind time feature negotiation in RPC. See options \fB-b0\fR and \fB-b1\fR in \fBvlmcsd\fR(8). The default is TRUE.
|
||||||
|
|
||||||
.IP "\fBRandomizationLevel\fR"
|
.IP "\fBRandomizationLevel\fR"
|
||||||
The \fIargument\fR must 0, 1 or 2. This specifies the ePID randomization level. See options \fB-r0\fR, \fB-r1\fR and \fB-r2\fR in \fBvlmcsd\fR(8). The default randomization level is 1.
|
The \fIargument\fR must 0, 1 or 2. This specifies the ePID randomization level. See options \fB-r0\fR, \fB-r1\fR and \fB-r2\fR in \fBvlmcsd\fR(8). The default randomization level is 1. A \fBRandomizationLevel\fR of 2 is not recommended and should be treated as a debugging level.
|
||||||
|
|
||||||
.IP "\fBLCID\fR"
|
.IP "\fBLCID\fR"
|
||||||
Use a specific culture id (LCID) even if the ePID is randomized. The \fIargument\fR must be a number between 1 and 32767. While any number in that range is valid, you should use an offcial LCID. A list of assigned LCIDs can be found at http://msdn.microsoft.com/en\-us/goglobal/bb964664.aspx. On the command line you control this setting with option \fB-C\fR.
|
Use a specific culture id (LCID) even if the ePID is randomized. The \fIargument\fR must be a number between 1 and 32767. While any number in that range is valid, you should use an offcial LCID. A list of assigned LCIDs can be found at http://msdn.microsoft.com/en\-us/goglobal/bb964664.aspx. On the command line you control this setting with option \fB-C\fR.
|
||||||
@ -111,24 +111,20 @@ Run vlmcsd as another, preferrably less privileged, user. The \fIargument\fR can
|
|||||||
.IP "\fBGroup\fR"
|
.IP "\fBGroup\fR"
|
||||||
Run vlmcsd as another, preferrably less privileged, group. The \fIargument\fR can be a group name or a numeric group id. You must have the required privileges (capabilities on Linux) to change the security context of a process without providing any credentials (a password in most cases). On most unixoid OSses 'root' is the only user who has these privileges in the default configuration. This setting is not available in the native Windows version of vlmcsd. See \fB-g\fR in \fBvlmcsd\fR(8). This setting cannot be changed on the fly by sending SIGHUP to vlmcsd.
|
Run vlmcsd as another, preferrably less privileged, group. The \fIargument\fR can be a group name or a numeric group id. You must have the required privileges (capabilities on Linux) to change the security context of a process without providing any credentials (a password in most cases). On most unixoid OSses 'root' is the only user who has these privileges in the default configuration. This setting is not available in the native Windows version of vlmcsd. See \fB-g\fR in \fBvlmcsd\fR(8). This setting cannot be changed on the fly by sending SIGHUP to vlmcsd.
|
||||||
|
|
||||||
.SH "SPECIAL KEYWORDS"
|
.IP "\fBWindows\fR"
|
||||||
Any valid GUID is being treated as a special \fBkeyword\fR in the ini file. It is used to select a specfic ePID and HwId for an application GUID. The \fIargument\fR has the form \fIePID\fR [ / \fIHwId\fR ]. KMS currently knows only 3 application GUIDs:
|
The \fIargument\fR has the form \fIePID\fR [ / \fIHwId\fR ]. Always use \fIePID\fR and \fIHwId\fR for Windows activations. If specified, \fBRandomizationLevel\fR for Windows activitations will be ignored.
|
||||||
|
|
||||||
55c92734\-d682\-4d71\-983e\-d6ec3f16059f\ (Windows)
|
.IP "\fBOffice2010\fR"
|
||||||
.br
|
The \fIargument\fR has the form \fIePID\fR [ / \fIHwId\fR ]. Always use \fIePID\fR and \fIHwId\fR for Office 2010 activations. If specified, \fBRandomizationLevel\fR for Office 2010 activitations will be ignored.
|
||||||
59a52881\-a989\-479d\-af46\-f275c6370663\ (Office 2010)
|
|
||||||
.br
|
|
||||||
0ff1ce15\-a989\-479d\-af46\-f275c6370663\ (Office 2013)
|
|
||||||
|
|
||||||
To use specific ePIDs for Windows, Office 2010 and Office 2013/2016 you could add the following lines to vlmcsd.ini:
|
.IP "\fBOffice2013\fR"
|
||||||
|
The \fIargument\fR has the form \fIePID\fR [ / \fIHwId\fR ]. Always use \fIePID\fR and \fIHwId\fR for Office 2013 activations. If specified, \fBRandomizationLevel\fR for Office 2013 activitations will be ignored.
|
||||||
|
|
||||||
.SM "55c92734\-d682\-4d71\-983e\-d6ec3f16059f\ =\ 55041\-00206\-184\-207146\-03\-1062\-6002.0000\-3322013"
|
.IP "\fBOffice2016\fR"
|
||||||
.br
|
The \fIargument\fR has the form \fIePID\fR [ / \fIHwId\fR ]. Always use \fIePID\fR and \fIHwId\fR for Office 2016 activations. If specified, \fBRandomizationLevel\fR for Office 2016 activitations will be ignored.
|
||||||
.SM "59a52881\-a989\-479d\-af46\-f275c6370663\ =\ 55041\-00096\-216\-598637\-03\-17418\-6002.0000\-3312013"
|
|
||||||
.br
|
|
||||||
.SM "0ff1ce15\-a989\-479d\-af46\-f275c6370663\ =\ 55041\-00206-234\-742099\-03\-9217\-6002.0000\-2942013"
|
|
||||||
|
|
||||||
The ePID is currently a comment only. You can specify any string up to 63 bytes. In Windows 7 Microsoft has blacklisted few ( < 10 ) ePIDs that were used in KMSv5 versions of the "ratiborus virtual machine". Microsoft has given up on blacklisting when KMS emulators appeared in the wild.
|
.SH "VALID EPIDS"
|
||||||
|
The ePID is currently a comment only. You can specify any string up to 63 bytes. In Windows 7 Microsoft has blacklisted few ( < 10 ) ePIDs that were used in KMSv5 versions of the "Ratiborus Virtual Machine". Microsoft has given up on blacklisting when KMS emulators appeared in the wild.
|
||||||
|
|
||||||
Even if you can use "Activated by cool hacker guys" as an ePID, you may wish to use ePIDs that cannot be detected as non-MS ePIDs. If you don't know how these "valid" ePIDs look like exactly, do not use GUIDS in vlmcsd.ini. vlmcsd provides internal mechanisms to generate valid ePIDs.
|
Even if you can use "Activated by cool hacker guys" as an ePID, you may wish to use ePIDs that cannot be detected as non-MS ePIDs. If you don't know how these "valid" ePIDs look like exactly, do not use GUIDS in vlmcsd.ini. vlmcsd provides internal mechanisms to generate valid ePIDs.
|
||||||
|
|
||||||
|
@ -138,7 +138,8 @@ KEYWORDS
|
|||||||
RandomizationLevel
|
RandomizationLevel
|
||||||
The argument must 0, 1 or 2. This specifies the ePID randomiza‐
|
The argument must 0, 1 or 2. This specifies the ePID randomiza‐
|
||||||
tion level. See options -r0, -r1 and -r2 in vlmcsd(8). The
|
tion level. See options -r0, -r1 and -r2 in vlmcsd(8). The
|
||||||
default randomization level is 1.
|
default randomization level is 1. A RandomizationLevel of 2 is
|
||||||
|
not recommended and should be treated as a debugging level.
|
||||||
|
|
||||||
|
|
||||||
LCID Use a specific culture id (LCID) even if the ePID is randomized.
|
LCID Use a specific culture id (LCID) even if the ePID is randomized.
|
||||||
@ -245,26 +246,34 @@ KEYWORDS
|
|||||||
changed on the fly by sending SIGHUP to vlmcsd.
|
changed on the fly by sending SIGHUP to vlmcsd.
|
||||||
|
|
||||||
|
|
||||||
SPECIAL KEYWORDS
|
Windows
|
||||||
Any valid GUID is being treated as a special keyword in the ini file.
|
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||||
It is used to select a specfic ePID and HwId for an application GUID.
|
HwId for Windows activations. If specified, RandomizationLevel
|
||||||
The argument has the form ePID [ / HwId ]. KMS currently knows only 3
|
for Windows activitations will be ignored.
|
||||||
application GUIDs:
|
|
||||||
|
|
||||||
55c92734-d682-4d71-983e-d6ec3f16059f (Windows)
|
|
||||||
59a52881-a989-479d-af46-f275c6370663 (Office 2010)
|
|
||||||
0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
|
|
||||||
|
|
||||||
To use specific ePIDs for Windows, Office 2010 and Office 2013/2016 you
|
Office2010
|
||||||
could add the following lines to vlmcsd.ini:
|
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||||
|
HwId for Office 2010 activations. If specified, Randomization‐
|
||||||
|
Level for Office 2010 activitations will be ignored.
|
||||||
|
|
||||||
55c92734-d682-4d71-983e-d6ec3f16059f = 55041-00206-184-207146-03-1062-6002.0000-3322013
|
|
||||||
59a52881-a989-479d-af46-f275c6370663 = 55041-00096-216-598637-03-17418-6002.0000-3312013
|
|
||||||
0ff1ce15-a989-479d-af46-f275c6370663 = 55041-00206-234-742099-03-9217-6002.0000-2942013
|
|
||||||
|
|
||||||
|
Office2013
|
||||||
|
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||||
|
HwId for Office 2013 activations. If specified, Randomization‐
|
||||||
|
Level for Office 2013 activitations will be ignored.
|
||||||
|
|
||||||
|
|
||||||
|
Office2016
|
||||||
|
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||||
|
HwId for Office 2016 activations. If specified, Randomization‐
|
||||||
|
Level for Office 2016 activitations will be ignored.
|
||||||
|
|
||||||
|
|
||||||
|
VALID EPIDS
|
||||||
The ePID is currently a comment only. You can specify any string up to
|
The ePID is currently a comment only. You can specify any string up to
|
||||||
63 bytes. In Windows 7 Microsoft has blacklisted few ( < 10 ) ePIDs
|
63 bytes. In Windows 7 Microsoft has blacklisted few ( < 10 ) ePIDs
|
||||||
that were used in KMSv5 versions of the "ratiborus virtual machine".
|
that were used in KMSv5 versions of the "Ratiborus Virtual Machine".
|
||||||
Microsoft has given up on blacklisting when KMS emulators appeared in
|
Microsoft has given up on blacklisting when KMS emulators appeared in
|
||||||
the wild.
|
the wild.
|
||||||
|
|
||||||
@ -303,4 +312,4 @@ SEE ALSO
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Hotbird64 July 2016 VLMCSD.INI(5)
|
Hotbird64 September 2016 VLMCSD.INI(5)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- Creator : groff version 1.22.3 -->
|
<!-- Creator : groff version 1.22.3 -->
|
||||||
<!-- CreationDate: Sat Aug 27 18:14:38 2016 -->
|
<!-- CreationDate: Thu Oct 6 01:17:00 2016 -->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
"http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
<a href="#DESCRIPTION">DESCRIPTION</a><br>
|
<a href="#DESCRIPTION">DESCRIPTION</a><br>
|
||||||
<a href="#SYNTAX">SYNTAX</a><br>
|
<a href="#SYNTAX">SYNTAX</a><br>
|
||||||
<a href="#KEYWORDS">KEYWORDS</a><br>
|
<a href="#KEYWORDS">KEYWORDS</a><br>
|
||||||
<a href="#SPECIAL KEYWORDS">SPECIAL KEYWORDS</a><br>
|
<a href="#VALID EPIDS">VALID EPIDS</a><br>
|
||||||
<a href="#FILES">FILES</a><br>
|
<a href="#FILES">FILES</a><br>
|
||||||
<a href="#AUTHOR">AUTHOR</a><br>
|
<a href="#AUTHOR">AUTHOR</a><br>
|
||||||
<a href="#CREDITS">CREDITS</a><br>
|
<a href="#CREDITS">CREDITS</a><br>
|
||||||
@ -246,7 +246,9 @@ RPC. See options <b>-b0</b> and <b>-b1</b> in
|
|||||||
<p style="margin-left:22%;">The <i>argument</i> must 0, 1
|
<p style="margin-left:22%;">The <i>argument</i> must 0, 1
|
||||||
or 2. This specifies the ePID randomization level. See
|
or 2. This specifies the ePID randomization level. See
|
||||||
options <b>-r0</b>, <b>-r1</b> and <b>-r2</b> in
|
options <b>-r0</b>, <b>-r1</b> and <b>-r2</b> in
|
||||||
<b>vlmcsd</b>(8). The default randomization level is 1.</p>
|
<b>vlmcsd</b>(8). The default randomization level is 1. A
|
||||||
|
<b>RandomizationLevel</b> of 2 is not recommended and should
|
||||||
|
be treated as a debugging level.</p>
|
||||||
|
|
||||||
<table width="100%" border="0" rules="none" frame="void"
|
<table width="100%" border="0" rules="none" frame="void"
|
||||||
cellspacing="0" cellpadding="0">
|
cellspacing="0" cellpadding="0">
|
||||||
@ -402,46 +404,48 @@ Windows version of vlmcsd. See <b>-g</b> in
|
|||||||
by sending SIGHUP to vlmcsd.</p></td></tr>
|
by sending SIGHUP to vlmcsd.</p></td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h2>SPECIAL KEYWORDS
|
<p style="margin-left:11%;"><b>Windows</b></p>
|
||||||
<a name="SPECIAL KEYWORDS"></a>
|
|
||||||
|
<p style="margin-left:22%;">The <i>argument</i> has the
|
||||||
|
form <i>ePID</i> [ / <i>HwId</i> ]. Always use <i>ePID</i>
|
||||||
|
and <i>HwId</i> for Windows activations. If specified,
|
||||||
|
<b>RandomizationLevel</b> for Windows activitations will be
|
||||||
|
ignored.</p>
|
||||||
|
|
||||||
|
<p style="margin-left:11%;"><b>Office2010</b></p>
|
||||||
|
|
||||||
|
<p style="margin-left:22%;">The <i>argument</i> has the
|
||||||
|
form <i>ePID</i> [ / <i>HwId</i> ]. Always use <i>ePID</i>
|
||||||
|
and <i>HwId</i> for Office 2010 activations. If specified,
|
||||||
|
<b>RandomizationLevel</b> for Office 2010 activitations will
|
||||||
|
be ignored.</p>
|
||||||
|
|
||||||
|
<p style="margin-left:11%;"><b>Office2013</b></p>
|
||||||
|
|
||||||
|
<p style="margin-left:22%;">The <i>argument</i> has the
|
||||||
|
form <i>ePID</i> [ / <i>HwId</i> ]. Always use <i>ePID</i>
|
||||||
|
and <i>HwId</i> for Office 2013 activations. If specified,
|
||||||
|
<b>RandomizationLevel</b> for Office 2013 activitations will
|
||||||
|
be ignored.</p>
|
||||||
|
|
||||||
|
<p style="margin-left:11%;"><b>Office2016</b></p>
|
||||||
|
|
||||||
|
<p style="margin-left:22%;">The <i>argument</i> has the
|
||||||
|
form <i>ePID</i> [ / <i>HwId</i> ]. Always use <i>ePID</i>
|
||||||
|
and <i>HwId</i> for Office 2016 activations. If specified,
|
||||||
|
<b>RandomizationLevel</b> for Office 2016 activitations will
|
||||||
|
be ignored.</p>
|
||||||
|
|
||||||
|
<h2>VALID EPIDS
|
||||||
|
<a name="VALID EPIDS"></a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
|
||||||
<p style="margin-left:11%; margin-top: 1em">Any valid GUID
|
|
||||||
is being treated as a special <b>keyword</b> in the ini
|
|
||||||
file. It is used to select a specfic ePID and HwId for an
|
|
||||||
application GUID. The <i>argument</i> has the form
|
|
||||||
<i>ePID</i> [ / <i>HwId</i> ]. KMS currently knows only 3
|
|
||||||
application GUIDs:</p>
|
|
||||||
|
|
||||||
|
|
||||||
<p style="margin-left:11%; margin-top: 1em">55c92734−d682−4d71−983e−d6ec3f16059f (Windows)
|
|
||||||
<br>
|
|
||||||
|
|
||||||
59a52881−a989−479d−af46−f275c6370663 (Office
|
|
||||||
2010) <br>
|
|
||||||
|
|
||||||
0ff1ce15−a989−479d−af46−f275c6370663 (Office
|
|
||||||
2013)</p>
|
|
||||||
|
|
||||||
<p style="margin-left:11%; margin-top: 1em">To use specific
|
|
||||||
ePIDs for Windows, Office 2010 and Office 2013/2016 you
|
|
||||||
could add the following lines to vlmcsd.ini:</p>
|
|
||||||
|
|
||||||
|
|
||||||
<p style="margin-left:11%; margin-top: 1em"><small>55c92734−d682−4d71−983e−d6ec3f16059f = 55041−00206−184−207146−03−1062−6002.0000−3322013
|
|
||||||
<br>
|
|
||||||
|
|
||||||
59a52881−a989−479d−af46−f275c6370663 = 55041−00096−216−598637−03−17418−6002.0000−3312013
|
|
||||||
<br>
|
|
||||||
|
|
||||||
0ff1ce15−a989−479d−af46−f275c6370663 = 55041−00206-234−742099−03−9217−6002.0000−2942013</small></p>
|
|
||||||
|
|
||||||
<p style="margin-left:11%; margin-top: 1em">The ePID is
|
<p style="margin-left:11%; margin-top: 1em">The ePID is
|
||||||
currently a comment only. You can specify any string up to
|
currently a comment only. You can specify any string up to
|
||||||
63 bytes. In Windows 7 Microsoft has blacklisted few ( <
|
63 bytes. In Windows 7 Microsoft has blacklisted few ( <
|
||||||
10 ) ePIDs that were used in KMSv5 versions of the
|
10 ) ePIDs that were used in KMSv5 versions of the
|
||||||
"ratiborus virtual machine". Microsoft has given
|
"Ratiborus Virtual Machine". Microsoft has given
|
||||||
up on blacklisting when KMS emulators appeared in the
|
up on blacklisting when KMS emulators appeared in the
|
||||||
wild.</p>
|
wild.</p>
|
||||||
|
|
||||||
|
BIN
vlmcsd.ini.5.pdf
BIN
vlmcsd.ini.5.pdf
Binary file not shown.
@ -138,7 +138,8 @@ KEYWORDS
|
|||||||
RandomizationLevel
|
RandomizationLevel
|
||||||
The argument must 0, 1 or 2. This specifies the ePID randomiza‐
|
The argument must 0, 1 or 2. This specifies the ePID randomiza‐
|
||||||
tion level. See options -r0, -r1 and -r2 in vlmcsd(8). The
|
tion level. See options -r0, -r1 and -r2 in vlmcsd(8). The
|
||||||
default randomization level is 1.
|
default randomization level is 1. A RandomizationLevel of 2 is
|
||||||
|
not recommended and should be treated as a debugging level.
|
||||||
|
|
||||||
|
|
||||||
LCID Use a specific culture id (LCID) even if the ePID is randomized.
|
LCID Use a specific culture id (LCID) even if the ePID is randomized.
|
||||||
@ -245,26 +246,34 @@ KEYWORDS
|
|||||||
changed on the fly by sending SIGHUP to vlmcsd.
|
changed on the fly by sending SIGHUP to vlmcsd.
|
||||||
|
|
||||||
|
|
||||||
SPECIAL KEYWORDS
|
Windows
|
||||||
Any valid GUID is being treated as a special keyword in the ini file.
|
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||||
It is used to select a specfic ePID and HwId for an application GUID.
|
HwId for Windows activations. If specified, RandomizationLevel
|
||||||
The argument has the form ePID [ / HwId ]. KMS currently knows only 3
|
for Windows activitations will be ignored.
|
||||||
application GUIDs:
|
|
||||||
|
|
||||||
55c92734-d682-4d71-983e-d6ec3f16059f (Windows)
|
|
||||||
59a52881-a989-479d-af46-f275c6370663 (Office 2010)
|
|
||||||
0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
|
|
||||||
|
|
||||||
To use specific ePIDs for Windows, Office 2010 and Office 2013/2016 you
|
Office2010
|
||||||
could add the following lines to vlmcsd.ini:
|
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||||
|
HwId for Office 2010 activations. If specified, Randomization‐
|
||||||
|
Level for Office 2010 activitations will be ignored.
|
||||||
|
|
||||||
55c92734-d682-4d71-983e-d6ec3f16059f = 55041-00206-184-207146-03-1062-6002.0000-3322013
|
|
||||||
59a52881-a989-479d-af46-f275c6370663 = 55041-00096-216-598637-03-17418-6002.0000-3312013
|
|
||||||
0ff1ce15-a989-479d-af46-f275c6370663 = 55041-00206-234-742099-03-9217-6002.0000-2942013
|
|
||||||
|
|
||||||
|
Office2013
|
||||||
|
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||||
|
HwId for Office 2013 activations. If specified, Randomization‐
|
||||||
|
Level for Office 2013 activitations will be ignored.
|
||||||
|
|
||||||
|
|
||||||
|
Office2016
|
||||||
|
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||||
|
HwId for Office 2016 activations. If specified, Randomization‐
|
||||||
|
Level for Office 2016 activitations will be ignored.
|
||||||
|
|
||||||
|
|
||||||
|
VALID EPIDS
|
||||||
The ePID is currently a comment only. You can specify any string up to
|
The ePID is currently a comment only. You can specify any string up to
|
||||||
63 bytes. In Windows 7 Microsoft has blacklisted few ( < 10 ) ePIDs
|
63 bytes. In Windows 7 Microsoft has blacklisted few ( < 10 ) ePIDs
|
||||||
that were used in KMSv5 versions of the "ratiborus virtual machine".
|
that were used in KMSv5 versions of the "Ratiborus Virtual Machine".
|
||||||
Microsoft has given up on blacklisting when KMS emulators appeared in
|
Microsoft has given up on blacklisting when KMS emulators appeared in
|
||||||
the wild.
|
the wild.
|
||||||
|
|
||||||
@ -303,4 +312,4 @@ SEE ALSO
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Hotbird64 July 2016 VLMCSD.INI(5)
|
Hotbird64 September 2016 VLMCSD.INI(5)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- Creator : groff version 1.22.3 -->
|
<!-- Creator : groff version 1.22.3 -->
|
||||||
<!-- CreationDate: Sat Aug 27 18:14:38 2016 -->
|
<!-- CreationDate: Thu Oct 6 01:17:00 2016 -->
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
"http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
Binary file not shown.
@ -1,5 +1,7 @@
|
|||||||
/* Multi-Call Binary for vlmcs and vlmcsd */
|
/* Multi-Call Binary for vlmcs and vlmcsd */
|
||||||
|
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
|
||||||
#ifndef CONFIG
|
#ifndef CONFIG
|
||||||
#define CONFIG "config.h"
|
#define CONFIG "config.h"
|
||||||
#endif // CONFIG
|
#endif // CONFIG
|
||||||
@ -9,9 +11,15 @@
|
|||||||
#error "Please define MULTI_CALL_BINARY=1 when compiling this file."
|
#error "Please define MULTI_CALL_BINARY=1 when compiling this file."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <libgen.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#if !_MSC_VER
|
||||||
|
#include <libgen.h>
|
||||||
|
#else // _MSC_VER
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "helpers.h"
|
||||||
|
#endif // _MSC_VER
|
||||||
|
|
||||||
#include "vlmcs.h"
|
#include "vlmcs.h"
|
||||||
#include "vlmcsd.h"
|
#include "vlmcsd.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
@ -24,6 +32,33 @@
|
|||||||
#define compare strcmp // for case-sensitive filesystems
|
#define compare strcmp // for case-sensitive filesystems
|
||||||
#endif // native Unix
|
#endif // native Unix
|
||||||
|
|
||||||
|
#if _MSC_VER
|
||||||
|
static char* basename(const char* fullname)
|
||||||
|
{
|
||||||
|
size_t len = strlen(fullname);
|
||||||
|
char* filename = (char*)vlmcsd_malloc(len + 1);
|
||||||
|
char* extension = (char*)vlmcsd_malloc(len + 1);
|
||||||
|
static char result[64];
|
||||||
|
|
||||||
|
_splitpath(fullname, NULL, NULL, filename, extension);
|
||||||
|
|
||||||
|
if (strlen(filename) + strlen(extension) > 63)
|
||||||
|
{
|
||||||
|
*result = 0;
|
||||||
|
goto finally;
|
||||||
|
}
|
||||||
|
|
||||||
|
strcpy(result, filename);
|
||||||
|
strcat(result, extension);
|
||||||
|
|
||||||
|
finally:
|
||||||
|
free(filename);
|
||||||
|
free(extension);
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
#endif // _MSC_VER
|
||||||
|
|
||||||
int main(int argc, CARGV argv)
|
int main(int argc, CARGV argv)
|
||||||
{
|
{
|
||||||
multi_argv = argv;
|
multi_argv = argv;
|
||||||
|
76
wingetopt.c
Normal file
76
wingetopt.c
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
POSIX getopt for Windows
|
||||||
|
|
||||||
|
AT&T Public License
|
||||||
|
|
||||||
|
Code given out at the 1985 UNIFORUM conference in Dallas.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
|
#include "wingetopt.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
#define EOF (-1)
|
||||||
|
#define ERR(s, c) if(opterr){\
|
||||||
|
char errbuf[2];\
|
||||||
|
errbuf[0] = c; errbuf[1] = '\n';\
|
||||||
|
fputs(argv[0], stderr);\
|
||||||
|
fputs(s, stderr);\
|
||||||
|
fputc(c, stderr);}
|
||||||
|
//(void) write(2, argv[0], (unsigned)strlen(argv[0]));\
|
||||||
|
//(void) write(2, s, (unsigned)strlen(s));\
|
||||||
|
//(void) write(2, errbuf, 2);}
|
||||||
|
|
||||||
|
int opterr = 1;
|
||||||
|
int optind = 1;
|
||||||
|
int optopt;
|
||||||
|
char *optarg;
|
||||||
|
|
||||||
|
int getopt(int argc, char * const argv[], const char *opts)
|
||||||
|
{
|
||||||
|
static int sp = 1;
|
||||||
|
register int c;
|
||||||
|
register char *cp;
|
||||||
|
|
||||||
|
if (sp == 1)
|
||||||
|
if (optind >= argc ||
|
||||||
|
argv[optind][0] != '-' || argv[optind][1] == '\0')
|
||||||
|
return(EOF);
|
||||||
|
else if (strcmp(argv[optind], "--") == 0) {
|
||||||
|
optind++;
|
||||||
|
return(EOF);
|
||||||
|
}
|
||||||
|
optopt = c = argv[optind][sp];
|
||||||
|
if (c == ':' || (cp = strchr(opts, c)) == NULL) {
|
||||||
|
ERR(": illegal option -- ", (char)c);
|
||||||
|
if (argv[optind][++sp] == '\0') {
|
||||||
|
optind++;
|
||||||
|
sp = 1;
|
||||||
|
}
|
||||||
|
return('?');
|
||||||
|
}
|
||||||
|
if (*++cp == ':') {
|
||||||
|
if (argv[optind][sp + 1] != '\0')
|
||||||
|
optarg = (char*)&argv[optind++][sp + 1];
|
||||||
|
else if (++optind >= argc) {
|
||||||
|
ERR(": option requires an argument -- ", (char)c);
|
||||||
|
sp = 1;
|
||||||
|
return('?');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
optarg = (char*)argv[optind++];
|
||||||
|
sp = 1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (argv[optind][++sp] == '\0') {
|
||||||
|
sp = 1;
|
||||||
|
optind++;
|
||||||
|
}
|
||||||
|
optarg = NULL;
|
||||||
|
}
|
||||||
|
return(c);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* __GNUC__ */
|
32
wingetopt.h
Normal file
32
wingetopt.h
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
POSIX getopt for Windows
|
||||||
|
|
||||||
|
AT&T Public License
|
||||||
|
|
||||||
|
Code given out at the 1985 UNIFORUM conference in Dallas.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _MSC_VER
|
||||||
|
#include <getopt.h>
|
||||||
|
#endif
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
|
#ifndef _WINGETOPT_H_
|
||||||
|
#define _WINGETOPT_H_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern int opterr;
|
||||||
|
extern int optind;
|
||||||
|
extern int optopt;
|
||||||
|
extern char *optarg;
|
||||||
|
extern int getopt(int argc, char * const argv[], const char *optstring);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _GETOPT_H_ */
|
||||||
|
#endif /* __GNUC__ */
|
Reference in New Issue
Block a user