mirror of
https://github.com/Wind4/vlmcsd.git
synced 2025-07-03 17:27:56 +08:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
cd488aeb85 | |||
28a50f7bba | |||
550df56794 | |||
5a29226593 | |||
c5e1a0a591 | |||
af593fc11b | |||
9bd3e9c470 | |||
b8fdaf9a6b | |||
fcbbc40d60 |
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "debian"]
|
||||
path = debian
|
||||
url = https://github.com/Wind4/vlmcsd-debian.git
|
18
GNUmakefile
18
GNUmakefile
@ -149,6 +149,7 @@ help:
|
||||
@echo "Options"
|
||||
@echo " CONFIG=<x> Compile <x> as instead of config.h."
|
||||
@echo " INI=<x> Compile $(BASE_PROGRAM_NAME) with default ini file <x>"
|
||||
@echo " DATA=<x> Compile $(BASE_PROGRAM_NAME) and $(BASE_CLIENT_NAME) with default KMS data file <x>"
|
||||
@echo " PROGRAM_NAME=<x> Use <x> as output file name for the KMS server. Defaults to vlmcsd."
|
||||
@echo " CLIENT_NAME=<x> Use <x> as output file name for the KMS client. Defaults to vlmcs."
|
||||
@echo " MULTI_NAME=<x> Use <x> as output file name for the multi-call binary. Defaults to vlmcsdmulti."
|
||||
@ -173,10 +174,6 @@ help:
|
||||
@echo " VERBOSE=1 Be verbose when making targets."
|
||||
@echo " VERBOSE=3 Show name of compiler."
|
||||
@echo " THREADS=1 Use threads instead of fork(). Automatically set for native Windows. Recommended for Cygwin."
|
||||
@echo " WINDOWS=<x> Use <x> as the default ePID for Windows (when using $(BASE_PROGRAM_NAME) with -r 0)."
|
||||
@echo " OFFICE2010=<x> Use <x> as the default ePID for Office2010 (when using $(BASE_PROGRAM_NAME) with -r 0)."
|
||||
@echo " OFFICE2013=<x> Use <x> as the default ePID for Office2013 (when using $(BASE_PROGRAM_NAME) with -r 0)."
|
||||
@echo " OFFICE2016=<x> Use <x> as the default ePID for Office2016 (when using $(BASE_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 " FEATURES=full Compile $(BASE_PROGRAM_NAME) with all features (default)."
|
||||
@echo " FEATURES=most Compile $(BASE_PROGRAM_NAME) without rarely used features."
|
||||
@ -187,11 +184,10 @@ help:
|
||||
@echo " FEATURES=fixedepids $(BASE_PROGRAM_NAME) only uses bultin internal ePIDs."
|
||||
@echo ""
|
||||
@echo "Useful CFLAGS to save memory when running $(BASE_PROGRAM_NAME) on very small embedded devices (finer control than FEATURES=)"
|
||||
@echo " -DNO_EXTENDED_PRODUCT_LIST Don't compile the detailed product list."
|
||||
@echo " -DNO_BASIC_PRODUCT_LIST Don't compile the basic product list."
|
||||
@echo " -DNO_STRICT_MODES Don't support enhanced emulator detection prevention."
|
||||
@echo " -DNO_CLIENT_LIST Don't support maintaining a client list (CMIDs)."
|
||||
@echo " -DNO_VERBOSE_LOG Don't support verbose logging. Removes -v option."
|
||||
@echo " -DNO_LOG Don't add support for logging. Implies -DNO_VERBOSE_LOG -DNO_EXTENDED_PRODUCT_LIST and -DNO_BASIC_PRODUCT_LIST."
|
||||
@echo " -DNO_LOG Don't add support for logging. Implies -DNO_VERBOSE_LOG."
|
||||
@echo " -DNO_RANDOM_EPID Don't support random ePIDs."
|
||||
@echo " -DNO_INI_FILE Don't support reading ePIDs/HWIDs from a file."
|
||||
@echo " -DNO_PID_FILE Don't support writing a PID file. Removes -p option."
|
||||
@ -200,15 +196,18 @@ help:
|
||||
@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_SOCKETS Don't support standalone operation. Requires an internet superserver to start $(BASE_PROGRAM_NAME)."
|
||||
@echo " -DSIMPLE_SOCKETS Don't support listening on explicit IP addresses. Always listens on all IP addresses."
|
||||
@echo " -DSIMPLE_SOCKETS Compile $(BASE_PROGRAM_NAME) with basic socket support only. Removes -L option."
|
||||
@echo " -DSIMPLE_RPC Don't support RPC with NDR64 and BTFN in $(BASE_PROGRAM_NAME) (but do in $(BASE_CLIENT_NAME)). Makes emulator detection easy."
|
||||
@echo " -DNO_TAP Compile $(BASE_PROGRAM_NAME) without VPN support (Windows and Cygwin only)."
|
||||
@echo " -DNO_CL_PIDS Don't support specifying ePIDs and HwId from the command line in $(BASE_PROGRAM_NAME)."
|
||||
@echo " -DNO_LIMIT Don't support limiting concurrent clients in $(BASE_PROGRAM_NAME)."
|
||||
@echo " -DNO_SIGHUP Don't support SIGHUP handling in $(BASE_PROGRAM_NAME)."
|
||||
@echo " -DNO_VERSION_INFORMATION Don't support displaying version information in $(BASE_PROGRAM_NAME) and $(BASE_CLIENT_NAME). Removes -V option."
|
||||
@echo " -DNO_PRIVATE_IP_DETECT Don't support protection against clients with public IP addresses in $(BASE_PROGRAM_NAME)"
|
||||
@echo " -DSIMPLE_SOCKETS Compile $(BASE_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 " -DNO_EXTERNAL_DATA Don't support loading an external database. Mutually exclusive with -DNO_INTERNAL_DATA"
|
||||
@echo " -DNO_INTERNAL_DATA Don't compile an internal database. Mutually exclusive with -DNO_EXTERNAL_DATA"
|
||||
@echo " -DUNSAFE_DATA_LOAD Don't check the KMS data file for integrity. Saves some bytes but is dangerous."
|
||||
@echo ""
|
||||
@echo "Troubleshooting options"
|
||||
@echo " CAT=1 Combine all sources in a single in-memory file and compile directly to target."
|
||||
@ -226,6 +225,7 @@ help:
|
||||
@echo " DNS_PARSER=internal Use $(BASE_CLIENT_NAME) internal DNS parsing routines. No effect on MingW (native Windows)."
|
||||
@echo ""
|
||||
@echo "Other useful CFLAGS"
|
||||
@echo " -DFULL_INTERNAL_DATA Embed full internal KMS data in $(BASE_PROGRAM_NAME)."
|
||||
@echo " -DSUPPORT_WINE Add code that the Windows version of $(BASE_PROGRAM_NAME) runs on Wine if MSRPC=1"
|
||||
@echo " -D_PEDANTIC Report rare error/warning conditions instead of silently ignoring them."
|
||||
@echo " -DINCLUDE_BETAS Include SKU / activation IDs for obsolete beta/preview products."
|
||||
|
@ -31,6 +31,12 @@
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" 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>
|
||||
@ -38,6 +44,13 @@
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" 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>
|
||||
@ -59,9 +72,15 @@
|
||||
<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|ARM'" 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|ARM'" 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)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
@ -75,6 +94,11 @@
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<TargetName>libkms32</TargetName>
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)..\bin\</OutDir>
|
||||
<TargetName>libkms64</TargetName>
|
||||
@ -91,6 +115,11 @@
|
||||
<TargetExt>.dll</TargetExt>
|
||||
<TargetName>$(ProjectName)32</TargetName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<TargetExt>.dll</TargetExt>
|
||||
<TargetName>$(ProjectName)32</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
@ -108,6 +137,24 @@
|
||||
<MinimumRequiredVersion />
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<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>
|
||||
</MinimumRequiredVersion>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
@ -165,6 +212,48 @@
|
||||
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<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>
|
||||
</MinimumRequiredVersion>
|
||||
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
|
0
VisualStudio/msvcrt.lib
Executable file → Normal file
0
VisualStudio/msvcrt.lib
Executable file → Normal file
0
VisualStudio/msvcrt64.lib
Executable file → Normal file
0
VisualStudio/msvcrt64.lib
Executable file → Normal file
@ -31,6 +31,12 @@
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" 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>
|
||||
@ -38,6 +44,13 @@
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" 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>
|
||||
@ -59,9 +72,15 @@
|
||||
<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|ARM'" 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|ARM'" 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)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
@ -74,6 +93,10 @@
|
||||
<TargetName>vlmcs-Windows-x86</TargetName>
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<TargetName>vlmcs-Windows-x86</TargetName>
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)..\bin\</OutDir>
|
||||
<TargetName>vlmcs-Windows-x64</TargetName>
|
||||
@ -85,6 +108,9 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
@ -101,6 +127,22 @@
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<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>
|
||||
@ -152,6 +194,46 @@
|
||||
<TerminalServerAware>true</TerminalServerAware>
|
||||
<SwapRunFromCD>true</SwapRunFromCD>
|
||||
<SwapRunFromNET>true</SwapRunFromNET>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<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>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
@ -191,6 +273,7 @@
|
||||
<SwapRunFromCD>true</SwapRunFromCD>
|
||||
<SwapRunFromNET>true</SwapRunFromNET>
|
||||
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
@ -200,6 +283,7 @@
|
||||
<ClCompile Include="..\..\src\endian.c" />
|
||||
<ClCompile Include="..\..\src\helpers.c" />
|
||||
<ClCompile Include="..\..\src\kms.c" />
|
||||
<ClCompile Include="..\..\src\kmsdata-full.c" />
|
||||
<ClCompile Include="..\..\src\network.c" />
|
||||
<ClCompile Include="..\..\src\output.c" />
|
||||
<ClCompile Include="..\..\src\rpc.c" />
|
||||
@ -216,6 +300,7 @@
|
||||
<ClInclude Include="..\..\src\endian.h" />
|
||||
<ClInclude Include="..\..\src\helpers.h" />
|
||||
<ClInclude Include="..\..\src\kms.h" />
|
||||
<ClInclude Include="..\..\src\kmsdata.h" />
|
||||
<ClInclude Include="..\..\src\network.h" />
|
||||
<ClInclude Include="..\..\src\output.h" />
|
||||
<ClInclude Include="..\..\src\rpc.h" />
|
||||
|
@ -51,6 +51,9 @@
|
||||
<ClCompile Include="..\..\src\wingetopt.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\kmsdata-full.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\src\config.h">
|
||||
@ -98,5 +101,8 @@
|
||||
<ClInclude Include="..\..\src\wingetopt.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\kmsdata.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
0
VisualStudio/vlmcsd.sln
Executable file → Normal file
0
VisualStudio/vlmcsd.sln
Executable file → Normal file
113
VisualStudio/vlmcsd/vlmcsd.vcxproj
Executable file → Normal file
113
VisualStudio/vlmcsd/vlmcsd.vcxproj
Executable file → Normal file
@ -27,6 +27,12 @@
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v141_xp</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
@ -35,7 +41,7 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
<PlatformToolset>v141_xp</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
@ -45,6 +51,13 @@
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" 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>
|
||||
@ -60,12 +73,18 @@
|
||||
<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|ARM'" Label="PropertySheets">
|
||||
<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|ARM'" Label="PropertySheets">
|
||||
<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>
|
||||
@ -81,6 +100,11 @@
|
||||
<TargetName>vlmcsd-Windows-x86</TargetName>
|
||||
<OutDir>$(SolutionDir)..\bin\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<TargetName>vlmcsd-Windows-x86</TargetName>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
@ -93,22 +117,38 @@
|
||||
</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>
|
||||
<AdditionalDependencies>Shlwapi.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>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<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>Shlwapi.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>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<WarningLevel>Level4</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>
|
||||
<DisableSpecificWarnings>4201;4200;4214;4706</DisableSpecificWarnings>
|
||||
</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>
|
||||
<AdditionalDependencies>Shlwapi.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>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
@ -141,12 +181,14 @@
|
||||
<PreprocessorDefinitions>_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);_CRYPTO_WINDOWS</PreprocessorDefinitions>
|
||||
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||
<CompileAsWinRT>false</CompileAsWinRT>
|
||||
<AssemblerOutput>All</AssemblerOutput>
|
||||
<UseUnicodeForAssemblerListing>false</UseUnicodeForAssemblerListing>
|
||||
</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>
|
||||
<AdditionalDependencies>$(SolutionDir)\msvcrt.lib;Shlwapi.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>
|
||||
@ -155,6 +197,57 @@
|
||||
<SwapRunFromNET>true</SwapRunFromNET>
|
||||
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<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>
|
||||
<AssemblerOutput>All</AssemblerOutput>
|
||||
<UseUnicodeForAssemblerListing>false</UseUnicodeForAssemblerListing>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<AdditionalDependencies>$(SolutionDir)\msvcrt.lib;Shlwapi.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>
|
||||
</ProgramDatabaseFile>
|
||||
<LargeAddressAware>true</LargeAddressAware>
|
||||
<TerminalServerAware>true</TerminalServerAware>
|
||||
<SwapRunFromCD>true</SwapRunFromCD>
|
||||
<SwapRunFromNET>true</SwapRunFromNET>
|
||||
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
@ -181,12 +274,14 @@
|
||||
<CompileAsManaged>false</CompileAsManaged>
|
||||
<TreatWarningAsError>false</TreatWarningAsError>
|
||||
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
|
||||
<AssemblerOutput>All</AssemblerOutput>
|
||||
<UseUnicodeForAssemblerListing>false</UseUnicodeForAssemblerListing>
|
||||
</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>
|
||||
<AdditionalDependencies>$(SolutionDir)\msvcrt64.lib;Shlwapi.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 />
|
||||
@ -195,6 +290,7 @@
|
||||
<TerminalServerAware>true</TerminalServerAware>
|
||||
<SwapRunFromCD>true</SwapRunFromCD>
|
||||
<SwapRunFromNET>true</SwapRunFromNET>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
@ -205,14 +301,17 @@
|
||||
<ClInclude Include="..\..\src\endian.h" />
|
||||
<ClInclude Include="..\..\src\helpers.h" />
|
||||
<ClInclude Include="..\..\src\kms.h" />
|
||||
<ClInclude Include="..\..\src\kmsdata.h" />
|
||||
<ClInclude Include="..\..\src\network.h" />
|
||||
<ClInclude Include="..\..\src\ntservice.h" />
|
||||
<ClInclude Include="..\..\src\output.h" />
|
||||
<ClInclude Include="..\..\src\rpc.h" />
|
||||
<ClInclude Include="..\..\src\shared_globals.h" />
|
||||
<ClInclude Include="..\..\src\tap-windows.h" />
|
||||
<ClInclude Include="..\..\src\types.h" />
|
||||
<ClInclude Include="..\..\src\vlmcsd.h" />
|
||||
<ClInclude Include="..\..\src\wingetopt.h" />
|
||||
<ClInclude Include="..\..\src\wintap.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\src\crypto.c" />
|
||||
@ -220,6 +319,7 @@
|
||||
<ClCompile Include="..\..\src\endian.c" />
|
||||
<ClCompile Include="..\..\src\helpers.c" />
|
||||
<ClCompile Include="..\..\src\kms.c" />
|
||||
<ClCompile Include="..\..\src\kmsdata.c" />
|
||||
<ClCompile Include="..\..\src\network.c" />
|
||||
<ClCompile Include="..\..\src\ntservice.c" />
|
||||
<ClCompile Include="..\..\src\output.c" />
|
||||
@ -227,6 +327,7 @@
|
||||
<ClCompile Include="..\..\src\shared_globals.c" />
|
||||
<ClCompile Include="..\..\src\vlmcsd.c" />
|
||||
<ClCompile Include="..\..\src\wingetopt.c" />
|
||||
<ClCompile Include="..\..\src\wintap.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
15
VisualStudio/vlmcsd/vlmcsd.vcxproj.filters
Executable file → Normal file
15
VisualStudio/vlmcsd/vlmcsd.vcxproj.filters
Executable file → Normal file
@ -60,6 +60,15 @@
|
||||
<ClInclude Include="..\..\src\wingetopt.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\kmsdata.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\tap-windows.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\wintap.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\src\crypto.c">
|
||||
@ -98,5 +107,11 @@
|
||||
<ClCompile Include="..\..\src\wingetopt.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\kmsdata.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\wintap.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
88
VisualStudio/vlmcsdmulti/vlmcsdmulti.vcxproj
Executable file → Normal file
88
VisualStudio/vlmcsdmulti/vlmcsdmulti.vcxproj
Executable file → Normal file
@ -31,6 +31,12 @@
|
||||
<PlatformToolset>v140_xp</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" 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>
|
||||
@ -38,6 +44,13 @@
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" 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>
|
||||
@ -59,9 +72,15 @@
|
||||
<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|ARM'" 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|ARM'" 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)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
@ -74,6 +93,10 @@
|
||||
<TargetName>vlmcsdmulti-Windows-x86</TargetName>
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<TargetName>vlmcsdmulti-Windows-x86</TargetName>
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>$(SolutionDir)..\bin\</OutDir>
|
||||
<TargetName>vlmcsdmulti-Windows-x64</TargetName>
|
||||
@ -85,6 +108,9 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
@ -101,6 +127,22 @@
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<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>
|
||||
@ -152,6 +194,46 @@
|
||||
<TerminalServerAware>true</TerminalServerAware>
|
||||
<SwapRunFromCD>true</SwapRunFromCD>
|
||||
<SwapRunFromNET>true</SwapRunFromNET>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<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>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
@ -190,6 +272,7 @@
|
||||
<SwapRunFromCD>true</SwapRunFromCD>
|
||||
<SwapRunFromNET>true</SwapRunFromNET>
|
||||
<MinimumRequiredVersion>5.02</MinimumRequiredVersion>
|
||||
<EntryPointSymbol>WinStartUp</EntryPointSymbol>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
@ -199,6 +282,7 @@
|
||||
<ClCompile Include="..\..\src\endian.c" />
|
||||
<ClCompile Include="..\..\src\helpers.c" />
|
||||
<ClCompile Include="..\..\src\kms.c" />
|
||||
<ClCompile Include="..\..\src\kmsdata-full.c" />
|
||||
<ClCompile Include="..\..\src\network.c" />
|
||||
<ClCompile Include="..\..\src\ntservice.c" />
|
||||
<ClCompile Include="..\..\src\output.c" />
|
||||
@ -208,6 +292,7 @@
|
||||
<ClCompile Include="..\..\src\vlmcsd.c" />
|
||||
<ClCompile Include="..\..\src\vlmcsdmulti.c" />
|
||||
<ClCompile Include="..\..\src\wingetopt.c" />
|
||||
<ClCompile Include="..\..\src\wintap.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\src\config.h" />
|
||||
@ -217,15 +302,18 @@
|
||||
<ClInclude Include="..\..\src\endian.h" />
|
||||
<ClInclude Include="..\..\src\helpers.h" />
|
||||
<ClInclude Include="..\..\src\kms.h" />
|
||||
<ClInclude Include="..\..\src\kmsdata.h" />
|
||||
<ClInclude Include="..\..\src\network.h" />
|
||||
<ClInclude Include="..\..\src\ntservice.h" />
|
||||
<ClInclude Include="..\..\src\output.h" />
|
||||
<ClInclude Include="..\..\src\rpc.h" />
|
||||
<ClInclude Include="..\..\src\shared_globals.h" />
|
||||
<ClInclude Include="..\..\src\tap-windows.h" />
|
||||
<ClInclude Include="..\..\src\types.h" />
|
||||
<ClInclude Include="..\..\src\vlmcs.h" />
|
||||
<ClInclude Include="..\..\src\vlmcsd.h" />
|
||||
<ClInclude Include="..\..\src\wingetopt.h" />
|
||||
<ClInclude Include="..\..\src\wintap.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
|
15
VisualStudio/vlmcsdmulti/vlmcsdmulti.vcxproj.filters
Executable file → Normal file
15
VisualStudio/vlmcsdmulti/vlmcsdmulti.vcxproj.filters
Executable file → Normal file
@ -60,6 +60,12 @@
|
||||
<ClCompile Include="..\..\src\vlmcsdmulti.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\kmsdata-full.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\wintap.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\src\config.h">
|
||||
@ -110,5 +116,14 @@
|
||||
<ClInclude Include="..\..\src\vlmcsd.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\kmsdata.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\tap-windows.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\wintap.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
4
bin/.gitignore
vendored
Normal file
4
bin/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
4
build/.gitignore
vendored
Normal file
4
build/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
File diff suppressed because it is too large
Load Diff
1
debian
Submodule
1
debian
Submodule
Submodule debian added at 8b03b141ee
@ -12,16 +12,28 @@
|
||||
#
|
||||
|
||||
# Set ePID/HwId for Windows explicitly
|
||||
;Windows = 06401-00206-471-111111-03-1033-9600.0000-3622014 / 01 02 03 04 05 06 07 08
|
||||
;Windows = 06401-00206-471-111111-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08
|
||||
|
||||
# Set ePID for Office 2010 (including Visio and Project) explicitly
|
||||
;Office2010 = 06401-00096-199-222222-03-1033-9600.0000-3622014
|
||||
;Office2010 = 06401-00096-199-222222-03-1033-17763.0000-2822018
|
||||
|
||||
# Set ePID/HwId for Office 2013 (including Visio and Project) explicitly
|
||||
;Office2013 = 06401-00206-234-333333-03-1033-9600.0000-3622014 / 01 02 03 04 05 06 07 08
|
||||
;Office2013 = 06401-00206-234-333333-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08
|
||||
|
||||
# Set ePID/HwId for Office 2016 (including Visio and Project) explicitly
|
||||
;Office2016 = 06401-00206-437-444444-03-1033-9600.0000-3622014 / 01 02 03 04 05 06 07 08
|
||||
;Office2016 = 06401-00206-437-444444-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08
|
||||
|
||||
# Set ePID/HwId for Office 2019 (including Visio and Project) explicitly
|
||||
;Office2019 = 06401-00206-666-666666-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08
|
||||
|
||||
# Set ePID/HwId for Windows China Government (Enterprise G/GN) explicitly
|
||||
;WinChinaGov = 06401-03858-000-555555-03-1033-17763.0000-2822018 / 01 02 03 04 05 06 07 08
|
||||
|
||||
# Use a compatible VPN device to create a hidden local IPv4 address
|
||||
# Command line: -O
|
||||
# VPN = <VPN adapter name>[=<IPv4 address>][/<CIDR mask>][:<DHCP lease duration>]
|
||||
# Use VPN adapter "KMS Mirror" give it IP address 192.168.123.100 with a lease duration of one day and make entire 192.168.128.x a hidden local IPv4 address.
|
||||
;VPN = KMS Mirror=192.168.123.100/24:1d
|
||||
|
||||
# Use custom TCP port
|
||||
# Command line: -P
|
||||
@ -50,6 +62,10 @@
|
||||
# Command line: -r
|
||||
;RandomizationLevel = 1
|
||||
|
||||
# Use a specific host build in ePIDs even if the ePID is randomized
|
||||
# Command line: -H
|
||||
;HostBuild = 17763
|
||||
|
||||
# Use a specific culture (1033 = English US) in ePIDs even if the ePID is randomized
|
||||
# Command line: -C
|
||||
;LCID = 1033
|
||||
@ -70,6 +86,10 @@
|
||||
# Command line: -p
|
||||
;PidFile = /var/run/vlmcsd.pid
|
||||
|
||||
# Load a KMS data file
|
||||
# Command line: -j
|
||||
;KmsData = /etc/vlmcsd.kmd
|
||||
|
||||
# Write log to /var/log/vlmcsd.log
|
||||
# Command line: -l (-e and -f also override this directive)
|
||||
;LogFile = /var/log/vlmcsd.log
|
||||
@ -87,9 +107,17 @@
|
||||
;WhiteListingLevel = 0
|
||||
|
||||
# Check that the client time is within +/- 4 hours of the system time
|
||||
# Command Line: -c0, -c1
|
||||
# Command line: -c0, -c1
|
||||
;CheckClientTime = false
|
||||
|
||||
# Maintain a list of CMIDs
|
||||
# Command line: -M0, -M1
|
||||
;MaintainClients = false
|
||||
|
||||
# Start with empty CMID list (Requires MaintainClients = true)
|
||||
# Command line: -E0, -E1
|
||||
;StartEmpty = false
|
||||
|
||||
# Set activation interval to 2 hours
|
||||
# Command line: -A
|
||||
;ActivationInterval = 2h
|
||||
@ -98,6 +126,12 @@
|
||||
# Command line: -R
|
||||
;RenewalInterval = 7d
|
||||
|
||||
# Exit vlmcsd if warning of certain level has been reached
|
||||
# Command line: -x
|
||||
# 0 = Never
|
||||
# 1 = Exit, if any listening socket could not be established or TAP error occurs
|
||||
;ExitLevel = 0
|
||||
|
||||
# Run program as user vlmcsduser
|
||||
# Command line: -u
|
||||
;user = vlmcsduser
|
||||
@ -107,7 +141,7 @@
|
||||
;group = vlmcsdgroup
|
||||
|
||||
# Disable or enable the NDR64 transfer syntax in RPC (default enabled)
|
||||
# Command line: -N0 and -B1
|
||||
# Command line: -N0 and -N1
|
||||
;UseNDR64 = true
|
||||
|
||||
# Disable or enable bind time feature negotiation in RPC (default enabled)
|
||||
|
BIN
etc/vlmcsd.kmd
Normal file
BIN
etc/vlmcsd.kmd
Normal file
Binary file not shown.
Binary file not shown.
2908
hotbird64-mass-build/make_bs
Executable file
2908
hotbird64-mass-build/make_bs
Executable file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
#!/usr/local/bin/bash
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
|
||||
cd "$( dirname "$0" )"
|
||||
gmake -C .. clean
|
||||
@ -28,6 +28,7 @@ cd $BINDIR
|
||||
strip -s --strip-unneeded --remove-section=.eh_frame_hdr --remove-section=.eh_frame --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||
sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||
|
||||
cp -af ../etc/vlmcsd.kmd /usr/local/sbin
|
||||
cp -af vlmcsd-DragonFly-x64 /usr/local/sbin/vlmcsd
|
||||
cp -af vlmcs-DragonFly-x64 /usr/local/bin/vlmcs
|
||||
|
||||
|
69
hotbird64-mass-build/make_dyson
Executable file
69
hotbird64-mass-build/make_dyson
Executable file
@ -0,0 +1,69 @@
|
||||
#!/bin/sh
|
||||
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
export VERBOSE=3
|
||||
#export CAT=2
|
||||
|
||||
if [ `uname -s` != "SunOS" ]; then
|
||||
echo "This is no SunOS operating system."
|
||||
exit 3
|
||||
fi
|
||||
|
||||
cd "$( dirname "$0" )"
|
||||
make -C .. clean
|
||||
|
||||
|
||||
SOLARIS_VERSION=`uname -v`
|
||||
|
||||
MAKEFLAGS="-Bj"
|
||||
REUSEOBJFLAGS="-j"
|
||||
|
||||
cd ../src
|
||||
BINDIR="../bin"
|
||||
MANDIR="../man"
|
||||
|
||||
CF="-flto=12 -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants -Wno-char-subscripts"
|
||||
LF="-static-libgcc -fwhole-program -Wl,--hash-style=sysv,--build-id=none,-z,norelro"
|
||||
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-Solaris-x64
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-Solaris-x64
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-Solaris-x64
|
||||
|
||||
make $MAKEFLAGS DNS_PARSER=OS CFLAGS="$CF" CC=gcc LDFLAGS="$LF" allmulti
|
||||
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-Solaris-x64-threads
|
||||
make $MAKEFLAGS DNS_PARSER=OS CFLAGS="$CF" CC=gcc LDFLAGS="$LF" THREADS=1 vlmcsd
|
||||
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-Solaris-x86
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-Solaris-x86
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-Solaris-x86
|
||||
|
||||
make $MAKEFLAGS DNS_PARSER=OS CFLAGS="$CF" PLATFORMFLAGS="-m32" CC=gcc LDFLAGS="$LF" allmulti
|
||||
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-Solaris-x86-threads
|
||||
make $MAKEFLAGS DNS_PARSER=OS CFLAGS="$CF" PLATFORMFLAGS="-m32" CC=gcc LDFLAGS="$LF" THREADS=1 vlmcsd
|
||||
|
||||
scp -p $BINDIR/* root@ubuntu64.internal:x/binaries/Solaris/intel
|
||||
|
||||
cd ..
|
||||
BINDIR="./bin"
|
||||
MANDIR="./man"
|
||||
|
||||
mkdir /tmp/vlmcsd
|
||||
cp -af $MANDIR/*.1 $MANDIR/*.5 $MANDIR/*.7 $MANDIR/*.8 /tmp/vlmcsd
|
||||
xz /tmp/vlmcsd/*
|
||||
|
||||
sudo mkdir -p /usr/local/man/man1
|
||||
sudo mkdir -p /usr/local/man/man5
|
||||
sudo mkdir -p /usr/local/man/man7
|
||||
sudo mkdir -p /usr/local/man/man8
|
||||
|
||||
sudo cp -af /tmp/vlmcsd/*.1.xz /usr/local/man/man1
|
||||
sudo cp -af /tmp/vlmcsd/*.5.xz /usr/local/man/man5
|
||||
sudo cp -af /tmp/vlmcsd/*.7.xz /usr/local/man/man7
|
||||
sudo cp -af /tmp/vlmcsd/*.8.xz /usr/local/man/man8
|
||||
|
||||
rm -fr /tmp/vlmcsd
|
||||
|
||||
sudo cp -af $BINDIR/vlmcsd-Solaris-x86 /usr/local/bin/vlmcsd
|
||||
sudo cp -af $BINDIR/vlmcs-Solaris-x86 /usr/local/bin/vlmcs
|
@ -1,6 +1,6 @@
|
||||
#!/usr/local/bin/bash
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
export VERBOSE=3
|
||||
export DNS_PARSER=OS
|
||||
|
||||
@ -12,7 +12,7 @@ cd ../src
|
||||
VERSION="$(uname -r | sed -e 's/-.*//')"
|
||||
MAKE="gmake"
|
||||
BINDIR="../bin"
|
||||
|
||||
PATH=/usr/local/bin:$PATH
|
||||
|
||||
MAKEFLAGS="-B -j12"
|
||||
REUSEOBJFLAGS="-j12"
|
||||
@ -22,22 +22,23 @@ CFCLANG="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tabl
|
||||
LF="-Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none"
|
||||
LFCLANG="-Wl,-z,norelro -Wl,--hash-style=gnu"
|
||||
|
||||
$MAKE $MAKEFLAGS allmulti CAT=2 MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-$VERSION-x64-gcc CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x64-gcc PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64-gcc CC=gcc6 CFLAGS="$CF" LDFLAGS="$LF"
|
||||
$MAKE $MAKEFLAGS MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-$VERSION-x64 CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x64 PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64 CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="$LF" allmulti
|
||||
$MAKE $MAKEFLAGS MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-$VERSION-x86 CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x86 PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86 CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="$LF"
|
||||
$MAKE $MAKEFLAGS allmulti CAT=2 MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-$VERSION-x86-gcc CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x86-gcc PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86-gcc CC=gcc6 CFLAGS="$CF -m32 -DCOMPAT_32BIT" LDFLAGS="-L/usr/lib32 -B/usr/lib32 $LF"
|
||||
$MAKE $MAKEFLAGS CAT=2 vlmcsd PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64-threads-gcc THREADS=1 CC=gcc6 CFLAGS="$CF" LDFLAGS="-lpthread $LF"
|
||||
$MAKE $MAKEFLAGS vlmcsd PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64-threads THREADS=1 CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="-lpthread $LF"
|
||||
$MAKE $MAKEFLAGS vlmcsd PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86-threads THREADS=1 CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="-lpthread $LF"
|
||||
$MAKE $MAKEFLAGS CAT=2 vlmcsd PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86-threads-gcc THREADS=1 CC=gcc6 CFLAGS="$CF -m32 -DCOMPAT_32BIT" LDFLAGS="-lpthread -L/usr/lib32 -B/usr/lib32 $LF"
|
||||
$MAKE $MAKEFLAGS CRYPTO=openssl_with_aes CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x64-openssl1.0.1-EXPERIMENTAL PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64-openssl1.0.1-EXPERIMENTAL CC=clang38 CFLAGS="$CFCLANG" LDFLAGS="$LF"
|
||||
$MAKE $MAKEFLAGS CRYPTO=openssl_with_aes CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x86-openssl1.0.1-EXPERIMENTAL PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86-openssl1.0.1-EXPERIMENTAL CC=clang38 CFLAGS="$CFCLANG -m32" LDFLAGS="$LF"
|
||||
$MAKE $MAKEFLAGS allmulti CAT=2 MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-$VERSION-x64-gcc CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x64-gcc PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64-gcc CC=gcc9 CFLAGS="$CF" LDFLAGS="$LF"
|
||||
$MAKE $MAKEFLAGS MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-$VERSION-x64 CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x64 PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64 CC=clang-devel CFLAGS="$CFCLANG" LDFLAGS="$LF" allmulti
|
||||
$MAKE $MAKEFLAGS MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-$VERSION-x86 CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x86 PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86 CC=clang-devel CFLAGS="$CFCLANG -m32" LDFLAGS="$LF"
|
||||
$MAKE $MAKEFLAGS allmulti CAT=2 MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-$VERSION-x86-gcc CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x86-gcc PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86-gcc CC=gcc9 CFLAGS="$CF -m32 -DCOMPAT_32BIT" LDFLAGS="-L/usr/lib32 -B/usr/lib32 $LF"
|
||||
$MAKE $MAKEFLAGS CAT=2 vlmcsd PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64-threads-gcc THREADS=1 CC=gcc9 CFLAGS="$CF" LDFLAGS="-lpthread $LF"
|
||||
$MAKE $MAKEFLAGS vlmcsd PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64-threads THREADS=1 CC=clang-devel CFLAGS="$CFCLANG" LDFLAGS="-lpthread $LF"
|
||||
$MAKE $MAKEFLAGS vlmcsd PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86-threads THREADS=1 CC=clang-devel CFLAGS="$CFCLANG -m32" LDFLAGS="-lpthread $LF"
|
||||
$MAKE $MAKEFLAGS CAT=2 vlmcsd PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86-threads-gcc THREADS=1 CC=gcc9 CFLAGS="$CF -m32 -DCOMPAT_32BIT" LDFLAGS="-lpthread -L/usr/lib32 -B/usr/lib32 $LF"
|
||||
$MAKE $MAKEFLAGS CRYPTO=openssl_with_aes CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x64-openssl1.0.1-EXPERIMENTAL PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x64-openssl1.0.1-EXPERIMENTAL CC=clang-devel CFLAGS="$CFCLANG" LDFLAGS="$LF"
|
||||
$MAKE $MAKEFLAGS CRYPTO=openssl_with_aes CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-$VERSION-x86-openssl1.0.1-EXPERIMENTAL PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-$VERSION-x86-openssl1.0.1-EXPERIMENTAL CC=clang-devel CFLAGS="$CFCLANG -m32" LDFLAGS="$LF"
|
||||
|
||||
cd ../bin
|
||||
|
||||
strip -s --strip-unneeded --remove-section=.eh_frame_hdr --remove-section=.eh_frame --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||
sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||
|
||||
sudo cp -af ../etc/vlmcsd.kmd /usr/local/sbin
|
||||
sudo cp -af vlmcsd-FreeBSD-$VERSION-x64-gcc /usr/local/sbin/vlmcsd
|
||||
sudo cp -af vlmcs-FreeBSD-$VERSION-x64-gcc /usr/local/bin/vlmcs
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
export VERBOSE=3
|
||||
export DNS_PARSER=OS
|
||||
|
||||
@ -23,6 +23,7 @@ cd $BINDIR
|
||||
|
||||
sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||
|
||||
cp -af ../etc/vlmcsd.kmd /usr/local/sbin
|
||||
cp -af vlmcsd-hurd-x86-glibc /usr/local/sbin/vlmcsd
|
||||
cp -af vlmcs-hurd-x86-glibc /usr/local/bin/vlmcs
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
export VERBOSE=3
|
||||
export DNS_PARSER=OS
|
||||
|
||||
@ -23,6 +23,7 @@ export MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-10.1-x64-glibc
|
||||
|
||||
make $MAKEFLAGS CFLAGS="$CF -m64" LDFLAGS="$LF" CAT=2 allmulti
|
||||
|
||||
cp -af ../etc/vlmcsd.kmd /usr/local/sbin
|
||||
cp -af $PROGRAM_NAME /usr/local/sbin/vlmcsd
|
||||
cp -af $CLIENT_NAME /usr/local/bin/vlmcs
|
||||
|
||||
|
@ -2,13 +2,13 @@
|
||||
|
||||
cd "$( dirname "$0" )"
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
|
||||
export VERBOSE=3
|
||||
export DNS_PARSER=internal
|
||||
|
||||
MAKEFLAGS="-j`nproc` -B"
|
||||
REUSEOBJFLAGS="-j"
|
||||
MAKEFLAGS="-j200 -B"
|
||||
REUSEOBJFLAGS="-j200"
|
||||
SMALLCC="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||
SMALLLD="-pipe -Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none"
|
||||
SMALL="$SMALLCC $SMALLLD"
|
||||
@ -50,6 +50,7 @@ mkdir -p ../binaries/Linux/mips/big-endian/musl
|
||||
mkdir -p ../binaries/Linux/ppc/little-endian/glibc
|
||||
mkdir -p ../binaries/Linux/ppc/big-endian/glibc
|
||||
mkdir -p ../binaries/Linux/ppc/big-endian/uclibc
|
||||
mkdir -p ../binaries/Linux/ppc/big-endian/musl
|
||||
mkdir -p ../binaries/Linux/ppc/big-endian/static
|
||||
|
||||
mkdir -p ../binaries/MacOSX/intel
|
||||
@ -90,7 +91,7 @@ if [ $? != 0 ]; then
|
||||
exit $?
|
||||
fi
|
||||
|
||||
export CFLAGS="$CFLAGS -flto=jobserver -fvisibility=hidden -DIS_LIBRARY"
|
||||
export CFLAGS="$CFLAGS -flto=16 -fvisibility=hidden -DIS_LIBRARY"
|
||||
export LDFLAGS="$LDFLAGS -static-libgcc"
|
||||
|
||||
#make $MAKEFLAGS CRYPTO=windows FEATURES=minimum $DLL_NAME CAT=2
|
||||
@ -157,7 +158,7 @@ if [ $? != 0 ]; then
|
||||
exit $?
|
||||
fi
|
||||
|
||||
export CFLAGS="$CFLAGS -flto=jobserver -fvisibility=hidden -DIS_LIBRARY"
|
||||
export CFLAGS="$CFLAGS -flto=16 -fvisibility=hidden -DIS_LIBRARY"
|
||||
export LDFLAGS="$LDFLAGS -static-libgcc"
|
||||
|
||||
#make $MAKEFLAGS CRYPTO=windows FEATURES=minimum $DLL_NAME CAT=2
|
||||
@ -237,10 +238,11 @@ fi
|
||||
# Linux mips32el with uClibc 0.9.33.2 using gcc 4.9 from OpenWRT toolchain
|
||||
export CLIENT_NAME=../binaries/Linux/mips/little-endian/uclibc/vlmcs-mips32el-openwrt-uclib
|
||||
export PROGRAM_NAME=../binaries/Linux/mips/little-endian/uclibc/vlmcsd-mips32el-openwrt-uclibc
|
||||
export MULTI_NAME=../binaries/Linux/mips/little-endian/uclibc/vlmcsdmulti-mips32el-openwrt-uclibc
|
||||
export CC=/opt/toolchains/mipsel-openwrt-linux-uclibc/toolchain-mipsel_mips32_gcc-4.9-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC -DNO_LIMIT"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export LDFLAGS="-lpthread $SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
make $MAKEFLAGS allmulti
|
||||
@ -270,10 +272,11 @@ fi
|
||||
# Linux mips16el with uClibc 0.9.33.2 using gcc 4.9 from OpenWRT toolchain with statically linked libgcc for Asus routers, e.g. Asus RT-N66U
|
||||
export CLIENT_NAME=../binaries/Linux/mips/little-endian/uclibc/vlmcs-mips16el-asus-rt-n66u-uclibc
|
||||
export PROGRAM_NAME=../binaries/Linux/mips/little-endian/uclibc/vlmcsd-mips16el-asus-rt-n66u-uclibc
|
||||
export MULTI_NAME=../binaries/Linux/mips/little-endian/static/vlmcsdmulti-mips16el-asus-rt-n66u-uclibc
|
||||
export CC=/opt/toolchains/mipsel-openwrt-linux-uclibc/toolchain-mipsel_mips32_gcc-4.9-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC -static-libgcc -DNO_LIMIT"
|
||||
export PLATFORMFLAGS="-mips32 -mips16 -flto=jobserver -fwhole-program"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export PLATFORMFLAGS="-mips32 -mips16 -flto=16 -fwhole-program"
|
||||
export LDFLAGS="-lpthread $SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
make $MAKEFLAGS allmulti
|
||||
@ -304,8 +307,9 @@ fi
|
||||
# Linux mips16el with uClibc 0.9.33.2 using gcc 4.8 from OpenWRT toolchain
|
||||
export CLIENT_NAME=../binaries/Linux/mips/little-endian/uclibc/vlmcs-mips16el-openwrt-uclibc
|
||||
export PROGRAM_NAME=../binaries/Linux/mips/little-endian/uclibc/vlmcsd-mips16el-openwrt-uclibc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export MULTI_NAME=../binaries/Linux/mips/little-endian/static/vlmcsdmulti-mips16el-openwrt-uclibc
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips16"
|
||||
export LDFLAGS="-lpthread $SMALLLD"
|
||||
|
||||
make $MAKEFLAGS allmulti
|
||||
|
||||
@ -336,7 +340,7 @@ export MULTI_NAME=../binaries/Linux/mips/little-endian/glibc/vlmcsdmulti-mips16e
|
||||
export CC=/opt/toolchains/mipsel_74kc+dsp2_gcc-4.9-linaro_eglibc-2.19-mips16/bin/mipsel-openwrt-linux-gnu-gcc-4.9.2
|
||||
#export CC=~/openwrt/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_eglibc-2.19/bin/mipsel-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=mips32 -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=mips32 -mips16"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
@ -357,7 +361,7 @@ export PROGRAM_NAME=../binaries/Linux/ppc/big-endian/glibc/vlmcsd-ppc64-glibc
|
||||
export MULTI_NAME=../binaries/Linux/ppc/big-endian/glibc/vlmcsdmulti-ppc64-glibc
|
||||
export CC=/opt/toolchains/ppc64-glibc2.19-gcc-4.9.1/bin/powerpc64-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
@ -378,7 +382,7 @@ export PROGRAM_NAME=../binaries/Linux/ppc/little-endian/glibc/vlmcsd-ppc64el-gli
|
||||
export MULTI_NAME=../binaries/Linux/ppc/little-endian/glibc/vlmcsdmulti-ppc64el-glibc
|
||||
export CC=/opt/toolchains/ppc64el-glibc2.20-gcc-4.9.1/bin/powerpc64le-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
@ -397,9 +401,9 @@ fi
|
||||
export CLIENT_NAME=../binaries/Linux/ppc/big-endian/glibc/vlmcs-ppc-glibc
|
||||
export PROGRAM_NAME=../binaries/Linux/ppc/big-endian/glibc/vlmcsd-ppc-glibc
|
||||
export MULTI_NAME=../binaries/Linux/ppc/big-endian/glibc/vlmcsdmulti-ppc-glibc
|
||||
export CC=~/openwrt/staging_dir/toolchain-powerpc_405_gcc-4.8-linaro_eglibc-2.19/bin/powerpc-openwrt-linux-gcc
|
||||
export CC=/opt/toolchains/ppc-openwrt-eglibc-2.19-gcc-4.8/bin/powerpc-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program --sysroot=/opt/simplebuild/toolchains/powerpc -L/opt/simplebuild/toolchains/powerpc/lib -L/opt/simplebuild/toolchains/powerpc/usr/lib"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program --sysroot=/opt/simplebuild/toolchains/powerpc -L/opt/simplebuild/toolchains/powerpc/lib -L/opt/simplebuild/toolchains/powerpc/usr/lib"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
@ -421,7 +425,7 @@ export MULTI_NAME=../binaries/Linux/mips/big-endian/glibc/vlmcsdmulti-mips32-ope
|
||||
export CC=/opt/toolchains/mips_34kc_gcc-4.9-linaro_eglibc-2.19-mips16/bin/mips-openwrt-linux-gcc
|
||||
#export CC=~/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_eglibc-2.19/bin/mips-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips32"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
@ -444,7 +448,7 @@ export MULTI_NAME=../binaries/Linux/mips/big-endian/glibc/vlmcsdmulti-mips16-ope
|
||||
export CC=/opt/toolchains/mips_34kc_gcc-4.9-linaro_eglibc-2.19-mips16/bin/mips-openwrt-linux-gcc
|
||||
#export CC=~/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_eglibc-2.19/bin/mips-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32 -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips32 -mips16"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
@ -467,7 +471,7 @@ export MULTI_NAME=../binaries/Linux/mips/little-endian/glibc/vlmcsdmulti-mips32e
|
||||
export CC=/opt/toolchains/mipsel_74kc+dsp2_gcc-4.9-linaro_eglibc-2.19-mips16/bin/mipsel-openwrt-linux-gnu-gcc-4.9.2
|
||||
#export CC=~/openwrt/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_eglibc-2.19/bin/mipsel-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips32"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export THREADS=0
|
||||
|
||||
@ -481,14 +485,69 @@ fi
|
||||
|
||||
|
||||
|
||||
# armv7 glibc 2.22 gcc 5.3 OpenWRT toolchain
|
||||
|
||||
export CC=/opt/toolchains/armelv7-OpenWRT-BCM47xx_53xx-gcc-5.3.0-glibc-2.22/bin/arm-openwrt-linux-gcc
|
||||
export CLIENT_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcs-armelv7-bcm47xx_53xx-openwrt-glibc
|
||||
export PROGRAM_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsd-armelv7-bcm47xx_53xx-openwrt-glibc
|
||||
export MULTI_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armelv7-bcm47xx_53xx-openwrt-glibc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7-a -mthumb -mtune=cortex-a9"
|
||||
export LDFLAGS="$SMALLLD -static-libgcc"
|
||||
export THREADS=0
|
||||
export DNS_PARSER=internal
|
||||
|
||||
make $MAKEFLAGS allmulti
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo Error creating $MULTI_NAME, $CLIENT_NAME and/or $PROGRAM_NAME
|
||||
exit $?
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
# armv7 glibc 2.22 gcc 5.3 OpenWRT toolchain
|
||||
|
||||
export CC=/opt/toolchains/armelv7-OpenWRT-BCM47xx_53xx-gcc-5.3.0-musl-1.14/bin/arm-openwrt-linux-gcc
|
||||
export CLIENT_NAME=../binaries/Linux/arm/little-endian/musl/vlmcs-armelv7-bcm47xx_53xx-openwrt-musl
|
||||
export PROGRAM_NAME=../binaries/Linux/arm/little-endian/musl/vlmcsd-armelv7-bcm47xx_53xx-openwrt-musl
|
||||
export MULTI_NAME=../binaries/Linux/arm/little-endian/musl/vlmcsdmulti-armelv7-bcm47xx_53xx-openwrt-musl
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7-a -mthumb -mtune=cortex-a9"
|
||||
export LDFLAGS="$SMALLLD -static-libgcc"
|
||||
export THREADS=0
|
||||
|
||||
make DNS_PARSER=OS $MAKEFLAGS allmulti
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo Error creating $MULTI_NAME, $CLIENT_NAME and/or $PROGRAM_NAME
|
||||
exit $?
|
||||
fi
|
||||
|
||||
export CLIENT_NAME=../binaries/Linux/arm/little-endian/static/vlmcs-armelv7-bcm47xx_53xx-openwrt-musl-static
|
||||
export PROGRAM_NAME=../binaries/Linux/arm/little-endian/static/vlmcsd-armelv7-bcm47xx_53xx-openwrt-musl-static
|
||||
export MULTI_NAME=../binaries/Linux/arm/little-endian/static/vlmcsdmulti-armelv7-bcm47xx_53xx-openwrt-musl-static
|
||||
export LDFLAGS="$SMALLLD -static"
|
||||
|
||||
make DNS_PARSER=OS $REUSEOBJFLAGS allmulti
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo Error creating $MULTI_NAME, $CLIENT_NAME and/or $PROGRAM_NAME
|
||||
exit $?
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
#Android gcc 4.8 with API Level 3 (Android 1.5 cupcake) armv7
|
||||
|
||||
export CLIENT_NAME=../binaries/Android/arm/bionic/vlmcs-android15-armv7
|
||||
export PROGRAM_NAME=../binaries/Android/arm/bionic/vlmcsd-android15-armv7
|
||||
export MULTI_NAME=../binaries/Android/arm/static/vlmcsdmulti-android15-armv7
|
||||
export CC=/opt/toolchains/armelv7-android-3/bin/arm-linux-androideabi-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7 -mthumb"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -518,9 +577,10 @@ fi
|
||||
|
||||
export CLIENT_NAME=../binaries/Android/arm/bionic/vlmcs-android15-armv5
|
||||
export PROGRAM_NAME=../binaries/Android/arm/bionic/vlmcsd-android15-armv5
|
||||
export MULTI_NAME=../binaries/Android/arm/static/vlmcsdmulti-android15-armv5
|
||||
export CC=/opt/toolchains/armelv7-android-3/bin/arm-linux-androideabi-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv5te -mthumb"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv5te -mthumb"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -554,7 +614,7 @@ export PROGRAM_NAME=../binaries/Android/arm/bionic/vlmcsd-android41-armv7
|
||||
export MULTI_NAME=../binaries/Android/arm/bionic/vlmcsdmulti-android41-armv7
|
||||
export CC=/opt/toolchains/armelv7-android-16/bin/arm-linux-androideabi-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb -fPIE -pie"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7 -mthumb -fPIE -pie"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -576,7 +636,7 @@ fi
|
||||
#export MULTI_NAME=../binaries/Android/arm/bionic/vlmcsdmulti-android50-armv7
|
||||
#export CC=/opt/toolchains/armelv7-android-21/bin/arm-linux-androideabi-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb -fPIE -pie"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7 -mthumb -fPIE -pie"
|
||||
#export THREADS=0
|
||||
#export LDFLAGS="$SMALLLD"
|
||||
#
|
||||
@ -607,7 +667,7 @@ export PROGRAM_NAME=../binaries/Android/arm/bionic/vlmcsd-android50-arm64v8
|
||||
export MULTI_NAME=../binaries/Android/arm/bionic/vlmcsdmulti-android50-arm64v8
|
||||
export CC=/opt/toolchains/arm64el-android-21/bin/aarch64-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mtune=generic -mfix-cortex-a53-835769 -march=armv8-a -fPIE -pie"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mtune=generic -mfix-cortex-a53-835769 -march=armv8-a -fPIE -pie"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -629,7 +689,7 @@ export PROGRAM_NAME=../binaries/Android/arm/static/vlmcsd-android50-arm64v8-stat
|
||||
export MULTI_NAME=../binaries/Android/arm/static/vlmcsdmulti-android50-arm64v8-static
|
||||
export CC=/opt/toolchains/arm64el-android-21/bin/aarch64-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mtune=generic -mfix-cortex-a53-835769 -march=armv8-a"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mtune=generic -mfix-cortex-a53-835769 -march=armv8-a"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD -static"
|
||||
|
||||
@ -648,9 +708,10 @@ fi
|
||||
|
||||
export CLIENT_NAME=../binaries/Android/intel/bionic/vlmcs-android23-x86
|
||||
export PROGRAM_NAME=../binaries/Android/intel/bionic/vlmcsd-android23-x86
|
||||
export MULTI_NAME=../binaries/Android/intel/static/vlmcsdmulti-android23-x86
|
||||
export CC=/opt/toolchains/x86-android-9/bin/i686-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=atom -m32"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=i386 -m32"
|
||||
export THREADS=1
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -684,7 +745,7 @@ export PROGRAM_NAME=../binaries/Android/intel/bionic/vlmcsd-android41-x86
|
||||
export MULTI_NAME=../binaries/Android/intel/bionic/vlmcsdmulti-android41-x86
|
||||
export CC=/opt/toolchains/x86-android-16/bin/i686-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=atom -m32 -fPIE -pie"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=i386 -m32 -fPIE -pie"
|
||||
export THREADS=1
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -706,7 +767,7 @@ fi
|
||||
#export MULTI_NAME=../binaries/Android/intel/bionic/vlmcsdmulti-android50-x86
|
||||
#export CC=/opt/toolchains/x86-android-21/bin/i686-linux-android-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=atom -m32 -fPIE -pie"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -march=atom -m32 -fPIE -pie"
|
||||
#export THREADS=1
|
||||
#export LDFLAGS="$SMALLLD"
|
||||
#
|
||||
@ -736,7 +797,7 @@ export PROGRAM_NAME=../binaries/Android/intel/bionic/vlmcsd-android50-x64
|
||||
export MULTI_NAME=../binaries/Android/intel/bionic/vlmcsdmulti-android50-x64
|
||||
export CC=/opt/toolchains/x86_64-android-21/bin/x86_64-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=atom -m64 -fPIE -pie"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m64 -fPIE -pie"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -758,7 +819,7 @@ export PROGRAM_NAME=../binaries/Android/intel/static/vlmcsd-android50-x64-static
|
||||
export MULTI_NAME=../binaries/Android/intel/static/vlmcsdmulti-android50-x64-static
|
||||
export CC=/opt/toolchains/x86_64-android-21/bin/x86_64-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=nocona -m64"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m64"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD -static"
|
||||
|
||||
@ -778,9 +839,10 @@ fi
|
||||
|
||||
export CLIENT_NAME=../binaries/Android/mips/bionic/vlmcs-android23-mips32el
|
||||
export PROGRAM_NAME=../binaries/Android/mips/bionic/vlmcsd-android23-mips32el
|
||||
export MULTI_NAME=../binaries/Android/mips/static/vlmcsdmulti-android23-mips32el
|
||||
export CC=/opt/toolchains/mipsel-android-9/bin/mipsel-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export THREADS=1
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -815,7 +877,7 @@ export PROGRAM_NAME=../binaries/Android/mips/bionic/vlmcsd-android41-mips32el
|
||||
export MULTI_NAME=../binaries/Android/mips/bionic/vlmcsdmulti-android41-mips32el
|
||||
export CC=/opt/toolchains/mipsel-android-16/bin/mipsel-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -fPIE -pie"
|
||||
export THREADS=1
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -838,7 +900,7 @@ fi
|
||||
#export MULTI_NAME=../binaries/Android/mips/bionic/vlmcsdmulti-android50-mips32el
|
||||
#export CC=/opt/toolchains/mipsel-android-21/bin/mipsel-linux-android-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -fPIE -pie"
|
||||
#export THREADS=1
|
||||
#export LDFLAGS="$SMALLLD"
|
||||
#
|
||||
@ -867,7 +929,7 @@ fi
|
||||
#export PROGRAM_NAME=../binaries/Android/mips/bionic/vlmcsd-android23-mips16el
|
||||
#export CC=/opt/toolchains/mipsel-android-9/bin/mipsel-linux-android-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -mips16"
|
||||
#export THREADS=1
|
||||
#export LDFLAGS="$SMALLLD"
|
||||
#
|
||||
@ -920,7 +982,7 @@ fi
|
||||
#export MULTI_NAME=../binaries/Android/mips/bionic/vlmcsdmulti-android41-mips16el
|
||||
#export CC=/opt/toolchains/mipsel-android-16/bin/mipsel-linux-android-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie -mips16"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -fPIE -pie -mips16"
|
||||
#export THREADS=1
|
||||
#export LDFLAGS="$SMALLLD"
|
||||
#
|
||||
@ -951,7 +1013,7 @@ fi
|
||||
#export MULTI_NAME=../binaries/Android/mips/bionic/vlmcsdmulti-android50-mips16el
|
||||
#export CC=/opt/toolchains/mipsel-android-21/bin/mipsel-linux-android-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie -mips16"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -fPIE -pie -mips16"
|
||||
#export THREADS=1
|
||||
#export LDFLAGS="$SMALLLD"
|
||||
#
|
||||
@ -979,7 +1041,7 @@ export PROGRAM_NAME=../binaries/Android/mips/bionic/vlmcsd-android50-mips64el
|
||||
export MULTI_NAME=../binaries/Android/mips/bionic/vlmcsdmulti-android50-mips64el
|
||||
export CC=/opt/toolchains/mips64el-android-21/bin/mips64el-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -fPIE -pie"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD"
|
||||
|
||||
@ -1001,7 +1063,7 @@ export PROGRAM_NAME=../binaries/Android/mips/static/vlmcsd-android50-mips64el-st
|
||||
export MULTI_NAME=../binaries/Android/mips/static/vlmcsdmulti-android50-mips64el-static
|
||||
export CC=/opt/toolchains/mips64el-android-21/bin/mips64el-linux-android-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export THREADS=0
|
||||
export LDFLAGS="$SMALLLD -static"
|
||||
|
||||
@ -1021,7 +1083,7 @@ fi
|
||||
#export PROGRAM_NAME=../binaries/Android/arm/bionic/vlmcsd-android5
|
||||
#export CC=arm-linux-androideabi-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
#export LDFLAGS="$SMALLLD -pie -fpie"
|
||||
#export THREADS=0
|
||||
#
|
||||
@ -1073,7 +1135,7 @@ fi
|
||||
#export PROGRAM_NAME=../binaries/Android/arm/bionic/vlmcsd-android5-armv7
|
||||
#export CC=arm-linux-androideabi-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mthumb -march=armv7 -mtune=cortex-a9"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -mthumb -march=armv7 -mtune=cortex-a9"
|
||||
#export LDFLAGS="$SMALLLD -pie -fpie"
|
||||
#export THREADS=0
|
||||
#
|
||||
@ -1126,7 +1188,7 @@ fi
|
||||
#export PROGRAM_NAME=../binaries/Android/arm/bionic/vlmcsd-android
|
||||
#export CC=arm-linux-androideabi-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
#export LDFLAGS="$SMALLLD"
|
||||
#export THREADS=0
|
||||
#
|
||||
@ -1178,7 +1240,7 @@ fi
|
||||
#export PROGRAM_NAME=../binaries/Android/arm/bionic/vlmcsd-android-armv7
|
||||
#export CC=arm-linux-androideabi-gcc
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mthumb -march=armv7 -mtune=cortex-a9"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -mthumb -march=armv7 -mtune=cortex-a9"
|
||||
#export LDFLAGS="$SMALLLD"
|
||||
#export THREADS=0
|
||||
#
|
||||
@ -1226,9 +1288,9 @@ fi
|
||||
export MULTI_NAME=../binaries/Linux/intel/glibc/vlmcsdmulti-x86-glibc
|
||||
export CLIENT_NAME=../binaries/Linux/intel/glibc/vlmcs-x86-glibc
|
||||
export PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x86-glibc
|
||||
export CC=~/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_eglibc-2.19/bin/i486-openwrt-linux-gcc
|
||||
export CC=/opt/toolchains/toolchain-i386_i486_gcc-4.8-linaro_eglibc-2.19/bin/i486-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i686 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m32 -march=i686 -mtune=generic"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
export THREADS=0
|
||||
|
||||
@ -1245,9 +1307,9 @@ fi
|
||||
|
||||
# Linux x86 glibc minimum standalone version
|
||||
export PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x86-glibc-minimum
|
||||
export CC=~/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_eglibc-2.19/bin/i486-openwrt-linux-gcc
|
||||
export CC=/opt/toolchains/toolchain-i386_i486_gcc-4.8-linaro_eglibc-2.19/bin/i486-openwrt-linux-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i686 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m32 -march=i686 -mtune=generic"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
export THREADS=0
|
||||
export FEATURES=minimum
|
||||
@ -1295,7 +1357,7 @@ export PROGRAM_NAME=../binaries/Linux/intel/static/vlmcsd-x86-musl-static
|
||||
#export CC=/opt/toolchains/i386_i486_gcc-4.9-linaro_musl-1.1.6/bin/i486-openwrt-linux-musl-gcc-4.9.2
|
||||
export CC=/opt/toolchains/i486-musl-gcc-5.3.0-binutils-2.25.1/bin/i486-Hotbird-linux-musl-gcc.br_real
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i486 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m32 -march=i486 -mtune=generic"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
|
||||
export THREADS=0
|
||||
export NOPROCFS=0
|
||||
@ -1326,15 +1388,16 @@ fi
|
||||
# Linux x86 musl static threads
|
||||
export FEATURES=full
|
||||
export PROGRAM_NAME=../binaries/Linux/intel/static/vlmcsd-x86-musl-static-threads
|
||||
export MULTI_NAME=../binaries/Linux/intel/static/vlmcsdmulti-x86-musl-static-threads
|
||||
export CC=/opt/toolchains/i486-musl-gcc-5.3.0-binutils-2.25.1/bin/i486-Hotbird-linux-musl-gcc.br_real
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i486 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m32 -march=i486 -mtune=generic"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
|
||||
export THREADS=1
|
||||
export NOPROCFS=0
|
||||
export AUXV=1
|
||||
|
||||
make $MAKEFLAGS $PROGRAM_NAME
|
||||
make $MAKEFLAGS $PROGRAM_NAME $MULTI_NAME
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo Error creating $PROGRAM_NAME
|
||||
@ -1352,8 +1415,8 @@ export CLIENT_NAME=../binaries/Linux/intel/glibc/vlmcs-x32-glibc
|
||||
export PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x32-glibc
|
||||
export CC=gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mx32 -march=nocona -mtune=generic"
|
||||
export LDFLAGS="-fuse-ld=gold $SMALLLD -Wl,--hash-style=gnu"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mx32 -march=nocona -mtune=generic"
|
||||
export LDFLAGS="-fuse-ld=bfd $SMALLLD -Wl,--hash-style=gnu"
|
||||
export THREADS=0
|
||||
export NOPROCFS=0
|
||||
export AUXV=1
|
||||
@ -1373,8 +1436,8 @@ export FEATURES=full
|
||||
export PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x32-glibc-threads
|
||||
export CC=gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mx32 -march=nocona -mtune=generic"
|
||||
export LDFLAGS="-fuse-ld=gold $SMALLLD -Wl,--hash-style=gnu -lpthread"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mx32 -march=nocona -mtune=generic"
|
||||
export LDFLAGS="-fuse-ld=bfd $SMALLLD -Wl,--hash-style=gnu -lpthread"
|
||||
export THREADS=1
|
||||
export NOPROCFS=0
|
||||
export AUXV=1
|
||||
@ -1396,7 +1459,7 @@ export CLIENT_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcs-armv4el-glibc
|
||||
export PROGRAM_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsd-armv4el-glibc
|
||||
export CC=/opt/toolchains/armelv5t-glibc-2.23-gcc-6.1.0-binutils-2.26/usr/bin/arm-Hotbird-linux-gnueabi-gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4 -marm"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv4 -marm"
|
||||
export LDFLAGS="$SMALLLD -static-libgcc"
|
||||
export THREADS=0
|
||||
export NOPROCFS=0
|
||||
@ -1421,7 +1484,7 @@ export PROGRAM_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsd-armv4el-gli
|
||||
export CC=/opt/toolchains/armelv5t-glibc-2.23-gcc-6.1.0-binutils-2.26/usr/bin/arm-Hotbird-linux-gnueabi-gcc
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4t -mthumb"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv4t -mthumb"
|
||||
export LDFLAGS="$SMALLLD -static-libgcc"
|
||||
export THREADS=0
|
||||
|
||||
@ -1440,7 +1503,7 @@ fi
|
||||
export PROGRAM_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsd-armv5el-glibc-thumb
|
||||
export CLIENT_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcs-armv5el-glibc-thumb
|
||||
export MULTI_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv5el-glibc-thumb
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv5t -mthumb"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv5t -mthumb"
|
||||
|
||||
make $MAKEFLAGS DNS_PARSER=internal allmulti
|
||||
|
||||
@ -1456,7 +1519,7 @@ fi
|
||||
export PROGRAM_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsd-armv5el-glibc
|
||||
export CLIENT_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcs-armv5el-glibc
|
||||
export MULTI_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv5el-glibc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv5 -marm"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv5 -marm"
|
||||
|
||||
make $MAKEFLAGS DNS_PARSER=internal allmulti
|
||||
|
||||
@ -1474,7 +1537,7 @@ export PROGRAM_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsd-armv7el-gli
|
||||
export CLIENT_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcs-armv7el-glibc
|
||||
export MULTI_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv7el-glibc
|
||||
export CC=/opt/toolchains/armelv7-cortex-a8-glibc-2.18/usr/bin/arm-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7 -mthumb"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -1495,8 +1558,8 @@ fi
|
||||
export PROGRAM_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsd-armv4el-openwrt-glibc
|
||||
export CLIENT_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcs-armv4el-openwrt-glibc
|
||||
export MULTI_NAME=../binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv4el-openwrt-glibc
|
||||
export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_eglibc-2.19_eabi/bin/arm-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4"
|
||||
export CC=/opt/toolchains/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_eglibc-2.19_eabi/bin/arm-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv4"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -1520,8 +1583,8 @@ SUFFIX=-armv7el-openwrt-glibc
|
||||
export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_eglibc-2.19_eabi/bin/arm-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
|
||||
export CC=/opt/toolchains/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_eglibc-2.19_eabi/bin/arm-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7 -mthumb"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -1546,7 +1609,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}-static
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}-static
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}-static
|
||||
export CC=/opt/toolchains/armelv5t-musl-gcc6.1.0-binutils-2.26/usr/bin/arm-Hotbird-linux-musleabi-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
|
||||
@ -1587,7 +1650,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/armelv5t-uclibc-0.9.33/usr/bin/arm-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv5t -mthumb"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv5t -mthumb"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -1613,7 +1676,7 @@ export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/armelv7-cortex-a8-uclibc-0.9.33/usr/bin/arm-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7 -mthumb"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -1648,8 +1711,8 @@ SUFFIX=-armv4el-openwrt-uclibc
|
||||
export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4 -marm"
|
||||
export CC=/opt/toolchains/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv4 -marm"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -1673,7 +1736,7 @@ fi
|
||||
#export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
#export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
#export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-gcc
|
||||
#export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4t -mthumb"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv4t -mthumb"
|
||||
#export FEATURES=full
|
||||
#export CFLAGS="$SMALLCC"
|
||||
#export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -1704,8 +1767,8 @@ SUFFIX=-armv7el-openwrt-uclibc
|
||||
export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
|
||||
export CC=/opt/toolchains/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv7 -mthumb"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -1768,7 +1831,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/mipsoe20/bin/mipsel-unknown-linux-gnu-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -1793,7 +1856,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/mipsoe20/bin/mipsel-unknown-linux-gnu-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -1856,7 +1919,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32el-mips16-glibc-2.18/usr/bin/mipsel-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32 -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips32 -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -1882,7 +1945,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32el-mips16-uclibc-0.9.33/bin/mipsel-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32 -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips32 -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -1908,10 +1971,11 @@ export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
|
||||
#export CC=~/openwrt/staging_dir/toolchain-powerpc_405_gcc-4.8-linaro_uClibc-0.9.33.2/bin/powerpc-openwrt-linux-gcc
|
||||
export CC=/opt/toolchains/ppc-uclibc0.9.33.2-gcc-4.9.1-binutils2.24/bin/powerpc-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -L/root/cross-compiler-powerpc/lib -L/root/cross-compiler-powerpc/usr/lib"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -L/root/cross-compiler-powerpc/lib -L/root/cross-compiler-powerpc/usr/lib"
|
||||
#export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export LDFLAGS="$SMALLLD -static-libgcc"
|
||||
export THREADS=0
|
||||
export CRYPTO=internal
|
||||
|
||||
@ -1937,6 +2001,45 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
#Linux PowerPC musl 1.15 toolchain
|
||||
INSTALLDIR=../binaries/Linux/ppc/big-endian/
|
||||
SUFFIX=-ppc-musl
|
||||
export PROGRAM_NAME=${INSTALLDIR}musl/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/ppc-musl-1.15-gcc-6.2.0-binutils-2.27/usr/bin/powerpc-Hotbird64-linux-musl-gcc
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -static-libgcc"
|
||||
export THREADS=0
|
||||
export CRYPTO=internal
|
||||
|
||||
make $MAKEFLAGS AUXV=1 DNS_PARSER=OS allmulti
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo Error creating $MULTI_NAME, $CLIENT_NAME and/or $PROGRAM_NAME
|
||||
exit $?
|
||||
fi
|
||||
|
||||
export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
|
||||
export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
|
||||
export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
|
||||
export LDFLAGS="$SMALLLD -static"
|
||||
|
||||
make $REUSEOBJFLAGS AUXV=1 DNS_PARSER=OS allmulti
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo Error creating $MULTI_NAME, $CLIENT_NAME and/or $PROGRAM_NAME
|
||||
exit $?
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#Fritzbox 7170 (mips32r2 little-endian) device specific, May or may not run on other devices
|
||||
INSTALLDIR=../binaries/Linux/mips/little-endian/
|
||||
SUFFIX=-mips32r2el-Fritzbox-71xx-72xx-uclibc
|
||||
@ -1944,7 +2047,7 @@ export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/fritz71xx/bin/mipsel-linux-uclibc-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=4kec -mtune=4kec"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=4kec -mtune=4kec"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -1981,7 +2084,7 @@ export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2018,7 +2121,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC -D_PEDANTIC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2042,7 +2145,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC -DNO_USER_SWITCH -DSIMPLE_SOCKETS -DNO_PID_FILE -DNO_USER_SWITCH -DNO_USER_SWITCH"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2066,7 +2169,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export FEATURES=inetd
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2090,7 +2193,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -lpthread"
|
||||
@ -2113,7 +2216,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2133,7 +2236,7 @@ unset OPENSSL_HMAC
|
||||
|
||||
|
||||
|
||||
#make $MAKEFLAGS CLIENT_NAME=../binaries/Linux/mips/big-endian/uclibc/vlmcs-mips32-uclibc CFLAGS="$SMALL -pipe -flto=jobserver -fwhole-program" PROGRAM_NAME=../binaries/Linux/mips/big-endian/uclibc/vlmcsd-mips32-uclibc CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc && \
|
||||
#make $MAKEFLAGS CLIENT_NAME=../binaries/Linux/mips/big-endian/uclibc/vlmcs-mips32-uclibc CFLAGS="$SMALL -pipe -flto=16 -fwhole-program" PROGRAM_NAME=../binaries/Linux/mips/big-endian/uclibc/vlmcsd-mips32-uclibc CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc && \
|
||||
# Linux mips32 big-endian uclibc
|
||||
INSTALLDIR=../binaries/Linux/mips/big-endian/uclibc/
|
||||
SUFFIX=-mips32-uclibc
|
||||
@ -2141,7 +2244,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips32"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2166,7 +2269,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2191,10 +2294,10 @@ export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips-openwrt-linux-uclibc/bin/mips-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC -DNO_LIMIT"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="-ldl -lpthread $SMALLLD"
|
||||
export THREADS=0
|
||||
export CRYPTO=internal
|
||||
|
||||
@ -2217,7 +2320,7 @@ export PROGRAM_NAME=${INSTALLDIR}musl/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips_34kc_gcc-4.9-linaro_musl-1.1.6-mips16/bin/mips-openwrt-linux-musl-gcc-4.9.2
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2254,10 +2357,10 @@ export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips-openwrt-linux-uclibc/bin/mips-openwrt-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=24kc"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC -DNO_LIMIT"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export LDFLAGS="-ldl -lpthread $SMALLLD"
|
||||
export THREADS=0
|
||||
export CRYPTO=internal
|
||||
|
||||
@ -2271,7 +2374,7 @@ fi
|
||||
export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
|
||||
export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
|
||||
export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
|
||||
export LDFLAGS="$SMALLLD -static"
|
||||
export LDFLAGS="$LDFLAGS -static"
|
||||
|
||||
make $REUSEOBJFLAGS allmulti
|
||||
|
||||
@ -2291,7 +2394,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -lpthread"
|
||||
@ -2315,7 +2418,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32eb-glibc-2.19/usr/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2340,7 +2443,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32eb-glibc-2.19/usr/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2365,7 +2468,7 @@ export PROGRAM_NAME=${INSTALLDIR}musl/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32eb-musl/usr/bin/mips-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips32"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2374,7 +2477,6 @@ export CRYPTO=internal
|
||||
export NOPROCFS=0
|
||||
export AUXV=1
|
||||
|
||||
|
||||
make $MAKEFLAGS allmulti
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
@ -2407,7 +2509,7 @@ export PROGRAM_NAME=${INSTALLDIR}musl/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32el-mips16-musl/usr/bin/mipsel-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2446,7 +2548,7 @@ export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
|
||||
export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
|
||||
export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
|
||||
export CC=/opt/toolchains/mips32el-mips16-musl-fpu/usr/bin/mipsel-linux-cc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips16"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -static"
|
||||
@ -2472,7 +2574,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/i486-uclibc-0.9.33/bin/i486-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i486 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m32 -march=i486 -mtune=generic"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -2491,7 +2593,7 @@ fi
|
||||
|
||||
|
||||
|
||||
#make $MAKEFLAGS CLIENT_NAME=../binaries/Linux/intel/glibc/vlmcs-x64-glibc LDFLAGS="-Wl,--hash-style=gnu" CFLAGS="$SMALL -pipe -flto=jobserver -fwhole-program" PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x64-glibc CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic"&& \
|
||||
#make $MAKEFLAGS CLIENT_NAME=../binaries/Linux/intel/glibc/vlmcs-x64-glibc LDFLAGS="-Wl,--hash-style=gnu" CFLAGS="$SMALL -pipe -flto=16 -fwhole-program" PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x64-glibc CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic"&& \
|
||||
# Linux x64 glibc
|
||||
INSTALLDIR=../binaries/Linux/intel/glibc/
|
||||
SUFFIX=-x64-glibc
|
||||
@ -2499,7 +2601,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m64 -mtune=generic"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -2524,7 +2626,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/sparc32-glibc-gcc-4.7.4/bin/sparc-buildroot-linux-gnu-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mcpu=v7"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mcpu=v7"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2542,7 +2644,7 @@ fi
|
||||
|
||||
|
||||
|
||||
#make $MAKEFLAGS ../binaries/Linux/intel/glibc/vlmcsd-x64-glibc-threads CLIENT_NAME=../binaries/Linux/intel/glibc/vlmcs-x64-glibc-threads THREADS=1 LDFLAGS="-Wl,--hash-style=gnu -lpthread" CFLAGS="-pipe -flto=jobserver -fwhole-program" PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x64-glibc-threads CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic"&& \
|
||||
#make $MAKEFLAGS ../binaries/Linux/intel/glibc/vlmcsd-x64-glibc-threads CLIENT_NAME=../binaries/Linux/intel/glibc/vlmcs-x64-glibc-threads THREADS=1 LDFLAGS="-Wl,--hash-style=gnu -lpthread" CFLAGS="-pipe -flto=16 -fwhole-program" PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x64-glibc-threads CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic"&& \
|
||||
# Linux x64 glibc with threads
|
||||
INSTALLDIR=../binaries/Linux/intel/glibc/
|
||||
SUFFIX=-x64-glibc-threads
|
||||
@ -2550,7 +2652,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m64 -mtune=generic"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -lpthread"
|
||||
@ -2567,7 +2669,7 @@ fi
|
||||
|
||||
|
||||
|
||||
#make $MAKEFLAGS LDFLAGS="-Wl,--hash-style=gnu" CLIENT_NAME=../binaries/Linux/intel/glibc/vlmcs-x64-glibc-openssl1.0.0-hard-EXPERIMENTAL CRYPTO=openssl_with_aes CFLAGS="$SMALL -pipe -flto=jobserver -fwhole-program" PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x64-glibc-openssl1.0.0-hard-EXPERIMENTAL CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic" && \
|
||||
#make $MAKEFLAGS LDFLAGS="-Wl,--hash-style=gnu" CLIENT_NAME=../binaries/Linux/intel/glibc/vlmcs-x64-glibc-openssl1.0.0-hard-EXPERIMENTAL CRYPTO=openssl_with_aes CFLAGS="$SMALL -pipe -flto=16 -fwhole-program" PROGRAM_NAME=../binaries/Linux/intel/glibc/vlmcsd-x64-glibc-openssl1.0.0-hard-EXPERIMENTAL CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic" && \
|
||||
# Linux x64 glibc with OpenSSL 1.0.x support
|
||||
INSTALLDIR=../binaries/Linux/intel/glibc/
|
||||
SUFFIX=-x64-glibc-openssl1.0.0-hard-EXPERIMENTAL
|
||||
@ -2575,7 +2677,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m64 -mtune=generic"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -2601,7 +2703,7 @@ export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
|
||||
#export CC=/opt/toolchains/x86_64_gcc-4.9-linaro_musl-1.1.6/bin/x86_64-openwrt-linux-musl-gcc-4.9.2
|
||||
export CC=/opt/toolchains/x86_64-musl-gcc-5.3.0-binutils-2.25.1/bin/x86_64-Hotbird-linux-musl-gcc.br_real
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m64 -mtune=generic"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -2633,7 +2735,7 @@ fi
|
||||
|
||||
|
||||
|
||||
#make $MAKEFLAGS CC=/opt/toolchains/x86_64-uclibc-0.9.33/bin/x86_64-linux-gcc LDFLAGS="-Wl,--hash-style=gnu" CLIENT_NAME=../binaries/Linux/intel/uclibc/vlmcs-x64-uclibc PROGRAM_NAME=../binaries/Linux/intel/uclibc/vlmcsd-x64-uclibc CFLAGS="$SMALL -flto=jobserver -fwhole-program -pipe -fno-stack-protector" && \
|
||||
#make $MAKEFLAGS CC=/opt/toolchains/x86_64-uclibc-0.9.33/bin/x86_64-linux-gcc LDFLAGS="-Wl,--hash-style=gnu" CLIENT_NAME=../binaries/Linux/intel/uclibc/vlmcs-x64-uclibc PROGRAM_NAME=../binaries/Linux/intel/uclibc/vlmcsd-x64-uclibc CFLAGS="$SMALL -flto=16 -fwhole-program -pipe -fno-stack-protector" && \
|
||||
# Linux x64 uclibc
|
||||
INSTALLDIR=../binaries/Linux/intel/uclibc/
|
||||
SUFFIX=-x64-uclibc
|
||||
@ -2641,7 +2743,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/x86_64-uclibc-0.9.33/bin/x86_64-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -m64 -mtune=generic"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
@ -2704,7 +2806,7 @@ export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/mips32el-uclibc-0.9.33/bin/mipsel-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mips32"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
@ -2743,7 +2845,7 @@ export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
|
||||
export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
|
||||
export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
|
||||
export CC=/opt/toolchains/armhfv6-glibc-2.19/bin/arm-linux-gcc
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv6zk -mfpu=vfp -mfloat-abi=hard -mtune=arm1176jzf-s"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -march=armv6zk -mfpu=vfp -mfloat-abi=hard -mtune=arm1176jzf-s"
|
||||
export FEATURES=full
|
||||
export CFLAGS="$SMALLCC"
|
||||
export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
|
||||
|
@ -2,9 +2,7 @@
|
||||
|
||||
cd ~/vlmcsd/hotbird64-mass-build
|
||||
|
||||
export VLMCSD_VERSION=svn$(ssh root@ubuntu64.internal "cd x; svnversion")
|
||||
scp -p make_minix root@ubuntu64.internal:x/hotbird64-mass-build
|
||||
scp -pr root@ubuntu64.internal:x/* ..
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
|
||||
BINDIR="bin"
|
||||
cd ..
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
SMALLCC="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||
SMALLLD="-pipe -Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none"
|
||||
SMALL="$SMALLCC $SMALLLD"
|
||||
@ -12,6 +12,58 @@ BINDIR="../bin"
|
||||
MANDIR="../man"
|
||||
cd ../src
|
||||
|
||||
|
||||
mkdir -p ../binaries/Linux/intel/glibc
|
||||
mkdir -p ../binaries/Linux/intel/uclibc
|
||||
mkdir -p ../binaries/Linux/intel/static
|
||||
mkdir -p ../binaries/Linux/intel/musl
|
||||
|
||||
mkdir -p ../binaries/Linux/sparc/glibc
|
||||
mkdir -p ../binaries/Linux/s390/glibc
|
||||
|
||||
mkdir -p ../binaries/Android/arm/bionic
|
||||
mkdir -p ../binaries/Android/arm/static
|
||||
mkdir -p ../binaries/Android/intel/bionic
|
||||
mkdir -p ../binaries/Android/intel/static
|
||||
mkdir -p ../binaries/Android/mips/bionic
|
||||
mkdir -p ../binaries/Android/mips/static
|
||||
|
||||
mkdir -p ../binaries/Linux/arm/little-endian/glibc
|
||||
mkdir -p ../binaries/Linux/arm/little-endian/musl
|
||||
mkdir -p ../binaries/Linux/arm/little-endian/uclibc
|
||||
mkdir -p ../binaries/Linux/arm/little-endian/static
|
||||
mkdir -p ../binaries/Linux/arm/big-endian/uclibc
|
||||
mkdir -p ../binaries/Linux/arm/big-endian/static
|
||||
|
||||
mkdir -p ../binaries/Linux/mips/little-endian/glibc
|
||||
mkdir -p ../binaries/Linux/mips/little-endian/uclibc
|
||||
mkdir -p ../binaries/Linux/mips/little-endian/static
|
||||
mkdir -p ../binaries/Linux/mips/little-endian/musl
|
||||
mkdir -p ../binaries/Linux/mips/big-endian/uclibc
|
||||
mkdir -p ../binaries/Linux/mips/big-endian/static
|
||||
mkdir -p ../binaries/Linux/mips/big-endian/glibc
|
||||
mkdir -p ../binaries/Linux/mips/big-endian/musl
|
||||
|
||||
mkdir -p ../binaries/Linux/ppc/little-endian/glibc
|
||||
mkdir -p ../binaries/Linux/ppc/big-endian/glibc
|
||||
mkdir -p ../binaries/Linux/ppc/big-endian/uclibc
|
||||
mkdir -p ../binaries/Linux/ppc/big-endian/musl
|
||||
mkdir -p ../binaries/Linux/ppc/big-endian/static
|
||||
|
||||
mkdir -p ../binaries/MacOSX/intel
|
||||
mkdir -p ../binaries/MacOSX/ppc
|
||||
mkdir -p ../binaries/iOS/arm
|
||||
|
||||
mkdir -p ../binaries/FreeBSD/intel
|
||||
mkdir -p ../binaries/NetBSD/intel
|
||||
mkdir -p ../binaries/OpenBSD/intel
|
||||
mkdir -p ../binaries/DragonFly/intel
|
||||
mkdir -p ../binaries/Solaris/intel
|
||||
mkdir -p ../binaries/Windows/intel
|
||||
mkdir -p ../binaries/Minix/intel
|
||||
mkdir -p ../binaries/Hurd/intel
|
||||
|
||||
|
||||
## IBM S/390
|
||||
|
||||
export CFLAGS="$SMALLCC"
|
||||
@ -22,17 +74,17 @@ export FEATURES=full
|
||||
export CC=s390x-linux-gnu-gcc
|
||||
export VERBOSE=3
|
||||
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-s390-glibc
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-s390-glibc
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-s390-glibc
|
||||
export MULTI_NAME=~/x/binaries/Linux/s390/glibc/vlmcsdmulti-s390-glibc
|
||||
export CLIENT_NAME=~/x/binaries/Linux/s390/glibc/vlmcs-s390-glibc
|
||||
export PROGRAM_NAME=~/x/binaries/Linux/s390/glibc/vlmcsd-s390-glibc
|
||||
|
||||
make -B -j`nproc` allmulti
|
||||
|
||||
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mzarch -mpacked-stack -msmall-exec"
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-s390x-glibc
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-s390x-glibc
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-s390x-glibc
|
||||
export MULTI_NAME=~/x/binaries/Linux/s390/glibc/vlmcsdmulti-s390x-glibc
|
||||
export CLIENT_NAME=~/x/binaries/Linux/s390/glibc/vlmcs-s390x-glibc
|
||||
export PROGRAM_NAME=~/x/binaries/Linux/s390/glibc/vlmcsd-s390x-glibc
|
||||
|
||||
make -B -j`nproc` allmulti
|
||||
|
||||
@ -44,9 +96,9 @@ export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mcpu=v7"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export CC=sparc64-linux-gnu-gcc
|
||||
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-sparc64v9-glibc
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-sparc64v9-glibc
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-sparc64v9-glibc
|
||||
export MULTI_NAME=~/x/binaries/Linux/sparc/glibc/vlmcsdmulti-sparc64v9-glibc
|
||||
export CLIENT_NAME=~/x/binaries/Linux/sparc/glibc/vlmcs-sparc64v9-glibc
|
||||
export PROGRAM_NAME=~/x/binaries/Linux/sparc/glibc/vlmcsd-sparc64v9-glibc
|
||||
|
||||
make -B -j`nproc` allmulti
|
||||
|
||||
@ -59,16 +111,16 @@ export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips64 -mno-mips16"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export CC=mips64-linux-gnuabi64-gcc
|
||||
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-mips64-glibc
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-mips64-glibc
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-mips64-glibc
|
||||
export MULTI_NAME=~/x/binaries/Linux/mips/big-endian/glibc/vlmcsdmulti-mips64-glibc
|
||||
export CLIENT_NAME=~/x/binaries/Linux/mips/big-endian/glibc/vlmcs-mips64-glibc
|
||||
export PROGRAM_NAME=~/x/binaries/Linux/mips/big-endian/glibc/vlmcsd-mips64-glibc
|
||||
|
||||
make -B -j`nproc` allmulti
|
||||
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips64 -mmicromips"
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-mips64mm-glibc
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-mips64mm-glibc
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-mips64mm-glibc
|
||||
export MULTI_NAME=~/x/binaries/Linux/mips/big-endian/glibc/vlmcsdmulti-mips64mm-glibc
|
||||
export CLIENT_NAME=~/x/binaries/Linux/mips/big-endian/glibc/vlmcs-mips64mm-glibc
|
||||
export PROGRAM_NAME=~/x/binaries/Linux/mips/big-endian/glibc/vlmcsd-mips64mm-glibc
|
||||
|
||||
make -B -j`nproc` allmulti
|
||||
|
||||
@ -80,45 +132,24 @@ export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips64 -mno-mips16"
|
||||
export LDFLAGS="$SMALLLD"
|
||||
export CC=mips64el-linux-gnuabi64-gcc
|
||||
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-mips64el-glibc
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-mips64el-glibc
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-mips64el-glibc
|
||||
export MULTI_NAME=~/x/binaries/Linux/mips/little-endian/glibc/vlmcsdmulti-mips64el-glibc
|
||||
export CLIENT_NAME=~/x/binaries/Linux/mips/little-endian/glibc/vlmcs-mips64el-glibc
|
||||
export PROGRAM_NAME=~/x/binaries/Linux/mips/little-endian/glibc/vlmcsd-mips64el-glibc
|
||||
|
||||
make -B -j`nproc` allmulti
|
||||
|
||||
export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips64 -mmicromips"
|
||||
export MULTI_NAME=$BINDIR/vlmcsdmulti-mips64elmm-glibc
|
||||
export CLIENT_NAME=$BINDIR/vlmcs-mips64elmm-glibc
|
||||
export PROGRAM_NAME=$BINDIR/vlmcsd-mips64elmm-glibc
|
||||
export MULTI_NAME=~/x/binaries/Linux/mips/little-endian/glibc/vlmcsdmulti-mips64elmm-glibc
|
||||
export CLIENT_NAME=~/x/binaries/Linux/mips/little-endian/glibc/vlmcs-mips64elmm-glibc
|
||||
export PROGRAM_NAME=~/x/binaries/Linux/mips/little-endian/glibc/vlmcsd-mips64elmm-glibc
|
||||
|
||||
make -B -j`nproc` allmulti
|
||||
|
||||
cd $BINDIR
|
||||
sstrip -z *
|
||||
|
||||
|
||||
|
||||
if [ "$1" == "nocopy" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd $MANDIR
|
||||
|
||||
mkdir -p /usr/local/man/man1 2>/dev/null
|
||||
mkdir -p /usr/local/man/man5 2>/dev/null
|
||||
mkdir -p /usr/local/man/man8 2>/dev/null
|
||||
mkdir -p /usr/local/man/man7 2>/dev/null
|
||||
cp -a vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/
|
||||
cp -a vlmcsd.7 /usr/local/man/man7/
|
||||
cp -a vlmcsd.8 /usr/local/man/man8/
|
||||
cp -a vlmcsd.ini.5 /usr/local/man/man5/
|
||||
pbzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
|
||||
|
||||
cd $BINDIR
|
||||
|
||||
scp -p vlmcsdmulti-s390-glibc vlmcs-s390-glibc vlmcsd-s390-glibc vlmcsdmulti-s390x-glibc vlmcs-s390x-glibc vlmcsd-s390x-glibc ubuntu64.internal:x/binaries/Linux/s390/glibc
|
||||
scp -p vlmcsdmulti-sparc64v9-glibc vlmcs-sparc64v9-glibc vlmcsd-sparc64v9-glibc ubuntu64.internal:x/binaries/Linux/sparc/glibc
|
||||
scp -p vlmcsdmulti-mips64-glibc vlmcs-mips64-glibc vlmcsd-mips64-glibc vlmcsdmulti-mips64mm-glibc vlmcs-mips64mm-glibc vlmcsd-mips64mm-glibc ubuntu64.internal:x/binaries/Linux/mips/big-endian/glibc
|
||||
scp -p vlmcsdmulti-mips64el-glibc vlmcs-mips64el-glibc vlmcsd-mips64el-glibc vlmcsdmulti-mips64elmm-glibc vlmcs-mips64elmm-glibc vlmcsd-mips64elmm-glibc ubuntu64.internal:x/binaries/Linux/mips/little-endian/glibc
|
||||
scp -p -P 2222 vlmcsdmulti-s390-glibc vlmcs-s390-glibc vlmcsd-s390-glibc vlmcsdmulti-s390x-glibc vlmcs-s390x-glibc vlmcsd-s390x-glibc s390:vlmcsd
|
||||
scp -p -P 2222 vlmcsdmulti-s390-glibc vlmcsdmulti-s390x-glibc s390:/usr/local/sbin
|
||||
scp -p -P 2222 ~/x/binaries/Linux/s390/glibc/vlmcsdmulti-s390-glibc ~/x/binaries/Linux/s390/glibc/vlmcs-s390-glibc ~/x/binaries/Linux/s390/glibc/vlmcsd-s390-glibc ~/x/binaries/Linux/s390/glibc/vlmcsdmulti-s390x-glibc ~/x/binaries/Linux/s390/glibc/vlmcs-s390x-glibc ~/x/binaries/Linux/s390/glibc/vlmcsd-s390x-glibc s390:vlmcsd
|
||||
scp -p -P 2222 ~/x/binaries/Linux/s390/glibc/vlmcsdmulti-s390-glibc ~/x/binaries/Linux/s390/glibc/vlmcsdmulti-s390x-glibc s390:/usr/local/sbin
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/pkg/bin/bash
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
export VERBOSE=3
|
||||
export DNS_PARSER=OS
|
||||
|
||||
|
154
hotbird64-mass-build/make_nonbs
Executable file
154
hotbird64-mass-build/make_nonbs
Executable file
@ -0,0 +1,154 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $(id -u) != 0 ]; then
|
||||
echo "Must be root to run this"
|
||||
exit 5
|
||||
fi
|
||||
|
||||
cd "$( dirname "$0" )"
|
||||
|
||||
IS64ONLY=0
|
||||
|
||||
if [ "$(uname -r|grep Microsoft)" != "" ]; then
|
||||
IS64ONLY=1
|
||||
echo "Warning 32-bit toolchains do not run."
|
||||
fi
|
||||
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
|
||||
export VERBOSE=3
|
||||
export DNS_PARSER=internal
|
||||
|
||||
MAKEFLAGS="-j200 -B"
|
||||
REUSEOBJFLAGS="-j200"
|
||||
SMALLCC="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||
SMALLLD="-pipe -Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none"
|
||||
SMALL="$SMALLCC $SMALLLD"
|
||||
|
||||
rm -f vlmcs vlmcsdmulti vlmcsd 2>/dev/null
|
||||
rm -fr ../binaries
|
||||
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/intel/glibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/intel/uclibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/intel/static
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/intel/musl
|
||||
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/sparc/glibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/s390/glibc
|
||||
|
||||
mkdir -p ../../debian/root/x/binaries/Android/arm/bionic
|
||||
mkdir -p ../../debian/root/x/binaries/Android/arm/static
|
||||
mkdir -p ../../debian/root/x/binaries/Android/intel/bionic
|
||||
mkdir -p ../../debian/root/x/binaries/Android/intel/static
|
||||
mkdir -p ../../debian/root/x/binaries/Android/mips/bionic
|
||||
mkdir -p ../../debian/root/x/binaries/Android/mips/static
|
||||
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/arm/little-endian/glibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/arm/little-endian/musl
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/arm/little-endian/uclibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/arm/little-endian/static
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/arm/big-endian/uclibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/arm/big-endian/static
|
||||
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/mips/little-endian/glibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/mips/little-endian/uclibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/mips/little-endian/static
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/mips/little-endian/musl
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/mips/big-endian/uclibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/mips/big-endian/static
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/mips/big-endian/glibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/mips/big-endian/musl
|
||||
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/ppc/little-endian/glibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/ppc/big-endian/glibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/ppc/big-endian/uclibc
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/ppc/big-endian/musl
|
||||
mkdir -p ../../debian/root/x/binaries/Linux/ppc/big-endian/static
|
||||
|
||||
mkdir -p ../../debian/root/x/binaries/MacOSX/intel
|
||||
mkdir -p ../../debian/root/x/binaries/MacOSX/ppc
|
||||
mkdir -p ../../debian/root/x/binaries/iOS/arm
|
||||
|
||||
mkdir -p ../../debian/root/x/binaries/FreeBSD/intel
|
||||
mkdir -p ../../debian/root/x/binaries/NetBSD/intel
|
||||
mkdir -p ../../debian/root/x/binaries/OpenBSD/intel
|
||||
mkdir -p ../../debian/root/x/binaries/DragonFly/intel
|
||||
mkdir -p ../../debian/root/x/binaries/Solaris/intel
|
||||
mkdir -p ../../debian/root/x/binaries/Windows/intel
|
||||
mkdir -p ../../debian/root/x/binaries/Minix/intel
|
||||
mkdir -p ../../debian/root/x/binaries/Hurd/intel
|
||||
|
||||
../../bin/prepare-debian
|
||||
OLDHOME=$HOME
|
||||
export HOME=/root
|
||||
chroot ../../debian /root/x/hotbird64-mass-build/make_bs
|
||||
chroot ../../debian /root/x/hotbird64-mass-build/make_multilib_linux
|
||||
export HOME=$OLDHOME
|
||||
|
||||
rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
|
||||
export STAGING_DIR=.
|
||||
|
||||
cd ../src
|
||||
pwd
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Linux x32 glibc
|
||||
export FEATURES=full
|
||||
export MULTI_NAME=../../debian/root/x/binaries/Linux/intel/glibc/vlmcsdmulti-x32-glibc
|
||||
export CLIENT_NAME=../../debian/root/x/binaries/Linux/intel/glibc/vlmcs-x32-glibc
|
||||
export PROGRAM_NAME=../../debian/root/x/binaries/Linux/intel/glibc/vlmcsd-x32-glibc
|
||||
export CC=gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mx32 -march=nocona -mtune=generic"
|
||||
export LDFLAGS="-fuse-ld=bfd $SMALLLD -Wl,--hash-style=gnu"
|
||||
export THREADS=0
|
||||
export NOPROCFS=0
|
||||
export AUXV=1
|
||||
|
||||
make DNS_PARSER=OS $MAKEFLAGS allmulti
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
|
||||
exit $?
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
# Linux x32 glibc threads
|
||||
export FEATURES=full
|
||||
export PROGRAM_NAME=../../debian/root/x/binaries/Linux/intel/glibc/vlmcsd-x32-glibc-threads
|
||||
export CC=gcc
|
||||
export CFLAGS="$SMALLCC"
|
||||
export PLATFORMFLAGS="-flto=16 -fwhole-program -mx32 -march=nocona -mtune=generic"
|
||||
export LDFLAGS="-fuse-ld=bfd $SMALLLD -Wl,--hash-style=gnu -lpthread"
|
||||
export THREADS=1
|
||||
export NOPROCFS=0
|
||||
export AUXV=1
|
||||
|
||||
make DNS_PARSER=OS $MAKEFLAGS $PROGRAM_NAME
|
||||
|
||||
if [ $? != 0 ]; then
|
||||
echo Error creating $PROGRAM_NAME
|
||||
exit $?
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
make alldocs
|
||||
|
||||
|
||||
mkdir -p /usr/local/man/man1 2>/dev/null
|
||||
mkdir -p /usr/local/man/man5 2>/dev/null
|
||||
mkdir -p /usr/local/man/man8 2>/dev/null
|
||||
mkdir -p /usr/local/man/man7 2>/dev/null
|
||||
cp -a man/vlmcs.1 man/vlmcsdmulti.1 /usr/local/man/man1/
|
||||
cp -a man/vlmcsd-floppy.7 man/vlmcsd.7 /usr/local/man/man7/
|
||||
cp -a man/vlmcsd.8 /usr/local/man/man8/
|
||||
cp -a man/vlmcsd.ini.5 /usr/local/man/man5/
|
||||
pbzip2 -f -9 /usr/local/man/man7/vlmcsd-floppy.7 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
|
||||
|
||||
mandb >/dev/null 2>&1
|
@ -1,6 +1,6 @@
|
||||
#!/usr/local/bin/bash
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
export VERBOSE=3
|
||||
export DNS_PARSER=OS
|
||||
|
||||
@ -16,10 +16,10 @@ REUSEOBJFLAGS="-j12"
|
||||
CF="-static-libgcc -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||
CF45="-static-libgcc -pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||
CFCLANG="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
|
||||
LF="-Wl,-z,norelro"
|
||||
LFCLANG="-Wl,-z,norelro"
|
||||
LF="-lpthread -Wl,-z,norelro"
|
||||
LFCLANG="-lpthread -Wl,-z,norelro"
|
||||
|
||||
gmake -Bj12 allmulti $MAKEFLAGS CC=egcc MULTI_NAME=$BINDIR/vlmcsdmulti-OpenBSD-x64 PROGRAM_NAME=$BINDIR/vlmcsd-OpenBSD-x64 CLIENT_NAME=$BINDIR/vlmcs-OpenBSD-x64 CFLAGS="$CF" LDFLAGS="$LF"
|
||||
gmake -Bj12 allmulti $MAKEFLAGS CC=egcc THREADS=1 MULTI_NAME=$BINDIR/vlmcsdmulti-OpenBSD-x64 PROGRAM_NAME=$BINDIR/vlmcsd-OpenBSD-x64 CLIENT_NAME=$BINDIR/vlmcs-OpenBSD-x64 CFLAGS="$CF" LDFLAGS="$LF"
|
||||
|
||||
#gmake allmulti $MAKEFLAGS CAT=2 MULTI_NAME=vlmcsdmulti-OpenBSD-x86 PROGRAM_NAME=vlmcsd-OpenBSD-x86 CLIENT_NAME=vlmcs-OpenBSD-x86 CFLAGS="$CF45 -m32" LDFLAGS="$LF"
|
||||
|
||||
@ -30,6 +30,7 @@ cd $BINDIR
|
||||
strip -s --strip-unneeded --remove-section=.eh_frame_hdr --remove-section=.eh_frame --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||
#sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-*
|
||||
|
||||
cp -f ../etc/vlmcsd.kmd /etc
|
||||
cp -f vlmcsd-OpenBSD-x64 /usr/local/sbin/vlmcsd
|
||||
cp -f vlmcs-OpenBSD-x64 /usr/local/bin/vlmcs
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
export VERBOSE=3
|
||||
export DNS_PARSER=OS
|
||||
|
||||
@ -49,10 +49,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=$BINDIR/vlmcsdmulti-MacOSX-ppc PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-ppc CLIENT_NAME=$BINDIR/vlmcs-MacOSX-ppc CC=gcc CFLAGS="$CFGCC42 -isysroot ~/toolchains/MacOSX10.5.sdk -arch ppc -mmacosx-version-min=10.0" && \
|
||||
|
||||
|
||||
make $MAKEFLAGS allmulti MULTI_NAME=$BINDIR/vlmcsdmulti-MacOSX-x86-gcc CLIENT_NAME=$BINDIR/vlmcs-MacOSX-x86-gcc PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-x86-gcc CC=gcc-6 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
|
||||
make $MAKEFLAGS vlmcsd THREADS=1 PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-x86-threads-gcc CC=gcc-6 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
|
||||
make $MAKEFLAGS allmulti MULTI_NAME=$BINDIR/vlmcsdmulti-MacOSX-x64-gcc CLIENT_NAME=$BINDIR/vlmcs-MacOSX-x64-gcc PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-x64-gcc CC=gcc-6 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
|
||||
make $MAKEFLAGS vlmcsd THREADS=1 PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-x64-threads-gcc CC=gcc-6 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
|
||||
make $MAKEFLAGS allmulti MULTI_NAME=$BINDIR/vlmcsdmulti-MacOSX-x86-gcc CLIENT_NAME=$BINDIR/vlmcs-MacOSX-x86-gcc PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-x86-gcc CC=gcc-7 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
|
||||
make $MAKEFLAGS vlmcsd THREADS=1 PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-x86-threads-gcc CC=gcc-7 CFLAGS="$CFGCC" PLATFORMFLAGS="-m32 -march=core2 -mmacosx-version-min=10.11" && \
|
||||
make $MAKEFLAGS allmulti MULTI_NAME=$BINDIR/vlmcsdmulti-MacOSX-x64-gcc CLIENT_NAME=$BINDIR/vlmcs-MacOSX-x64-gcc PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-x64-gcc CC=gcc-7 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
|
||||
make $MAKEFLAGS vlmcsd THREADS=1 PROGRAM_NAME=$BINDIR/vlmcsd-MacOSX-x64-threads-gcc CC=gcc-7 CFLAGS="$CFGCC" PLATFORMFLAGS="-m64 -march=core2 -mmacosx-version-min=10.11" && \
|
||||
|
||||
# Sign the iOS binaries
|
||||
#ldid -S *iOS*
|
||||
@ -64,6 +64,7 @@ MANDIR="../man"
|
||||
|
||||
rm -fr *.dSYM
|
||||
|
||||
sudo cp -p ../etc/vlmcsd.kmd /usr/local/bin
|
||||
sudo cp -p vlmcs-MacOSX-x86-gcc /usr/local/bin/vlmcs
|
||||
sudo cp -p vlmcsd-MacOSX-x86-gcc /usr/local/bin/vlmcsd
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
export VERBOSE=3
|
||||
export CAT=2
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
cd "$( dirname "$0" )"
|
||||
|
||||
export VLMCSD_VERSION="svn`svnversion`"
|
||||
export VLMCSD_VERSION=$(git describe)
|
||||
|
||||
msbuild='/cygdrive/c/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe'
|
||||
msbuild='/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/MSBuild/15.0/Bin/amd64/msbuild.exe'
|
||||
version="$VLMCSD_VERSION, built $(date -u '+%Y-%m-%d %H:%M:%S') UTC"
|
||||
|
||||
make -C .. clean
|
||||
@ -41,7 +41,7 @@ make $MAKEFLAGS MSRPC=1 THREADS=1 DNS_PARSER=internal CLIENT_NAME=../bin/vlmcs-c
|
||||
make $MAKEFLAGS vlmcsdmulti MSRPC=1 THREADS=1 DNS_PARSER=internal MULTI_NAME=../bin/vlmcsdmulti-cygwin-msrpc-x64 CC=x86_64-pc-cygwin-gcc.exe CFLAGS="$CFMSRPC -flto=jobserver" PLATFORMFLAGS="$PF64" LDFLAGS="$LFCYG64"
|
||||
make $MAKEFLAGS vlmcsdmulti MSRPC=1 THREADS=1 DNS_PARSER=internal MULTI_NAME=../bin/vlmcsdmulti-cygwin-msrpc-x86 CC=i686-pc-cygwin-gcc.exe CFLAGS="$CFMSRPC -flto=jobserver" PLATFORMFLAGS="$PF32" LDFLAGS="$LFCYG32"
|
||||
|
||||
make $MAKEFLAGS THREADS=1 MSRPC=1 DNS_PARSER=internal CLIENT_NAME=../bin/vlmcs-cygwin-msrpc-x86-openssl-EXPERIMENTAL CRYPTO=openssl_with_aes PROGRAM_NAME=../bin/vlmcsd-cygwin-x86-openssl-EXPERIMENTAL CC=i686-pc-cygwin-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF32" LDFLAGS="$LFCYG32"
|
||||
#make $MAKEFLAGS THREADS=1 MSRPC=1 DNS_PARSER=internal CLIENT_NAME=../bin/vlmcs-cygwin-msrpc-x86-openssl-EXPERIMENTAL CRYPTO=openssl_with_aes PROGRAM_NAME=../bin/vlmcsd-cygwin-x86-openssl-EXPERIMENTAL CC=i686-pc-cygwin-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF32" LDFLAGS="$LFCYG32"
|
||||
make $MAKEFLAGS THREADS=1 MSRPC=1 DNS_PARSER=internal CLIENT_NAME=../bin/vlmcs-cygwin-msrpc-x64-openssl-EXPERIMENTAL CRYPTO=openssl_with_aes PROGRAM_NAME=../bin/vlmcsd-cygwin-x64-openssl-EXPERIMENTAL CC=x86_64-pc-cygwin-gcc.exe CFLAGS="$CFMSRPC" PLATFORMFLAGS="$PF64" LDFLAGS="$LFCYG64"
|
||||
|
||||
export CAT=2
|
||||
@ -69,12 +69,14 @@ echo "Installing binaries"
|
||||
|
||||
cp -p bin/vlmcs-cygwin-x64.exe /usr/local/bin/vlmcs &
|
||||
cp -p bin/vlmcsd-cygwin-x64.exe /usr/local/bin/vlmcsd &
|
||||
cp -p etc/vlmcsd.kmd /usr/local/bin &
|
||||
cp -p bin/cygkms64.dll /usr/local/bin/cygkms.dll &
|
||||
|
||||
cp -p bin/libkms32.dll /cygdrive/c/nttools/x86 &
|
||||
cp -p bin/libkms64.dll /cygdrive/c/nttools/x64 &
|
||||
cp -p bin/vlmcsd-Windows-x86.exe /cygdrive/c/nttools/x86/vlmcsd.exe
|
||||
cp -p bin/vlmcs-Windows-x86.exe /cygdrive/c/nttools/x86/vlmcs.exe
|
||||
cp -p bin/vlmcsd-Windows-x86.exe /cygdrive/c/nttools/x86/vlmcsd.exe &
|
||||
cp -p bin/vlmcs-Windows-x86.exe /cygdrive/c/nttools/x86/vlmcs.exe &
|
||||
cp -p etc/vlmcsd.kmd /cygdrive/c/nttools/x86
|
||||
|
||||
#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 &
|
||||
|
4
lib/.gitignore
vendored
Normal file
4
lib/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
@ -19,7 +19,7 @@ DOSDOCS = $(PDFDOCS:.pdf=.dos.txt)
|
||||
groff -Thtml -mandoc -c $< > $@
|
||||
|
||||
%.unix.txt : %
|
||||
groff -P -c -Tutf8 -mandoc -c $< | col -bx > $@
|
||||
groff -P -c -Tascii -mandoc -c $< | col -bx > $@
|
||||
|
||||
%.dos.txt : %.unix.txt
|
||||
# unix2dos -n $< $@
|
||||
|
@ -1,5 +1,5 @@
|
||||
.mso www.tmac
|
||||
.TH VLMCS 1 "October 2016" "Hotbird64" "KMS Activation Manual"
|
||||
.TH VLMCS 1 "November 2016" "Hotbird64" "KMS Activation Manual"
|
||||
.LO 1
|
||||
|
||||
.SH NAME
|
||||
@ -81,6 +81,11 @@ Force a specific version of the KMS protocol. Valid versions are 4.0, 5.0 and 6.
|
||||
.IP "\fB-4\fR, \fB-5\fR and \fB-6"
|
||||
Force version 4, 5 or 6 of the KMS protocol. These options are actually shortcuts of \fB-K 4.0\fR, \fB-K 5.0\fR and \fB-K 6.0\fR.
|
||||
|
||||
.IP "\fB-j\fR \fIfilename\fR"
|
||||
Use KMS data file \fIfilename\fR. By default vlmcs contains product data that is recent when vlmcs was compiled. You may use a more recent KMS data file that contains additional products.
|
||||
|
||||
If vlmcsd has been compiled to use a default KMS data file, you may use \fB-j-\fR to ignore the default configuration file.
|
||||
|
||||
.IP "\fB-m"
|
||||
Let the client pretend to be a virtual machine. Early versions of Microsoft's
|
||||
KMS server did not increase the client count if the request came from a virtual
|
||||
|
@ -52,8 +52,8 @@ OPTIONS
|
||||
Show help.
|
||||
|
||||
|
||||
-V Displays extended version information. This includes the com‐
|
||||
piler used to build vlmcs, the intended platform and flags (com‐
|
||||
-V Displays extended version information. This includes the com-
|
||||
piler used to build vlmcs, the intended platform and flags (com-
|
||||
pile time options) to build vlmcs. If you have the source code
|
||||
of vlmcsd, you can type make help (or gmake help on systems that
|
||||
do not use the GNU version of make(1) by default) to see the
|
||||
@ -72,7 +72,7 @@ OPTIONS
|
||||
|
||||
|
||||
-l application
|
||||
Request activation for a specific application. Valid applica‐
|
||||
Request activation for a specific application. Valid applica-
|
||||
tions can be displayed by using -x. The default application is
|
||||
Windows Vista Business. The list of available applications is
|
||||
not complete. You may supply GUIDs with -a, -k and -s to specify
|
||||
@ -91,7 +91,7 @@ OPTIONS
|
||||
vlmcs ignores the minor protocol number (e.g. sends a v4 request
|
||||
for version 4.1). If the major version number is less then 4, it
|
||||
sends a v4 request. If the major version is greater then 6, it
|
||||
sends a v6 request. In any case the protocol-version as speci‐
|
||||
sends a v6 request. In any case the protocol-version as speci-
|
||||
fied by -K is put in the version fields of the request.
|
||||
|
||||
|
||||
@ -100,16 +100,25 @@ OPTIONS
|
||||
actually shortcuts of -K 4.0, -K 5.0 and -K 6.0.
|
||||
|
||||
|
||||
-j filename
|
||||
Use KMS data file filename. By default vlmcs contains product
|
||||
data that is recent when vlmcs was compiled. You may use a more
|
||||
recent KMS data file that contains additional products.
|
||||
|
||||
If vlmcsd has been compiled to use a default KMS data file, you
|
||||
may use -j- to ignore the default configuration file.
|
||||
|
||||
|
||||
-m Let the client pretend to be a virtual machine. Early versions
|
||||
of Microsoft's KMS server did not increase the client count if
|
||||
the request came from a virtual machine. Newer versions ignore
|
||||
this flag.
|
||||
|
||||
|
||||
-d Use NetBIOS names instead of DNS names. By default vlmcsd gener‐
|
||||
ates some random DNS names for each request. If you prefer Net‐
|
||||
-d Use NetBIOS names instead of DNS names. By default vlmcsd gener-
|
||||
ates some random DNS names for each request. If you prefer Net-
|
||||
BIOS names, you may use -d. A real Microsoft activation client
|
||||
uses DNS names or NetBIOS depending on the client name configu‐
|
||||
uses DNS names or NetBIOS depending on the client name configu-
|
||||
ration. KMS servers treat the workstation name as a comment that
|
||||
affects logging only. Clients will be identified by a GUID that
|
||||
can be specified using -c. -d has no effect if you also specify
|
||||
@ -117,7 +126,7 @@ OPTIONS
|
||||
|
||||
|
||||
-a application-guid
|
||||
Send requests with a specific application-guid. There are cur‐
|
||||
Send requests with a specific application-guid. There are cur-
|
||||
rently only three known valid application-guids:
|
||||
|
||||
|
||||
@ -126,7 +135,7 @@ OPTIONS
|
||||
0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
|
||||
|
||||
|
||||
A Microsoft KMS server uses these GUIDs to have seperate coun‐
|
||||
A Microsoft KMS server uses these GUIDs to have seperate coun-
|
||||
ters for the already activated clients. A client that does not
|
||||
contact the KMS server within 30 days will be deleted from the
|
||||
database. Emulated KMS servers are always fully charged.
|
||||
@ -144,8 +153,8 @@ OPTIONS
|
||||
The activation-guid defines the actual product, e.g. "Windows
|
||||
8.1 Professional WMC KMSCLIENT edition". A activation-guid maps
|
||||
1:1 to a product key. However, neither a Microsoft KMS server
|
||||
nor emulated servers check this id. The activation-guid is use‐
|
||||
ful in logging to get a specific product description like "Win‐
|
||||
nor emulated servers check this id. The activation-guid is use-
|
||||
ful in logging to get a specific product description like "Win-
|
||||
dows 8.1 Professional WMC". A list of current activation-guids
|
||||
can be found in kms.c (table ExtendedProductList).
|
||||
|
||||
@ -162,7 +171,7 @@ OPTIONS
|
||||
test an emulated KMS server whether it suffers from memory
|
||||
leaks. To test for memory leaks use -n with a large number of
|
||||
requests (> 100000) and then test twice (with and without -T).
|
||||
This option may become neccessary for future versions of Micro‐
|
||||
This option may become neccessary for future versions of Micro-
|
||||
soft's KMS server because multiple requests with different
|
||||
clients-guids for the same kms-id-guid are impossible in a real
|
||||
KMS szenario over the same TCP connection.
|
||||
@ -186,9 +195,9 @@ OPTIONS
|
||||
|
||||
|
||||
-G filename
|
||||
Grabs ePIDs and HWIDs from a KMS server and writes the informa‐
|
||||
tion to filename in format suitable to be used as a configura‐
|
||||
tion file (aka ini file) for vlmcsd(8). This is especially use‐
|
||||
Grabs ePIDs and HWIDs from a KMS server and writes the informa-
|
||||
tion to filename in format suitable to be used as a configura-
|
||||
tion file (aka ini file) for vlmcsd(8). This is especially use-
|
||||
ful if you have access to a genuine KMS server and want to use
|
||||
the same data with vlmcsd(8).
|
||||
|
||||
@ -220,8 +229,8 @@ OPTIONS
|
||||
Reports a specific license status to the KMS server. status is a
|
||||
number that can be from 0 to 6. 0=unlicensed, 1=licensed, 2=OOB
|
||||
grace, 3=OOT grace, 4=Non-genuinue grace, 5=notification,
|
||||
6=extended grace. Refer to TechNet ⟨http://
|
||||
technet.microsoft.com/en-us/library/ff686879.aspx#_Toc257201371⟩
|
||||
6=extended grace. Refer to TechNet <http://
|
||||
technet.microsoft.com/en-us/library/ff686879.aspx#_Toc257201371>
|
||||
for more information. A Microsoft KMS server collects this
|
||||
information for statistics only.
|
||||
|
||||
@ -253,7 +262,7 @@ OPTIONS
|
||||
Disables (-N0) or enables (-N1) the NDR64 transfer syntax in the
|
||||
RPC protocol. Disable NDR64 only in case of problems. If NDR64
|
||||
is not used, vlmcs cannot detect many RPC protocol errors in KMS
|
||||
emulators. If you want to test whether a KMS emulator fully sup‐
|
||||
emulators. If you want to test whether a KMS emulator fully sup-
|
||||
ports NDR64, you must use the -n option to send at least two
|
||||
requests. This is because Microsoft's client always sends the
|
||||
first request using NDR32 syntax and subsequent requests using
|
||||
@ -262,7 +271,7 @@ OPTIONS
|
||||
|
||||
-B0 and -B1
|
||||
Disables (-B0) or enables (-B1) bind time feature negotiation
|
||||
(BTFN) in the RPC protocol. Disable BTFN only in case of prob‐
|
||||
(BTFN) in the RPC protocol. Disable BTFN only in case of prob-
|
||||
lems. If BTFN is not used, vlmcs cannot detect many RPC protocol
|
||||
errors in KMS emulators.
|
||||
|
||||
@ -305,7 +314,7 @@ EXAMPLES
|
||||
|
||||
BUGS
|
||||
Some platforms (e.g. Solaris) may have a man(7) system that does not
|
||||
handle URLs. URLs may be omitted in the documentation on those plat‐
|
||||
handle URLs. URLs may be omitted in the documentation on those plat-
|
||||
forms. Cygwin, Linux, FreeBSD and Mac OS X are known to work correctly.
|
||||
|
||||
|
||||
@ -314,7 +323,7 @@ AUTHOR
|
||||
|
||||
|
||||
CREDITS
|
||||
Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos‐
|
||||
Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos-
|
||||
ferati87, qad, Ratiborus, vityan666, ...
|
||||
|
||||
|
||||
@ -323,4 +332,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
Hotbird64 October 2016 VLMCS(1)
|
||||
Hotbird64 November 2016 VLMCS(1)
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- Creator : groff version 1.22.3 -->
|
||||
<!-- CreationDate: Fri Oct 21 03:17:10 2016 -->
|
||||
<!-- CreationDate: Sat Oct 20 09:49:39 2018 -->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@ -208,6 +208,17 @@ the version fields of the request.</p>
|
||||
KMS protocol. These options are actually shortcuts of <b>-K
|
||||
4.0</b>, <b>-K 5.0</b> and <b>-K 6.0</b>.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-j</b> <i>filename</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Use KMS data file
|
||||
<i>filename</i>. By default vlmcs contains product data that
|
||||
is recent when vlmcs was compiled. You may use a more recent
|
||||
KMS data file that contains additional products.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">If vlmcsd has
|
||||
been compiled to use a default KMS data file, you may use
|
||||
<b>-j-</b> to ignore the default configuration file.</p>
|
||||
|
||||
<table width="100%" border="0" rules="none" frame="void"
|
||||
cellspacing="0" cellpadding="0">
|
||||
<tr valign="top" align="left">
|
||||
|
BIN
man/vlmcs.1.pdf
BIN
man/vlmcs.1.pdf
Binary file not shown.
@ -52,8 +52,8 @@ OPTIONS
|
||||
Show help.
|
||||
|
||||
|
||||
-V Displays extended version information. This includes the com‐
|
||||
piler used to build vlmcs, the intended platform and flags (com‐
|
||||
-V Displays extended version information. This includes the com-
|
||||
piler used to build vlmcs, the intended platform and flags (com-
|
||||
pile time options) to build vlmcs. If you have the source code
|
||||
of vlmcsd, you can type make help (or gmake help on systems that
|
||||
do not use the GNU version of make(1) by default) to see the
|
||||
@ -72,7 +72,7 @@ OPTIONS
|
||||
|
||||
|
||||
-l application
|
||||
Request activation for a specific application. Valid applica‐
|
||||
Request activation for a specific application. Valid applica-
|
||||
tions can be displayed by using -x. The default application is
|
||||
Windows Vista Business. The list of available applications is
|
||||
not complete. You may supply GUIDs with -a, -k and -s to specify
|
||||
@ -91,7 +91,7 @@ OPTIONS
|
||||
vlmcs ignores the minor protocol number (e.g. sends a v4 request
|
||||
for version 4.1). If the major version number is less then 4, it
|
||||
sends a v4 request. If the major version is greater then 6, it
|
||||
sends a v6 request. In any case the protocol-version as speci‐
|
||||
sends a v6 request. In any case the protocol-version as speci-
|
||||
fied by -K is put in the version fields of the request.
|
||||
|
||||
|
||||
@ -100,16 +100,25 @@ OPTIONS
|
||||
actually shortcuts of -K 4.0, -K 5.0 and -K 6.0.
|
||||
|
||||
|
||||
-j filename
|
||||
Use KMS data file filename. By default vlmcs contains product
|
||||
data that is recent when vlmcs was compiled. You may use a more
|
||||
recent KMS data file that contains additional products.
|
||||
|
||||
If vlmcsd has been compiled to use a default KMS data file, you
|
||||
may use -j- to ignore the default configuration file.
|
||||
|
||||
|
||||
-m Let the client pretend to be a virtual machine. Early versions
|
||||
of Microsoft's KMS server did not increase the client count if
|
||||
the request came from a virtual machine. Newer versions ignore
|
||||
this flag.
|
||||
|
||||
|
||||
-d Use NetBIOS names instead of DNS names. By default vlmcsd gener‐
|
||||
ates some random DNS names for each request. If you prefer Net‐
|
||||
-d Use NetBIOS names instead of DNS names. By default vlmcsd gener-
|
||||
ates some random DNS names for each request. If you prefer Net-
|
||||
BIOS names, you may use -d. A real Microsoft activation client
|
||||
uses DNS names or NetBIOS depending on the client name configu‐
|
||||
uses DNS names or NetBIOS depending on the client name configu-
|
||||
ration. KMS servers treat the workstation name as a comment that
|
||||
affects logging only. Clients will be identified by a GUID that
|
||||
can be specified using -c. -d has no effect if you also specify
|
||||
@ -117,7 +126,7 @@ OPTIONS
|
||||
|
||||
|
||||
-a application-guid
|
||||
Send requests with a specific application-guid. There are cur‐
|
||||
Send requests with a specific application-guid. There are cur-
|
||||
rently only three known valid application-guids:
|
||||
|
||||
|
||||
@ -126,7 +135,7 @@ OPTIONS
|
||||
0ff1ce15-a989-479d-af46-f275c6370663 (Office 2013)
|
||||
|
||||
|
||||
A Microsoft KMS server uses these GUIDs to have seperate coun‐
|
||||
A Microsoft KMS server uses these GUIDs to have seperate coun-
|
||||
ters for the already activated clients. A client that does not
|
||||
contact the KMS server within 30 days will be deleted from the
|
||||
database. Emulated KMS servers are always fully charged.
|
||||
@ -144,8 +153,8 @@ OPTIONS
|
||||
The activation-guid defines the actual product, e.g. "Windows
|
||||
8.1 Professional WMC KMSCLIENT edition". A activation-guid maps
|
||||
1:1 to a product key. However, neither a Microsoft KMS server
|
||||
nor emulated servers check this id. The activation-guid is use‐
|
||||
ful in logging to get a specific product description like "Win‐
|
||||
nor emulated servers check this id. The activation-guid is use-
|
||||
ful in logging to get a specific product description like "Win-
|
||||
dows 8.1 Professional WMC". A list of current activation-guids
|
||||
can be found in kms.c (table ExtendedProductList).
|
||||
|
||||
@ -162,7 +171,7 @@ OPTIONS
|
||||
test an emulated KMS server whether it suffers from memory
|
||||
leaks. To test for memory leaks use -n with a large number of
|
||||
requests (> 100000) and then test twice (with and without -T).
|
||||
This option may become neccessary for future versions of Micro‐
|
||||
This option may become neccessary for future versions of Micro-
|
||||
soft's KMS server because multiple requests with different
|
||||
clients-guids for the same kms-id-guid are impossible in a real
|
||||
KMS szenario over the same TCP connection.
|
||||
@ -186,9 +195,9 @@ OPTIONS
|
||||
|
||||
|
||||
-G filename
|
||||
Grabs ePIDs and HWIDs from a KMS server and writes the informa‐
|
||||
tion to filename in format suitable to be used as a configura‐
|
||||
tion file (aka ini file) for vlmcsd(8). This is especially use‐
|
||||
Grabs ePIDs and HWIDs from a KMS server and writes the informa-
|
||||
tion to filename in format suitable to be used as a configura-
|
||||
tion file (aka ini file) for vlmcsd(8). This is especially use-
|
||||
ful if you have access to a genuine KMS server and want to use
|
||||
the same data with vlmcsd(8).
|
||||
|
||||
@ -220,8 +229,8 @@ OPTIONS
|
||||
Reports a specific license status to the KMS server. status is a
|
||||
number that can be from 0 to 6. 0=unlicensed, 1=licensed, 2=OOB
|
||||
grace, 3=OOT grace, 4=Non-genuinue grace, 5=notification,
|
||||
6=extended grace. Refer to TechNet ⟨http://
|
||||
technet.microsoft.com/en-us/library/ff686879.aspx#_Toc257201371⟩
|
||||
6=extended grace. Refer to TechNet <http://
|
||||
technet.microsoft.com/en-us/library/ff686879.aspx#_Toc257201371>
|
||||
for more information. A Microsoft KMS server collects this
|
||||
information for statistics only.
|
||||
|
||||
@ -253,7 +262,7 @@ OPTIONS
|
||||
Disables (-N0) or enables (-N1) the NDR64 transfer syntax in the
|
||||
RPC protocol. Disable NDR64 only in case of problems. If NDR64
|
||||
is not used, vlmcs cannot detect many RPC protocol errors in KMS
|
||||
emulators. If you want to test whether a KMS emulator fully sup‐
|
||||
emulators. If you want to test whether a KMS emulator fully sup-
|
||||
ports NDR64, you must use the -n option to send at least two
|
||||
requests. This is because Microsoft's client always sends the
|
||||
first request using NDR32 syntax and subsequent requests using
|
||||
@ -262,7 +271,7 @@ OPTIONS
|
||||
|
||||
-B0 and -B1
|
||||
Disables (-B0) or enables (-B1) bind time feature negotiation
|
||||
(BTFN) in the RPC protocol. Disable BTFN only in case of prob‐
|
||||
(BTFN) in the RPC protocol. Disable BTFN only in case of prob-
|
||||
lems. If BTFN is not used, vlmcs cannot detect many RPC protocol
|
||||
errors in KMS emulators.
|
||||
|
||||
@ -305,7 +314,7 @@ EXAMPLES
|
||||
|
||||
BUGS
|
||||
Some platforms (e.g. Solaris) may have a man(7) system that does not
|
||||
handle URLs. URLs may be omitted in the documentation on those plat‐
|
||||
handle URLs. URLs may be omitted in the documentation on those plat-
|
||||
forms. Cygwin, Linux, FreeBSD and Mac OS X are known to work correctly.
|
||||
|
||||
|
||||
@ -314,7 +323,7 @@ AUTHOR
|
||||
|
||||
|
||||
CREDITS
|
||||
Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos‐
|
||||
Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos-
|
||||
ferati87, qad, Ratiborus, vityan666, ...
|
||||
|
||||
|
||||
@ -323,4 +332,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
Hotbird64 October 2016 VLMCS(1)
|
||||
Hotbird64 November 2016 VLMCS(1)
|
||||
|
@ -1,5 +1,5 @@
|
||||
.mso www.tmac
|
||||
.TH "VLMCSD-FLOPPY" 7 "June 2016" "Hotbird64" "KMS Activation Manual"
|
||||
.TH "VLMCSD-FLOPPY" 7 "May 2017" "Hotbird64" "KMS Activation Manual"
|
||||
.LO 8
|
||||
|
||||
.SH NAME
|
||||
@ -102,7 +102,13 @@ Defines the ePID that is used for Windows activations. If you ommit this paramet
|
||||
Defines the ePID that is used for Office 2010 activations. If you ommit this parameter, \fBvlmcsd\fR(8) generates a random ePID when it is started.
|
||||
|
||||
.IP "\fBOFFICE2013=\fIepid\fR"
|
||||
Defines the ePID that is used for Office (versions 2013 and greater) activations. If you ommit this parameter, \fBvlmcsd\fR(8) generates a random ePID when it is started.
|
||||
Defines the ePID that is used for Office 2016 activations. If you ommit this parameter, \fBvlmcsd\fR(8) generates a random ePID when it is started.
|
||||
|
||||
.IP "\fBOFFICE2016=\fIepid\fR"
|
||||
Defines the ePID that is used for Office 2016 activations. If you ommit this parameter, \fBvlmcsd\fR(8) generates a random ePID when it is started.
|
||||
|
||||
.IP "\fBWINCHINAGOV=\fIepid\fR"
|
||||
Defines the ePID that is used for Windows China Government Edition activations (Enterprise G/GN). If you ommit this parameter, \fBvlmcsd\fR(8) generates a random ePID when it is started.
|
||||
|
||||
.IP "\fBHWID=\fIhwid\fR"
|
||||
Defines the HwId that is sent to clients. \fIhwid\fR must be specified as 16 hex digits that are interpreted as a series of 8 bytes (big endian). Any character that is not a hex digit will be ignored. This is for better readability.
|
||||
@ -166,6 +172,9 @@ Sets the password for the pre-defined guest user. This user has the same privili
|
||||
.IP "\fBINETD=\fRY | N"
|
||||
\fBINETD=\fRY specifies that \fBinetd\fR(8) should automatically be started. That means you can telnet and ftp to your virtual machine.
|
||||
|
||||
.IP "\fBVLMCSD_EXTRA_ARGS=\fR\fIcomma-seperated-argument-list\fR"
|
||||
Allows you to specify additional command line options that will be passed to \fBvlmcsd\fR(8). Instead of spaces you use commas between arguments. Example: \fBVLMCSD_EXTRA_ARGS=\fR\-c1,-K3,-M1
|
||||
|
||||
.SH OPERATION
|
||||
|
||||
.SS Diskless System
|
||||
|
@ -8,12 +8,12 @@ NAME
|
||||
|
||||
DESCRIPTION
|
||||
floppy144.vfd is an image of a bootable floppy that contains a minimal
|
||||
version of Linux and vlmcsd(8). It requires only 16 MB of RAM. Its pri‐
|
||||
version of Linux and vlmcsd(8). It requires only 16 MB of RAM. Its pri-
|
||||
mary purpose is to run vlmcsd(8) in a small virtual machine which makes
|
||||
it easy to use vlmcsd(8) to activate the virtual machine's host com‐
|
||||
it easy to use vlmcsd(8) to activate the virtual machine's host com-
|
||||
puter which is not possible in Windows 8.1 and up. The floppy image is
|
||||
a standard 3,5" floppy with 1.44 MB storage. It is formatted with a
|
||||
FAT12 filesystem. The floppy can be mounted to apply several customiza‐
|
||||
FAT12 filesystem. The floppy can be mounted to apply several customiza-
|
||||
tions.
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ SETUP
|
||||
has floppy boot disabled by default). If possible, setup a virtual
|
||||
machine with plain old BIOS (not UEFI). If you created an UEFI virtual
|
||||
machine, enable the compatibility support mode (CSM) to allow a BIOS
|
||||
compatible boot. Set number of CPUs to 1. The Linux kernel is not capa‐
|
||||
compatible boot. Set number of CPUs to 1. The Linux kernel is not capa-
|
||||
ble of SMP. Remove IDE, SATA, SCSI and USB support if possible. The
|
||||
Linux kernel can't handle this and ignores any devices connected to
|
||||
these buses.
|
||||
@ -49,10 +49,10 @@ SETUP
|
||||
Most hypervisors emulate an Intel PRO/1000 or AMD PCNET32 by default.
|
||||
Selecting a paravirtualized driver slightly improves performance. In
|
||||
VirtualBox you can simply select virtio in the network configuration
|
||||
dialog. VMWare requires that you add or change the VMX file. Use 'eth‐
|
||||
dialog. VMWare requires that you add or change the VMX file. Use 'eth-
|
||||
ernet0.virtualDev = "vmxnet3"' in your VMWare config file.
|
||||
|
||||
If you are using QEMU, you must also setup a TAP adapter. Port redi‐
|
||||
If you are using QEMU, you must also setup a TAP adapter. Port redi-
|
||||
rection does not work to activate your own computer.
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@ CONFIGURATION
|
||||
must be mounted. Under Linux you can simply attach floppy144.vfd to a
|
||||
loop device which is mountable like any other block device. For Windows
|
||||
you must use some software that allows mounting a floppy image, e.g.
|
||||
OSFMount ⟨http://www.osforensics.com/tools/mount-disk-images.html⟩
|
||||
OSFMount <http://www.osforensics.com/tools/mount-disk-images.html>
|
||||
|
||||
OSFMount works under all Windows versions beginning with Windows XP up
|
||||
to Windows 10 (32- and 64-bit).
|
||||
@ -75,7 +75,7 @@ CONFIGURATION
|
||||
|
||||
LABEL dhcp
|
||||
KERNEL bzImage
|
||||
APPEND vga=773 quiet initrd=initrd KBD=us LIS‐
|
||||
APPEND vga=773 quiet initrd=initrd KBD=us LIS-
|
||||
TEN=[::]:1688,0.0.0.0:1688 TZ=UTC0 IPV4_CONFIG=DHCP
|
||||
NTP_SERVER=pool.ntp.org HOST_NAME=vlmcsd ROOT_PASSWORD=vlmcsd
|
||||
USER_NAME=user USER_PASSWORD=vlmcsd GUEST_PASSWORD=vlmcsd
|
||||
@ -86,9 +86,9 @@ CONFIGURATION
|
||||
|
||||
LABEL static
|
||||
KERNEL bzImage
|
||||
APPEND vga=773 quiet initrd=initrd KBD=fr LIS‐
|
||||
APPEND vga=773 quiet initrd=initrd KBD=fr LIS-
|
||||
TEN=[::]:1688,0.0.0.0:1688 TZ=CET-1CEST,M3.5.0,M10.5.0/3
|
||||
IPV4_CONFIG=STATIC IPV4_ADDRESS=192.168.20.123/24 IPV4_GATE‐
|
||||
IPV4_CONFIG=STATIC IPV4_ADDRESS=192.168.20.123/24 IPV4_GATE-
|
||||
WAY=192.168.20.2 IPV4_DNS1=192.168.20.2 IPV4_DNS2=NONE
|
||||
NTP_SERVER=pool.ntp.org HOST_NAME=vlmcsd ROOT_PASSWORD=vlmcsd
|
||||
USER_NAME=user USER_PASSWORD=vlmcsd GUEST_PASSWORD=vlmcsd
|
||||
@ -98,7 +98,7 @@ CONFIGURATION
|
||||
There are two configurations in this files: dhcp (for configuring the
|
||||
IPv4 network via DHCP) and static (for a static IPv4 configuration).
|
||||
The kernel always boots the dhcp configuration without asking (lines
|
||||
'prompt 0' and 'default dhcp'). You can simply change the default con‐
|
||||
'prompt 0' and 'default dhcp'). You can simply change the default con-
|
||||
figuration to static and then customize the APPEND line in the static
|
||||
configuration. For more details how to customize the syslinux.cfg file
|
||||
see syslinux(1).
|
||||
@ -108,11 +108,11 @@ CONFIGURATION
|
||||
|
||||
|
||||
vga=vesa-video-mode
|
||||
Sets the VESA display mode for the virtual machine. The parame‐
|
||||
Sets the VESA display mode for the virtual machine. The parame-
|
||||
ter is not optional. If you ommit it, you will not see anything
|
||||
on the screen. 773 means 1024x768 with 256 colors. See Wikipedia
|
||||
⟨https://en.wikipedia.org/wiki/
|
||||
VESA_BIOS_Extensions#Linux_video_mode_numbers⟩ for more video
|
||||
<https://en.wikipedia.org/wiki/
|
||||
VESA_BIOS_Extensions#Linux_video_mode_numbers> for more video
|
||||
modes. Note that all 16 color (4-bit) modes will not work. Use
|
||||
8-bit (256 colors), 16-bit (65536 colors), 24-bit and 32-bit (>
|
||||
16 Million colors) only. All modes above 1280x1024 are non-VESA-
|
||||
@ -123,14 +123,14 @@ CONFIGURATION
|
||||
may omit quiet but it doesn't make much sense. The boot log is
|
||||
actually very verbose and scrolls away from screen quickly. If
|
||||
any errors occur during boot, they will be displayed even if
|
||||
quiet is present in the APPEND line. You may evaluate the com‐
|
||||
quiet is present in the APPEND line. You may evaluate the com-
|
||||
plete boot log later by using the dmesg command or the menu on
|
||||
/dev/tty8.
|
||||
|
||||
|
||||
initrd=initial-ram-disk-file
|
||||
This defines the initial ram disk that the kernel will read.
|
||||
There is only one initial ram disk on the floppy thus leave ini‐
|
||||
There is only one initial ram disk on the floppy thus leave ini-
|
||||
trd=initrd as it is.
|
||||
|
||||
|
||||
@ -176,9 +176,21 @@ CONFIGURATION
|
||||
|
||||
|
||||
OFFICE2013=epid
|
||||
Defines the ePID that is used for Office (versions 2013 and
|
||||
greater) activations. If you ommit this parameter, vlmcsd(8)
|
||||
generates a random ePID when it is started.
|
||||
Defines the ePID that is used for Office 2016 activations. If
|
||||
you ommit this parameter, vlmcsd(8) generates a random ePID when
|
||||
it is started.
|
||||
|
||||
|
||||
OFFICE2016=epid
|
||||
Defines the ePID that is used for Office 2016 activations. If
|
||||
you ommit this parameter, vlmcsd(8) generates a random ePID when
|
||||
it is started.
|
||||
|
||||
|
||||
WINCHINAGOV=epid
|
||||
Defines the ePID that is used for Windows China Government Edi-
|
||||
tion activations (Enterprise G/GN). If you ommit this parameter,
|
||||
vlmcsd(8) generates a random ePID when it is started.
|
||||
|
||||
|
||||
HWID=hwid
|
||||
@ -190,8 +202,8 @@ CONFIGURATION
|
||||
|
||||
TZ=posix-time-zone-string
|
||||
Set the time zone to posix-time-zone-string. It must conform to
|
||||
the POSIX ⟨http://pubs.opengroup.org/onlinepubs/009695399/
|
||||
basedefs/xbd_chap08.html⟩ specification. Simplified time zone
|
||||
the POSIX <http://pubs.opengroup.org/onlinepubs/009695399/
|
||||
basedefs/xbd_chap08.html> specification. Simplified time zone
|
||||
strings like "Europe/London" or "America/Detroit" are not
|
||||
allowed. This has the very simple reason that there is no space
|
||||
on the floppy to store the time zone database.
|
||||
@ -201,7 +213,7 @@ CONFIGURATION
|
||||
|
||||
CET The standard (winter) time zone has the name CET.
|
||||
|
||||
-1 The standard time zone is one hour east of UTC. Nega‐
|
||||
-1 The standard time zone is one hour east of UTC. Nega-
|
||||
tive numbers are east of UTC. Positive numbers are
|
||||
west of UTC.
|
||||
|
||||
@ -228,12 +240,12 @@ CONFIGURATION
|
||||
|
||||
IPV4_CONFIG=DHCP | STATIC
|
||||
This determines how you want to configure IPv4 networking. If
|
||||
you use IPV4_CONFIG=STATIC, you must supply additional para‐
|
||||
you use IPV4_CONFIG=STATIC, you must supply additional para-
|
||||
maters to the APPEND command line.
|
||||
|
||||
|
||||
IPV4_ADDRESS=ipv4-address/CIDR-mask
|
||||
Use ipv4-address with netmask CIDR-mask for static IPv4 configu‐
|
||||
Use ipv4-address with netmask CIDR-mask for static IPv4 configu-
|
||||
ration. The netmask must not be ommitted. For IPv4 address
|
||||
192.168.12.17 with a netmask of 255.255.255.0 use
|
||||
192.168.12.17/24. For IPv4 address 10.4.0.8 with a netmask of
|
||||
@ -245,7 +257,7 @@ CONFIGURATION
|
||||
Use ipv4-address as the default gateway. This is usually the
|
||||
IPv4 address of your router. You may specify NONE explicitly for
|
||||
no gateway. In this case your virtual machine is only visible on
|
||||
its local LAN. This paramater is ignored, if you used IPV4_CON‐
|
||||
its local LAN. This paramater is ignored, if you used IPV4_CON-
|
||||
FIG=DHCP.
|
||||
|
||||
|
||||
@ -262,9 +274,9 @@ CONFIGURATION
|
||||
|
||||
IPV4_DNS2=ipv4-address | NONE
|
||||
Use ipv4-address as the secondary name server. It serves as a
|
||||
backup if the primary name server is not available. Home net‐
|
||||
backup if the primary name server is not available. Home net-
|
||||
works often don't have a secondary name server. In this case set
|
||||
this to NONE. This paramater is ignored, if you used IPV4_CON‐
|
||||
this to NONE. This paramater is ignored, if you used IPV4_CON-
|
||||
FIG=DHCP.
|
||||
|
||||
|
||||
@ -282,7 +294,7 @@ CONFIGURATION
|
||||
IPV4_CONFIG=DHCP and your DHCP server returns a domain name, the
|
||||
domain part of an FQDN will be replaced by that name. This host
|
||||
name or host part of an FQDN will not replaced by a host name
|
||||
returned via DHCP. The host name is not important for the opera‐
|
||||
returned via DHCP. The host name is not important for the opera-
|
||||
tion of floppy144.vfd.
|
||||
|
||||
|
||||
@ -310,13 +322,19 @@ CONFIGURATION
|
||||
That means you can telnet and ftp to your virtual machine.
|
||||
|
||||
|
||||
VLMCSD_EXTRA_ARGS=comma-seperated-argument-list
|
||||
Allows you to specify additional command line options that will
|
||||
be passed to vlmcsd(8). Instead of spaces you use commas between
|
||||
arguments. Example: VLMCSD_EXTRA_ARGS=-c1,-K3,-M1
|
||||
|
||||
|
||||
OPERATION
|
||||
Diskless System
|
||||
The floppy144.vfd virtual machine is a diskless system that works
|
||||
entirely from RAM. The file system is actually a RAM disk that is cre‐
|
||||
entirely from RAM. The file system is actually a RAM disk that is cre-
|
||||
ated from the initrd(4) file on the floppy image.
|
||||
|
||||
Anything you'll do from inside the virtual machine, for instance edit‐
|
||||
Anything you'll do from inside the virtual machine, for instance edit-
|
||||
ing a config file, will be lost when you reboot the machine. So, if you
|
||||
ever asked yourself if rm -fr / (root privileges required) really
|
||||
deletes all files from all mounted partitions, the floppy144.vfd VM is
|
||||
@ -332,7 +350,7 @@ OPERATION
|
||||
The kernel boots up very quickly and the init script (/sbin/init) waits
|
||||
5 seconds. In these 5 seconds you can:
|
||||
|
||||
Press 'm' to manually enter the time zone and the IPv4 parame‐
|
||||
Press 'm' to manually enter the time zone and the IPv4 parame-
|
||||
ters. These will be queried interactively.
|
||||
Press 't' to manually enter the time zone only.
|
||||
Press 's' to escape to a shell.
|
||||
@ -345,7 +363,7 @@ OPERATION
|
||||
|
||||
Logging into the system
|
||||
There are 5 local logins provided on /dev/tty2 to /dev/tty6. To switch
|
||||
to these logins, simply press ALT-F2 to ALT-F6. To return to the con‐
|
||||
to these logins, simply press ALT-F2 to ALT-F6. To return to the con-
|
||||
sole on /dev/tty1, press ALT-F1. If inetd(8) is running you can also
|
||||
use telnet(1). This allows you use a terminal program (e.g. putty) that
|
||||
can utilize your keyboard layout, can be resized and has full UTF-8
|
||||
@ -363,7 +381,7 @@ OPERATION
|
||||
The menu system
|
||||
You'll find a menu system on /dev/tty8 (press ALT-F8 to see it). It
|
||||
allows you performing some administrative tasks and to view various
|
||||
system information. It is mainly for users that do not have much expe‐
|
||||
system information. It is mainly for users that do not have much expe-
|
||||
rience with Unix commands.
|
||||
|
||||
|
||||
@ -413,7 +431,7 @@ OPERATION
|
||||
|
||||
8) Show TCP/IP configuration
|
||||
Shows the TCP/IP configuration, listening sockets and current
|
||||
TCP and UDP connections. Useful, if you problems with net con‐
|
||||
TCP and UDP connections. Useful, if you problems with net con-
|
||||
nectivity. The output is piped through less(1). So press 'q' to
|
||||
return to the menu.
|
||||
|
||||
@ -425,7 +443,7 @@ OPERATION
|
||||
|
||||
s) Shutdown
|
||||
Shuts down the floppy144.vfd virtual machine. Proper shutdown is
|
||||
not required. It is ok to use a hard power off in your virtual‐
|
||||
not required. It is ok to use a hard power off in your virtual-
|
||||
ization program.
|
||||
|
||||
|
||||
@ -470,7 +488,7 @@ PERMANENT CHANGES OF INITRD
|
||||
works on almost any unix-like OS, it does not work on Windows even not
|
||||
with Cygwin. The reason is that the NTFS file system can't handle uids
|
||||
and gids. These cannot be preserved when unpacking the cpio(1) archive
|
||||
to NTFS. If you use the WSL subsystem of Windows 10 Redstone (Anniver‐
|
||||
to NTFS. If you use the WSL subsystem of Windows 10 Redstone (Anniver-
|
||||
sary Update) and later, you must make sure to unpack the initrd(4) file
|
||||
to a directory on VolFs (normally everything that is not mounted under
|
||||
/mnt). The initrd(4) file can be on a VolFs or DriveFs.
|
||||
@ -478,7 +496,7 @@ PERMANENT CHANGES OF INITRD
|
||||
|
||||
FAQ
|
||||
On what distro is the floppy image based?
|
||||
None. Besides the boot loader ldlinux.sys, there are only three bina‐
|
||||
None. Besides the boot loader ldlinux.sys, there are only three bina-
|
||||
ries: The Linux kernel bzImage, busybox(1) and vlmcsdmulti-x86-musl-
|
||||
static. bzImage and busybox(1) have been compiled with carefully
|
||||
selected configuration parameters not found in any distro. This was
|
||||
@ -488,7 +506,7 @@ FAQ
|
||||
Why is a rather old Linux kernel (3.12) used?
|
||||
Linux 3.12 is the last kernel that can be booted with 16 MB of RAM.
|
||||
Beginning with Linux 3.13 it requires much more memory (about 80 MB) to
|
||||
boot. The floppy image is regularly tested with newer kernels. Every‐
|
||||
boot. The floppy image is regularly tested with newer kernels. Every-
|
||||
thing works except that you need to assign much more main memory to the
|
||||
virtual machine.
|
||||
|
||||
@ -507,7 +525,7 @@ FILES
|
||||
BUGS
|
||||
IPv6 cannot be configured with static or manual parameters.
|
||||
DHCPv6 is not supported.
|
||||
´ip route add ...' does not work. Use 'route add ...' instead.
|
||||
'ip route add ...' does not work. Use 'route add ...' instead.
|
||||
|
||||
|
||||
AUTHOR
|
||||
@ -527,4 +545,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
Hotbird64 June 2016 VLMCSD-FLOPPY(7)
|
||||
Hotbird64 May 2017 VLMCSD-FLOPPY(7)
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- Creator : groff version 1.22.3 -->
|
||||
<!-- CreationDate: Fri Oct 21 03:17:10 2016 -->
|
||||
<!-- CreationDate: Sat Oct 20 09:49:39 2018 -->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@ -282,9 +282,25 @@ started.</p>
|
||||
<p style="margin-left:11%;"><b>OFFICE2013=</b><i>epid</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Defines the ePID that is used
|
||||
for Office (versions 2013 and greater) activations. If you
|
||||
ommit this parameter, <b>vlmcsd</b>(8) generates a random
|
||||
ePID when it is started.</p>
|
||||
for Office 2016 activations. If you ommit this parameter,
|
||||
<b>vlmcsd</b>(8) generates a random ePID when it is
|
||||
started.</p>
|
||||
|
||||
|
||||
<p style="margin-left:11%;"><b>OFFICE2016=</b><i>epid</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Defines the ePID that is used
|
||||
for Office 2016 activations. If you ommit this parameter,
|
||||
<b>vlmcsd</b>(8) generates a random ePID when it is
|
||||
started.</p>
|
||||
|
||||
|
||||
<p style="margin-left:11%;"><b>WINCHINAGOV=</b><i>epid</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Defines the ePID that is used
|
||||
for Windows China Government Edition activations (Enterprise
|
||||
G/GN). If you ommit this parameter, <b>vlmcsd</b>(8)
|
||||
generates a random ePID when it is started.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>HWID=</b><i>hwid</i></p>
|
||||
|
||||
@ -499,6 +515,14 @@ pre-defined guest user. This user has the same priviliges
|
||||
<b>inetd</b>(8) should automatically be started. That means
|
||||
you can telnet and ftp to your virtual machine.</p>
|
||||
|
||||
|
||||
<p style="margin-left:11%;"><b>VLMCSD_EXTRA_ARGS=</b><i>comma-seperated-argument-list</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Allows you to specify
|
||||
additional command line options that will be passed to
|
||||
<b>vlmcsd</b>(8). Instead of spaces you use commas between
|
||||
arguments. Example: <b>VLMCSD_EXTRA_ARGS=</b>-c1,-K3,-M1</p>
|
||||
|
||||
<h2>OPERATION
|
||||
<a name="OPERATION"></a>
|
||||
</h2>
|
||||
|
Binary file not shown.
@ -8,12 +8,12 @@ NAME
|
||||
|
||||
DESCRIPTION
|
||||
floppy144.vfd is an image of a bootable floppy that contains a minimal
|
||||
version of Linux and vlmcsd(8). It requires only 16 MB of RAM. Its pri‐
|
||||
version of Linux and vlmcsd(8). It requires only 16 MB of RAM. Its pri-
|
||||
mary purpose is to run vlmcsd(8) in a small virtual machine which makes
|
||||
it easy to use vlmcsd(8) to activate the virtual machine's host com‐
|
||||
it easy to use vlmcsd(8) to activate the virtual machine's host com-
|
||||
puter which is not possible in Windows 8.1 and up. The floppy image is
|
||||
a standard 3,5" floppy with 1.44 MB storage. It is formatted with a
|
||||
FAT12 filesystem. The floppy can be mounted to apply several customiza‐
|
||||
FAT12 filesystem. The floppy can be mounted to apply several customiza-
|
||||
tions.
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ SETUP
|
||||
has floppy boot disabled by default). If possible, setup a virtual
|
||||
machine with plain old BIOS (not UEFI). If you created an UEFI virtual
|
||||
machine, enable the compatibility support mode (CSM) to allow a BIOS
|
||||
compatible boot. Set number of CPUs to 1. The Linux kernel is not capa‐
|
||||
compatible boot. Set number of CPUs to 1. The Linux kernel is not capa-
|
||||
ble of SMP. Remove IDE, SATA, SCSI and USB support if possible. The
|
||||
Linux kernel can't handle this and ignores any devices connected to
|
||||
these buses.
|
||||
@ -49,10 +49,10 @@ SETUP
|
||||
Most hypervisors emulate an Intel PRO/1000 or AMD PCNET32 by default.
|
||||
Selecting a paravirtualized driver slightly improves performance. In
|
||||
VirtualBox you can simply select virtio in the network configuration
|
||||
dialog. VMWare requires that you add or change the VMX file. Use 'eth‐
|
||||
dialog. VMWare requires that you add or change the VMX file. Use 'eth-
|
||||
ernet0.virtualDev = "vmxnet3"' in your VMWare config file.
|
||||
|
||||
If you are using QEMU, you must also setup a TAP adapter. Port redi‐
|
||||
If you are using QEMU, you must also setup a TAP adapter. Port redi-
|
||||
rection does not work to activate your own computer.
|
||||
|
||||
|
||||
@ -62,7 +62,7 @@ CONFIGURATION
|
||||
must be mounted. Under Linux you can simply attach floppy144.vfd to a
|
||||
loop device which is mountable like any other block device. For Windows
|
||||
you must use some software that allows mounting a floppy image, e.g.
|
||||
OSFMount ⟨http://www.osforensics.com/tools/mount-disk-images.html⟩
|
||||
OSFMount <http://www.osforensics.com/tools/mount-disk-images.html>
|
||||
|
||||
OSFMount works under all Windows versions beginning with Windows XP up
|
||||
to Windows 10 (32- and 64-bit).
|
||||
@ -75,7 +75,7 @@ CONFIGURATION
|
||||
|
||||
LABEL dhcp
|
||||
KERNEL bzImage
|
||||
APPEND vga=773 quiet initrd=initrd KBD=us LIS‐
|
||||
APPEND vga=773 quiet initrd=initrd KBD=us LIS-
|
||||
TEN=[::]:1688,0.0.0.0:1688 TZ=UTC0 IPV4_CONFIG=DHCP
|
||||
NTP_SERVER=pool.ntp.org HOST_NAME=vlmcsd ROOT_PASSWORD=vlmcsd
|
||||
USER_NAME=user USER_PASSWORD=vlmcsd GUEST_PASSWORD=vlmcsd
|
||||
@ -86,9 +86,9 @@ CONFIGURATION
|
||||
|
||||
LABEL static
|
||||
KERNEL bzImage
|
||||
APPEND vga=773 quiet initrd=initrd KBD=fr LIS‐
|
||||
APPEND vga=773 quiet initrd=initrd KBD=fr LIS-
|
||||
TEN=[::]:1688,0.0.0.0:1688 TZ=CET-1CEST,M3.5.0,M10.5.0/3
|
||||
IPV4_CONFIG=STATIC IPV4_ADDRESS=192.168.20.123/24 IPV4_GATE‐
|
||||
IPV4_CONFIG=STATIC IPV4_ADDRESS=192.168.20.123/24 IPV4_GATE-
|
||||
WAY=192.168.20.2 IPV4_DNS1=192.168.20.2 IPV4_DNS2=NONE
|
||||
NTP_SERVER=pool.ntp.org HOST_NAME=vlmcsd ROOT_PASSWORD=vlmcsd
|
||||
USER_NAME=user USER_PASSWORD=vlmcsd GUEST_PASSWORD=vlmcsd
|
||||
@ -98,7 +98,7 @@ CONFIGURATION
|
||||
There are two configurations in this files: dhcp (for configuring the
|
||||
IPv4 network via DHCP) and static (for a static IPv4 configuration).
|
||||
The kernel always boots the dhcp configuration without asking (lines
|
||||
'prompt 0' and 'default dhcp'). You can simply change the default con‐
|
||||
'prompt 0' and 'default dhcp'). You can simply change the default con-
|
||||
figuration to static and then customize the APPEND line in the static
|
||||
configuration. For more details how to customize the syslinux.cfg file
|
||||
see syslinux(1).
|
||||
@ -108,11 +108,11 @@ CONFIGURATION
|
||||
|
||||
|
||||
vga=vesa-video-mode
|
||||
Sets the VESA display mode for the virtual machine. The parame‐
|
||||
Sets the VESA display mode for the virtual machine. The parame-
|
||||
ter is not optional. If you ommit it, you will not see anything
|
||||
on the screen. 773 means 1024x768 with 256 colors. See Wikipedia
|
||||
⟨https://en.wikipedia.org/wiki/
|
||||
VESA_BIOS_Extensions#Linux_video_mode_numbers⟩ for more video
|
||||
<https://en.wikipedia.org/wiki/
|
||||
VESA_BIOS_Extensions#Linux_video_mode_numbers> for more video
|
||||
modes. Note that all 16 color (4-bit) modes will not work. Use
|
||||
8-bit (256 colors), 16-bit (65536 colors), 24-bit and 32-bit (>
|
||||
16 Million colors) only. All modes above 1280x1024 are non-VESA-
|
||||
@ -123,14 +123,14 @@ CONFIGURATION
|
||||
may omit quiet but it doesn't make much sense. The boot log is
|
||||
actually very verbose and scrolls away from screen quickly. If
|
||||
any errors occur during boot, they will be displayed even if
|
||||
quiet is present in the APPEND line. You may evaluate the com‐
|
||||
quiet is present in the APPEND line. You may evaluate the com-
|
||||
plete boot log later by using the dmesg command or the menu on
|
||||
/dev/tty8.
|
||||
|
||||
|
||||
initrd=initial-ram-disk-file
|
||||
This defines the initial ram disk that the kernel will read.
|
||||
There is only one initial ram disk on the floppy thus leave ini‐
|
||||
There is only one initial ram disk on the floppy thus leave ini-
|
||||
trd=initrd as it is.
|
||||
|
||||
|
||||
@ -176,9 +176,21 @@ CONFIGURATION
|
||||
|
||||
|
||||
OFFICE2013=epid
|
||||
Defines the ePID that is used for Office (versions 2013 and
|
||||
greater) activations. If you ommit this parameter, vlmcsd(8)
|
||||
generates a random ePID when it is started.
|
||||
Defines the ePID that is used for Office 2016 activations. If
|
||||
you ommit this parameter, vlmcsd(8) generates a random ePID when
|
||||
it is started.
|
||||
|
||||
|
||||
OFFICE2016=epid
|
||||
Defines the ePID that is used for Office 2016 activations. If
|
||||
you ommit this parameter, vlmcsd(8) generates a random ePID when
|
||||
it is started.
|
||||
|
||||
|
||||
WINCHINAGOV=epid
|
||||
Defines the ePID that is used for Windows China Government Edi-
|
||||
tion activations (Enterprise G/GN). If you ommit this parameter,
|
||||
vlmcsd(8) generates a random ePID when it is started.
|
||||
|
||||
|
||||
HWID=hwid
|
||||
@ -190,8 +202,8 @@ CONFIGURATION
|
||||
|
||||
TZ=posix-time-zone-string
|
||||
Set the time zone to posix-time-zone-string. It must conform to
|
||||
the POSIX ⟨http://pubs.opengroup.org/onlinepubs/009695399/
|
||||
basedefs/xbd_chap08.html⟩ specification. Simplified time zone
|
||||
the POSIX <http://pubs.opengroup.org/onlinepubs/009695399/
|
||||
basedefs/xbd_chap08.html> specification. Simplified time zone
|
||||
strings like "Europe/London" or "America/Detroit" are not
|
||||
allowed. This has the very simple reason that there is no space
|
||||
on the floppy to store the time zone database.
|
||||
@ -201,7 +213,7 @@ CONFIGURATION
|
||||
|
||||
CET The standard (winter) time zone has the name CET.
|
||||
|
||||
-1 The standard time zone is one hour east of UTC. Nega‐
|
||||
-1 The standard time zone is one hour east of UTC. Nega-
|
||||
tive numbers are east of UTC. Positive numbers are
|
||||
west of UTC.
|
||||
|
||||
@ -228,12 +240,12 @@ CONFIGURATION
|
||||
|
||||
IPV4_CONFIG=DHCP | STATIC
|
||||
This determines how you want to configure IPv4 networking. If
|
||||
you use IPV4_CONFIG=STATIC, you must supply additional para‐
|
||||
you use IPV4_CONFIG=STATIC, you must supply additional para-
|
||||
maters to the APPEND command line.
|
||||
|
||||
|
||||
IPV4_ADDRESS=ipv4-address/CIDR-mask
|
||||
Use ipv4-address with netmask CIDR-mask for static IPv4 configu‐
|
||||
Use ipv4-address with netmask CIDR-mask for static IPv4 configu-
|
||||
ration. The netmask must not be ommitted. For IPv4 address
|
||||
192.168.12.17 with a netmask of 255.255.255.0 use
|
||||
192.168.12.17/24. For IPv4 address 10.4.0.8 with a netmask of
|
||||
@ -245,7 +257,7 @@ CONFIGURATION
|
||||
Use ipv4-address as the default gateway. This is usually the
|
||||
IPv4 address of your router. You may specify NONE explicitly for
|
||||
no gateway. In this case your virtual machine is only visible on
|
||||
its local LAN. This paramater is ignored, if you used IPV4_CON‐
|
||||
its local LAN. This paramater is ignored, if you used IPV4_CON-
|
||||
FIG=DHCP.
|
||||
|
||||
|
||||
@ -262,9 +274,9 @@ CONFIGURATION
|
||||
|
||||
IPV4_DNS2=ipv4-address | NONE
|
||||
Use ipv4-address as the secondary name server. It serves as a
|
||||
backup if the primary name server is not available. Home net‐
|
||||
backup if the primary name server is not available. Home net-
|
||||
works often don't have a secondary name server. In this case set
|
||||
this to NONE. This paramater is ignored, if you used IPV4_CON‐
|
||||
this to NONE. This paramater is ignored, if you used IPV4_CON-
|
||||
FIG=DHCP.
|
||||
|
||||
|
||||
@ -282,7 +294,7 @@ CONFIGURATION
|
||||
IPV4_CONFIG=DHCP and your DHCP server returns a domain name, the
|
||||
domain part of an FQDN will be replaced by that name. This host
|
||||
name or host part of an FQDN will not replaced by a host name
|
||||
returned via DHCP. The host name is not important for the opera‐
|
||||
returned via DHCP. The host name is not important for the opera-
|
||||
tion of floppy144.vfd.
|
||||
|
||||
|
||||
@ -310,13 +322,19 @@ CONFIGURATION
|
||||
That means you can telnet and ftp to your virtual machine.
|
||||
|
||||
|
||||
VLMCSD_EXTRA_ARGS=comma-seperated-argument-list
|
||||
Allows you to specify additional command line options that will
|
||||
be passed to vlmcsd(8). Instead of spaces you use commas between
|
||||
arguments. Example: VLMCSD_EXTRA_ARGS=-c1,-K3,-M1
|
||||
|
||||
|
||||
OPERATION
|
||||
Diskless System
|
||||
The floppy144.vfd virtual machine is a diskless system that works
|
||||
entirely from RAM. The file system is actually a RAM disk that is cre‐
|
||||
entirely from RAM. The file system is actually a RAM disk that is cre-
|
||||
ated from the initrd(4) file on the floppy image.
|
||||
|
||||
Anything you'll do from inside the virtual machine, for instance edit‐
|
||||
Anything you'll do from inside the virtual machine, for instance edit-
|
||||
ing a config file, will be lost when you reboot the machine. So, if you
|
||||
ever asked yourself if rm -fr / (root privileges required) really
|
||||
deletes all files from all mounted partitions, the floppy144.vfd VM is
|
||||
@ -332,7 +350,7 @@ OPERATION
|
||||
The kernel boots up very quickly and the init script (/sbin/init) waits
|
||||
5 seconds. In these 5 seconds you can:
|
||||
|
||||
Press 'm' to manually enter the time zone and the IPv4 parame‐
|
||||
Press 'm' to manually enter the time zone and the IPv4 parame-
|
||||
ters. These will be queried interactively.
|
||||
Press 't' to manually enter the time zone only.
|
||||
Press 's' to escape to a shell.
|
||||
@ -345,7 +363,7 @@ OPERATION
|
||||
|
||||
Logging into the system
|
||||
There are 5 local logins provided on /dev/tty2 to /dev/tty6. To switch
|
||||
to these logins, simply press ALT-F2 to ALT-F6. To return to the con‐
|
||||
to these logins, simply press ALT-F2 to ALT-F6. To return to the con-
|
||||
sole on /dev/tty1, press ALT-F1. If inetd(8) is running you can also
|
||||
use telnet(1). This allows you use a terminal program (e.g. putty) that
|
||||
can utilize your keyboard layout, can be resized and has full UTF-8
|
||||
@ -363,7 +381,7 @@ OPERATION
|
||||
The menu system
|
||||
You'll find a menu system on /dev/tty8 (press ALT-F8 to see it). It
|
||||
allows you performing some administrative tasks and to view various
|
||||
system information. It is mainly for users that do not have much expe‐
|
||||
system information. It is mainly for users that do not have much expe-
|
||||
rience with Unix commands.
|
||||
|
||||
|
||||
@ -413,7 +431,7 @@ OPERATION
|
||||
|
||||
8) Show TCP/IP configuration
|
||||
Shows the TCP/IP configuration, listening sockets and current
|
||||
TCP and UDP connections. Useful, if you problems with net con‐
|
||||
TCP and UDP connections. Useful, if you problems with net con-
|
||||
nectivity. The output is piped through less(1). So press 'q' to
|
||||
return to the menu.
|
||||
|
||||
@ -425,7 +443,7 @@ OPERATION
|
||||
|
||||
s) Shutdown
|
||||
Shuts down the floppy144.vfd virtual machine. Proper shutdown is
|
||||
not required. It is ok to use a hard power off in your virtual‐
|
||||
not required. It is ok to use a hard power off in your virtual-
|
||||
ization program.
|
||||
|
||||
|
||||
@ -470,7 +488,7 @@ PERMANENT CHANGES OF INITRD
|
||||
works on almost any unix-like OS, it does not work on Windows even not
|
||||
with Cygwin. The reason is that the NTFS file system can't handle uids
|
||||
and gids. These cannot be preserved when unpacking the cpio(1) archive
|
||||
to NTFS. If you use the WSL subsystem of Windows 10 Redstone (Anniver‐
|
||||
to NTFS. If you use the WSL subsystem of Windows 10 Redstone (Anniver-
|
||||
sary Update) and later, you must make sure to unpack the initrd(4) file
|
||||
to a directory on VolFs (normally everything that is not mounted under
|
||||
/mnt). The initrd(4) file can be on a VolFs or DriveFs.
|
||||
@ -478,7 +496,7 @@ PERMANENT CHANGES OF INITRD
|
||||
|
||||
FAQ
|
||||
On what distro is the floppy image based?
|
||||
None. Besides the boot loader ldlinux.sys, there are only three bina‐
|
||||
None. Besides the boot loader ldlinux.sys, there are only three bina-
|
||||
ries: The Linux kernel bzImage, busybox(1) and vlmcsdmulti-x86-musl-
|
||||
static. bzImage and busybox(1) have been compiled with carefully
|
||||
selected configuration parameters not found in any distro. This was
|
||||
@ -488,7 +506,7 @@ FAQ
|
||||
Why is a rather old Linux kernel (3.12) used?
|
||||
Linux 3.12 is the last kernel that can be booted with 16 MB of RAM.
|
||||
Beginning with Linux 3.13 it requires much more memory (about 80 MB) to
|
||||
boot. The floppy image is regularly tested with newer kernels. Every‐
|
||||
boot. The floppy image is regularly tested with newer kernels. Every-
|
||||
thing works except that you need to assign much more main memory to the
|
||||
virtual machine.
|
||||
|
||||
@ -507,7 +525,7 @@ FILES
|
||||
BUGS
|
||||
IPv6 cannot be configured with static or manual parameters.
|
||||
DHCPv6 is not supported.
|
||||
´ip route add ...' does not work. Use 'route add ...' instead.
|
||||
'ip route add ...' does not work. Use 'route add ...' instead.
|
||||
|
||||
|
||||
AUTHOR
|
||||
@ -527,4 +545,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
Hotbird64 June 2016 VLMCSD-FLOPPY(7)
|
||||
Hotbird64 May 2017 VLMCSD-FLOPPY(7)
|
||||
|
@ -19,7 +19,7 @@ DESCRIPTION
|
||||
KMS is a way to activate Microsoft products that was designed for
|
||||
medium and large businesses. In a standard SOHO environment you enter a
|
||||
product key during installation and then activate your product over the
|
||||
Internet. This is done by sending a request to a server at micro‐
|
||||
Internet. This is done by sending a request to a server at micro-
|
||||
soft.com which then either grants or refuses activation.
|
||||
|
||||
By entering a special key called General Volume License Key (GVLK),
|
||||
@ -28,13 +28,13 @@ DESCRIPTION
|
||||
usually resides in a company's intranet. vlmcsd is an independent open
|
||||
source implementation of a KMS server that is available for everyone
|
||||
while Microsoft gives their KMS server only to corporations that signed
|
||||
a so called "Select contract". In addition vlmcsd never refuses activa‐
|
||||
a so called "Select contract". In addition vlmcsd never refuses activa-
|
||||
tion while the Microsoft KMS server only activates the products the
|
||||
customer has paid for.
|
||||
|
||||
Product activation using vlmcsd is performed in three easy steps:
|
||||
|
||||
1) Run vlmcsd (or any other KMS emulator) on a computer in your net‐
|
||||
1) Run vlmcsd (or any other KMS emulator) on a computer in your net-
|
||||
work. This will be your KMS server. New users should simply run the
|
||||
program without any parameters. The defaults should fit the needs of
|
||||
most users.
|
||||
@ -47,11 +47,11 @@ DESCRIPTION
|
||||
However, when it comes to the details, some things turn out to be more
|
||||
difficult than you might think.
|
||||
|
||||
The most important thing to know is that KMS activation is not perma‐
|
||||
The most important thing to know is that KMS activation is not perma-
|
||||
nent. The computer remains activated for 180 days (30 or 45 days with
|
||||
consumer-only products). KMS activation however is not an evaluation
|
||||
license. You can repeat the activation anytime and as often as you like
|
||||
to extend activation to another 180 days. This normally happens auto‐
|
||||
to extend activation to another 180 days. This normally happens auto-
|
||||
matically. For this to work, you have to ensure that a KMS server is
|
||||
always reachable for the clients on your network.
|
||||
|
||||
@ -64,7 +64,7 @@ DESCRIPTION
|
||||
|
||||
|
||||
How to get a GVLK?
|
||||
That is relatively simple. The GVLKs are published on Microsoft's Tech‐
|
||||
That is relatively simple. The GVLKs are published on Microsoft's Tech-
|
||||
net web site.
|
||||
|
||||
Windows: http://technet.microsoft.com/en-us/library/jj612867.aspx
|
||||
@ -86,7 +86,7 @@ DESCRIPTION
|
||||
7B9N3-D94CG-YTVHR-QBPX3-RJP64 - Windows 8.1 Core N
|
||||
BB6NG-PQ82V-VRDPW-8XVD2-V8P66 - Windows 8.1 Core Single Language
|
||||
NCTT7-2RGK8-WMHRF-RY7YQ-JTXG3 - Windows 8.1 Core Country Specific
|
||||
GNBB8-YVD74-QJHX6-27H4K-8QHDG - Windows 8 Professional with Media Cen‐
|
||||
GNBB8-YVD74-QJHX6-27H4K-8QHDG - Windows 8 Professional with Media Cen-
|
||||
ter
|
||||
BN3D2-R7TKB-3YPBD-8DRP2-27GG4 - Windows 8 Core
|
||||
8N2M2-HWPGY-7PGT9-HGDD8-GVGGY - Windows 8 Core N
|
||||
@ -103,7 +103,7 @@ DESCRIPTION
|
||||
section.
|
||||
|
||||
These are two Visual Basic script utilities that are used to control
|
||||
Microsoft's Software Protection system. To use them open a Windows Com‐
|
||||
Microsoft's Software Protection system. To use them open a Windows Com-
|
||||
mand Prompt. slmgr.vbs is for Windows. ospp.vbs is for Office 2010 and
|
||||
2013. These utilities are installed with Windows and Office and you
|
||||
don't need to download them.
|
||||
@ -153,7 +153,7 @@ DESCRIPTION
|
||||
2) Type "cscript ospp.vbs /setprt:tcp-port". Example: cscript
|
||||
ospp.vbs /setprt:1688
|
||||
|
||||
tcp-port is usually 1688 unless you instructed vlmcsd to use a differ‐
|
||||
tcp-port is usually 1688 unless you instructed vlmcsd to use a differ-
|
||||
ent port which is rarely necessary.
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- Creator : groff version 1.22.3 -->
|
||||
<!-- CreationDate: Fri Oct 21 03:17:10 2016 -->
|
||||
<!-- CreationDate: Sat Oct 20 09:49:39 2018 -->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
|
BIN
man/vlmcsd.7.pdf
BIN
man/vlmcsd.7.pdf
Binary file not shown.
@ -19,7 +19,7 @@ DESCRIPTION
|
||||
KMS is a way to activate Microsoft products that was designed for
|
||||
medium and large businesses. In a standard SOHO environment you enter a
|
||||
product key during installation and then activate your product over the
|
||||
Internet. This is done by sending a request to a server at micro‐
|
||||
Internet. This is done by sending a request to a server at micro-
|
||||
soft.com which then either grants or refuses activation.
|
||||
|
||||
By entering a special key called General Volume License Key (GVLK),
|
||||
@ -28,13 +28,13 @@ DESCRIPTION
|
||||
usually resides in a company's intranet. vlmcsd is an independent open
|
||||
source implementation of a KMS server that is available for everyone
|
||||
while Microsoft gives their KMS server only to corporations that signed
|
||||
a so called "Select contract". In addition vlmcsd never refuses activa‐
|
||||
a so called "Select contract". In addition vlmcsd never refuses activa-
|
||||
tion while the Microsoft KMS server only activates the products the
|
||||
customer has paid for.
|
||||
|
||||
Product activation using vlmcsd is performed in three easy steps:
|
||||
|
||||
1) Run vlmcsd (or any other KMS emulator) on a computer in your net‐
|
||||
1) Run vlmcsd (or any other KMS emulator) on a computer in your net-
|
||||
work. This will be your KMS server. New users should simply run the
|
||||
program without any parameters. The defaults should fit the needs of
|
||||
most users.
|
||||
@ -47,11 +47,11 @@ DESCRIPTION
|
||||
However, when it comes to the details, some things turn out to be more
|
||||
difficult than you might think.
|
||||
|
||||
The most important thing to know is that KMS activation is not perma‐
|
||||
The most important thing to know is that KMS activation is not perma-
|
||||
nent. The computer remains activated for 180 days (30 or 45 days with
|
||||
consumer-only products). KMS activation however is not an evaluation
|
||||
license. You can repeat the activation anytime and as often as you like
|
||||
to extend activation to another 180 days. This normally happens auto‐
|
||||
to extend activation to another 180 days. This normally happens auto-
|
||||
matically. For this to work, you have to ensure that a KMS server is
|
||||
always reachable for the clients on your network.
|
||||
|
||||
@ -64,7 +64,7 @@ DESCRIPTION
|
||||
|
||||
|
||||
How to get a GVLK?
|
||||
That is relatively simple. The GVLKs are published on Microsoft's Tech‐
|
||||
That is relatively simple. The GVLKs are published on Microsoft's Tech-
|
||||
net web site.
|
||||
|
||||
Windows: http://technet.microsoft.com/en-us/library/jj612867.aspx
|
||||
@ -86,7 +86,7 @@ DESCRIPTION
|
||||
7B9N3-D94CG-YTVHR-QBPX3-RJP64 - Windows 8.1 Core N
|
||||
BB6NG-PQ82V-VRDPW-8XVD2-V8P66 - Windows 8.1 Core Single Language
|
||||
NCTT7-2RGK8-WMHRF-RY7YQ-JTXG3 - Windows 8.1 Core Country Specific
|
||||
GNBB8-YVD74-QJHX6-27H4K-8QHDG - Windows 8 Professional with Media Cen‐
|
||||
GNBB8-YVD74-QJHX6-27H4K-8QHDG - Windows 8 Professional with Media Cen-
|
||||
ter
|
||||
BN3D2-R7TKB-3YPBD-8DRP2-27GG4 - Windows 8 Core
|
||||
8N2M2-HWPGY-7PGT9-HGDD8-GVGGY - Windows 8 Core N
|
||||
@ -103,7 +103,7 @@ DESCRIPTION
|
||||
section.
|
||||
|
||||
These are two Visual Basic script utilities that are used to control
|
||||
Microsoft's Software Protection system. To use them open a Windows Com‐
|
||||
Microsoft's Software Protection system. To use them open a Windows Com-
|
||||
mand Prompt. slmgr.vbs is for Windows. ospp.vbs is for Office 2010 and
|
||||
2013. These utilities are installed with Windows and Office and you
|
||||
don't need to download them.
|
||||
@ -153,7 +153,7 @@ DESCRIPTION
|
||||
2) Type "cscript ospp.vbs /setprt:tcp-port". Example: cscript
|
||||
ospp.vbs /setprt:1688
|
||||
|
||||
tcp-port is usually 1688 unless you instructed vlmcsd to use a differ‐
|
||||
tcp-port is usually 1688 unless you instructed vlmcsd to use a differ-
|
||||
ent port which is rarely necessary.
|
||||
|
||||
|
||||
|
104
man/vlmcsd.8
104
man/vlmcsd.8
@ -1,5 +1,5 @@
|
||||
.mso www.tmac
|
||||
.TH VLMCSD 8 "October 2016" "Hotbird64" "KMS Activation Manual"
|
||||
.TH VLMCSD 8 "October 2018" "Hotbird64" "KMS Activation Manual"
|
||||
.LO 8
|
||||
|
||||
.SH NAME
|
||||
@ -17,7 +17,17 @@ vlmcsd \- a fully Microsoft compatible KMS server
|
||||
.PP
|
||||
Although \fBvlmcsd\fR does neither require an activation key nor a payment to anyone, it is not meant to run illegal copies of Windows. Its purpose is to ensure that owners of legal copies can use their software without restrictions, e.g. if you buy a new computer or motherboard and your key will be refused activation from Microsoft servers due to hardware changes.
|
||||
.PP
|
||||
\fBvlmcsd\fR may be started via an internet superserver like \fBinetd\fR(8) or \fBxinetd\fR(8) as well as an advanced init system like \fBsystemd\fR(8) or \fBlaunchd\fR(8) using socket based activation. If \fBvlmcsd\fR detects that \fBstdin\fR(3) is a socket, it assumes that there is already a connected client on stdin that wants to be activated. All options that control setting up listening sockets will be ignored when in inetd mode.
|
||||
\fBvlmcsd\fR may be started via an internet superserver like \fBinetd\fR(8) or \fBxinetd\fR(8) as well as an advanced init system like \fBsystemd\fR(8) or \fBlaunchd\fR(8) using socket based activation. If \fBvlmcsd\fR detects that \fBstdin\fR(3) is a socket, it assumes that there is already a connected client on stdin that wants to be activated.
|
||||
|
||||
All options that control setting up listening sockets will be ignored when in inetd mode. The sockets will be set up by your internet superserver. You also cannot limit the number of simultanous clients (option \fB-m\fR). You need to configure the limit in your internet superserver.
|
||||
|
||||
The followong features that require that vlmcsd is permanently loaded will not work if started from an internet superserver:
|
||||
|
||||
.IP
|
||||
You cannot maintain a client list (option \fB-M1\fR)
|
||||
|
||||
.IP
|
||||
EPID Randomization Level 1 (option \fB-r1\fR) works like Level 2 (\fB-r2\fR). You may want to use Level 0 (\fB-r0\fR) or custom EPIDs (options \fB-w\fR, \fB-G\fR, \fB-0\fR, \fB-3\fR and \fB-6\fR) instead.
|
||||
|
||||
.SH OPTIONS
|
||||
Since vlmcsd can be configured at compile time, some options may not be available on your system.
|
||||
@ -66,10 +76,45 @@ in the 32-bit ABI of the 64-bit kernel. If you have a 64-bit FreeBSD kernel, you
|
||||
If vlmcsd was started by an internet superserver or was compiled to use Microsoft RPC (Windows only) or simple sockets, \fB-o1\fR and \fB-o3\fR are not available by design.
|
||||
.RE
|
||||
|
||||
.IP "\fB-P\fR \fIport"
|
||||
.IP "\fB-P\fR \fIport\fR"
|
||||
Use TCP \fIport\fR for all subsequent \fB-L\fR statements that do not include an optional port. If you use \fB-P\fR and \fB-L\fR, \fB-P\fR must be specified before \fB-L\fR.
|
||||
|
||||
.IP "\fB-F0\fR and \fB-F1\fR
|
||||
.IP "\fB-O\fR \fIvpn-adapter-name\fR[=\fIipv4-address\fR][/\fIcidr-mask\fR][:\fIdhcp-lease-duration\fR]"
|
||||
Enables a compatible VPN adapter to create additional local IPv4 addresses (like 127.0.0.1) that appear as remote IPv4 addresses to the system. This allows product activation using a local instance of vlmcsd. This feature is only available in Windows and Cygwin builds of vlmcsd since it is not of any use on other operating systems. Compatible VPN adapters are Tap-windows version 8.2 or higher (from OpenVPN) and the TeamViewer VPN adapter. There are two special \fIvpn-adapter-name\fRs. A single period (.) instructs vlmcsd to use the first available compatible VPN adapter. A single dash (\-) disables the use of a VPN adapter if one has been configured in \fBvlmcsd.ini\fR(5). The \fIvpn-adapter-name\fR is \fBnot\fR case-sensitive. If the \fIvpn-adapter-name\fR contains spaces (e.g. Ethernet 3), you must enclose it in quotes.
|
||||
|
||||
The default \fIipv4-address\fR is 10.10.10.9 and the default \fIcidr-mask\fR is 30. If you are using the default values, your VPN adapter uses an IPv4 address of 10.10.10.9 and you can set your activation client to use the easy to remember address 10.10.10.10 (e.g. slmgr /skms 10.10.10.10 or cscript ospp.vbs /sethst:10.10.10.10).
|
||||
|
||||
The \fIdhcp-lease-duration\fR is a number optionally followed by s, m, h, d or w to indicate seconds, minutes, hours, days or weeks. The default \fIdhcp-lease-duration\fR is 1d (one day). It is normally not required to change this value.
|
||||
|
||||
It is advised not to manually configure your OpenVPN TAP or TeamViewer VPN adapter in "Network Connections". If you set the IPv4 configuration manually anyway, the IPv4 address and the subnet mask must match the \fB-O\fR parameter. It is safe leave the IPv4 configuration to automatic (DHCP). vlmcsd will wait up to four seconds for the DHCP configuration to complete before binding to and listenin on any interfaces.
|
||||
|
||||
You should be aware that only one program can use a VPN adapter at a time. If you use the TeamViewer VPN adapter for example, you will not be able to use the VPN feature of TeamViewer as long as vlmcsd is running. The same applies to OpenVPN TAP adapters that are in use by other programs (for example OpenVPN, QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid conflicts is to install Tap-Windows from OpenVPN, cd to C:\\Program Files\\TAP-Windows\\bin and run addtap.bat to install an additional TAP adapter. Go to "Network Connections" and rename the new adapter to "vlmcsd" and specify \fB-O vlmcsd\fR to use it.
|
||||
|
||||
Example: \fB-O "Ethernet 7"=192.168.123.1/24\fR (uses VPN adapter Ethernet 7 with IPv4 address 192.168.123.1 and have 192.168.123.2 to 192.168.123.254 as additional local (but apparently remote) IPv4 addresses.
|
||||
|
||||
.IP "\fB-x0\fR and \fB-x1\fR"
|
||||
Controls under what circumstances vlmcsd will exit. Using the default of \fB-x0\fR vlmcsd stays active as long as it can perform some useful operations. If vlmcsd is run by any form of a watchdog, e.g. NT service manager (Windows), systemd (Linux) or launchd (Mac OS / iOS), it may be desirable to end vlmcsd and let the watchdog restart it. This is especially true if some pre-requisites are not yet met but will be some time later, e.g. network is not yet fully setup.
|
||||
|
||||
By using \fB-x0\fR vlmcsd will
|
||||
|
||||
.RS 12
|
||||
exit if none of the listening sockets specified with \fB-L\fR can be used. It continues if at least one socket can be setup for listening.
|
||||
|
||||
exit any TAP mirror thread (Windows version only) if there is an error condition while reading or writing from or to the VPN adapter but continue to work without utilizing a VPN adapter.
|
||||
.RE
|
||||
.IP
|
||||
By using \fB-x1\fR vlmcsd will
|
||||
|
||||
.RS 12
|
||||
exit if not all listening sockets specified with \fB-L\fR can be used.
|
||||
|
||||
exit completely if there is a problem with a VPN adapter it is using. This can happen for instance if the VPN adapter has been disabled using "Control Panel - Network - Adapter Settings" while vlmcsd is using it.
|
||||
|
||||
.RE
|
||||
.IP
|
||||
Please note that \fB-x1\fR is kind of a workaround option. While it may help under some circumstances, it is better to solve the problem at its origin, e.g. properly implementing dependencies in your startup script to ensure all network interfaces and the VPN adapter you will use are completely setup before you start vlmcsd.
|
||||
|
||||
.IP "\fB-F0\fR and \fB-F1\fR"
|
||||
Allow (\fB-F1\fR) or disallow (\fB-F0\fR) binding to IP addresses that are currently not configured on your system. The default is \fB-F0\fR. \fB-F1\fR allows you to bind to an IP address that may be configured after you started \fBvlmcsd\fR. \fBvlmcsd\fR will listen on that address as soon as it becomes available. This feature is only available under Linux (IPv4 and IPv6) and FreeBSD (IPv4 only). FreeBSD allows this feature only for the root user (more correctly: processes that have the PRIV_NETINET_BINDANY privilege). Linux does not require a capability for this.
|
||||
|
||||
.IP "\fB-t\fR \fIseconds\fR"
|
||||
@ -128,34 +173,21 @@ The actual security context switch is performed after the TCP sockets have been
|
||||
.IP
|
||||
However if you use an ini, pid or log file, you must ensure that the unprivileged user has access to these files. You can always log to \fBsyslog\fR(3) from an unprivileged account on most platforms (see \fB-l\fR).
|
||||
|
||||
.IP "\fB-w\fR \fIePID\fR"
|
||||
Use \fIePID\fR as Windows ePID. If specified, \fB-r\fR is disregarded for Windows.
|
||||
.IP "\fB-a\fR \fICSVLK\fR = \fIePID\fR [ / \fIHwId\fR ]"
|
||||
Use \fIePID\fR and \fIHwId\fR for a specific \fICSVLK\fR. When you use it, \fB-r\fR is disregarded for this \fICSVLK\fR. If vlmcsd uses the default vlmcsd.kmd database, you can use the following \fICSVLK\fRs: Windows, WinChinaGov, Office2010, Office2013, Office2016 and Office2019. The \fB-a\fR option requires that database version 1.6 or later is used.
|
||||
|
||||
.IP "\fB-0\fR \fIePID\fR"
|
||||
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"
|
||||
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"
|
||||
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.
|
||||
|
||||
\fIHwId\fR must be specified as 16 hex digits that are interpreted as a series of 8 bytes (big endian). Any character that is not a hex digit will be ignored. This is for better readability. The following commands are identical:
|
||||
|
||||
vlmcsd -H 0123456789ABCDEF
|
||||
.br
|
||||
vlmcsd -H 01:23:45:67:89:ab:cd:ef
|
||||
.br
|
||||
vlmcsd -H "01 23 45 67 89 AB CD EF"
|
||||
\fIHwId\fR must be specified as 16 hex digits that are interpreted as a series of 8 bytes (big endian). Any character that is not a hex digit will be ignored. This is for better readability.
|
||||
|
||||
.IP "\fB-i\fR \fIfilename\fR"
|
||||
Use configuration file (aka ini file) \fIfilename\fR. Most configuration parameters can be set either via the command line or an ini file. The command line always has precedence over configuration items in the ini file. See \fBvlmcsd.ini\fR(5) for the format of the configuration file.
|
||||
|
||||
If vlmcsd has been compiled to use a default configuration file (often /etc/vlmcsd.ini), you may use \fB-i-\fR to ignore the default configuration file.
|
||||
|
||||
.IP "\fB-j\fR \fIfilename\fR"
|
||||
Use KMS data file \fIfilename\fR. By default vlmcsd only contains the minimum product data that is required to perform all operations correctly. You may use a more complete KMS data file that contains all detailed product names. This is especially useful if you are logging KMS requests. If you don't log, there is no need to load an external KMS data file.
|
||||
|
||||
If vlmcsd has been compiled to use a default KMS data file, you may use \fB-j-\fR to ignore the default configuration file.
|
||||
|
||||
.IP "\fB-r0\fR, \fB-r1\fR (default) and \fB-r2\fR"
|
||||
These options determine how ePIDs are generated if
|
||||
|
||||
@ -171,7 +203,7 @@ These options determine how ePIDs are generated if
|
||||
|
||||
\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 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.
|
||||
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-G\fR, \fB-0\fR, \fB-3\fR and \fB-6\fR 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. \fB-r2\fR should be treated as debugging option only because it allows very easy emulator detection.
|
||||
|
||||
@ -184,6 +216,9 @@ for a list of valid \fILCID\fRs. Please note that some of them are not recognize
|
||||
|
||||
Most other KMS emulators use a fixed \fILCID\fR of 1033 (English - US). To achive the same behavior in vlmcsd use \fB-C 1033\fR.
|
||||
|
||||
.IP "\fB-H\fR \fIHostBuild\fR"
|
||||
Do not randomize the host build number in the ePID and use \fIHostBuild\fR instead, for instance 17763 for Windows Server 2019 / Windows 10 1809.
|
||||
|
||||
.IP "\fB-K0\fR, \fB-K1\fR, \fB-K2\fR and \fB-K3\fR"
|
||||
Sets the whitelisting level to determine which products vlmcsd activates or refuses. The default is \fB-K0\fR.
|
||||
|
||||
@ -203,6 +238,14 @@ The SKU ID is not checked. Like a genuine KMS server vlmcsd activates a product
|
||||
.IP "\fB-c0\fR and \fB-c1\fR"
|
||||
\fB-c1\fR causes vlmcsd to check if the client time differs no more than four hours from the system time. \fB-c0\fR (the default) disables this check. \fB-c1\fR is useful to prevent emulator detection. A client that tries to detect an emulator could simply send two subsequent request with two time stamps that differ more than four hours from each other. If both requests succeed, the server is an emulator. If you specify \fB-c1\fR on a system with no reliable time source, activations will fail. It is ok to set the correct system time after you started vlmcsd.
|
||||
|
||||
.IP "\fB-M0\fR and \fB-M1\fR"
|
||||
Disables (\fB-M0\fR) or enables (\fB-M1\fR) maintaining a list of client machine IDs (CMIDs). The default is \fB-M0\fR. \fB-M1\fR is useful to prevent emulator detection. By maintaing a CMID list, vlmcsd reports current active clients exactly like a genuine KMS emulator. This includes bug compatibility to the extent that you can permanently kill a genuine KMS emulator by sending an "overcharge request" with a required client count of 376 or more and then request activation for 671 clients. vlmcsd can be reset from this condition by restarting it. If \fB-M0\fR is used, vlmcsd reports current active clients as good as possible. If no client sends an "overcharge request", it is not possible to detect vlmcsd as an emulator with \fB-M0\fR. \fB-M1\fR requires the allocation of a buffer that is about 50 kB in size. On hardware with few memory resources use it only if you really need it.
|
||||
|
||||
If you start vlmcsd from an internet superserver, \fB-M1\fR cannot be used. Since vlmcsd exits after each activation, it cannot maintain any state in memory.
|
||||
|
||||
.IP "\fB-E0\fR and \fB-E1\fR"
|
||||
These options are ignored if you do not also specify \fB-M1\fR. If you use \fB-E0\fR (the default), vlmcsd starts up as a fully "charged" KMS server. Clients activate immediately. \fB-E1\fR lets you start up vlmcsd with an empty CMID list. Activation will start when the required minimum clients (25 for Windows Client OSses, 5 for Windows Server OSses and Office) have registered with the KMS server. As long as the minimum client count has not been reached, clients end up in HRESULT 0xC004F038 "The count reported by your Key Management Service (KMS) is insufficient. Please contact your system administrator". You may use \fBvlmcs\fR(1) or another KMS client emulator to "charge" vlmcsd. \fB-E1\fR does not improve emulator detection prevention. It's primary purpose is to help developers of KMS clients to test "charging" a KMS server.
|
||||
|
||||
.IP "\fB-R\fR \fIrenewal-interval\fR"
|
||||
Instructs clients to renew activation every \fIrenewal-interval\fR. The \fIrenewal-interval\fR is a number optionally immediately followed by a letter indicating the unit. Valid unit letters are s (seconds), m (minutes), h (hours), d (days) and w (weeks). If you do not specify a letter, minutes is assumed.
|
||||
|
||||
@ -263,13 +306,13 @@ If you used a pid file, it is not deleted and recreated because the process id s
|
||||
If you used the 'user' and/or 'group' directive in an ini file these are ignored. This is because once you switched to lower privileged users and groups, there is no way back. Anything else would be a severe security flaw in the OS.
|
||||
.RE
|
||||
|
||||
Signaling is not available in the native Windows version and in the Cygwin version when it runs as Windows service.
|
||||
Signaling is not available in the native Windows version and in the Cygwin version when vlmcsd runs as a Windows service.
|
||||
|
||||
.SH SUPPORTED OPERATING SYSTEMS
|
||||
\fBvlmcsd\fR compiles and runs on Linux, Windows (no Cygwin required but explicitly supported), Mac OS X, FreeBSD, NetBSD, OpenBSD, Dragonfly BSD, Minix, Solaris, OpenIndiana, Android and iOS. Other POSIX or unixoid OSses may work with unmodified sources or may require minor porting efforts.
|
||||
|
||||
.SH SUPPORTED PRODUCTS
|
||||
\fBvlmcsd\fR can answer activation requests for the following products: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 (up to 1607), Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Office 2010, Project 2010, Visio 2010, Office 2013, Project 2013, Visio 2013, Office 2016, Project 2016, Visio 2016. Newer version may work as long as the KMS protocol does not change. A complete list of fully supported products can be obtained using the \fB-x\fR option of \fBvlmcs\fR(1).
|
||||
\fBvlmcsd\fR can answer activation requests for the following products: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 (up to 1703), Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Office 2010, Project 2010, Visio 2010, Office 2013, Project 2013, Visio 2013, Office 2016, Project 2016, Visio 2016. Newer products may work as long as the KMS protocol does not change. A complete list of fully supported products can be obtained using the \fB-x\fR option of \fBvlmcs\fR(1).
|
||||
.PP
|
||||
Office, Project and Visio must be volume license versions.
|
||||
|
||||
@ -292,15 +335,12 @@ Installs \fBvlmcsd\fR as a Windows service with low privileges and logs everythi
|
||||
.SH BUGS
|
||||
An ePID specified in an ini file must not contain spaces.
|
||||
|
||||
.SH INTENTIONAL BUGS
|
||||
vlmcsd always reports enough active clients to satisfy the N count policy of the request.
|
||||
|
||||
.SH AUTHOR
|
||||
Written by crony12, Hotbird64 and vityan666.
|
||||
With contributions from DougQaid.
|
||||
|
||||
.SH CREDITS
|
||||
Thanks to CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad, Ratiborus, ...
|
||||
Thanks to abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad, Ratiborus, ...
|
||||
|
||||
.SH SEE ALSO
|
||||
\fBvlmcsd.ini\fR(5), \fBvlmcsd\fR(7), \fBvlmcs\fR(1), \fBvlmcsdmulti\fR(1)
|
||||
|
@ -33,15 +33,30 @@ DESCRIPTION
|
||||
xinetd(8) as well as an advanced init system like systemd(8) or
|
||||
launchd(8) using socket based activation. If vlmcsd detects that
|
||||
stdin(3) is a socket, it assumes that there is already a connected
|
||||
client on stdin that wants to be activated. All options that control
|
||||
setting up listening sockets will be ignored when in inetd mode.
|
||||
client on stdin that wants to be activated.
|
||||
|
||||
All options that control setting up listening sockets will be ignored
|
||||
when in inetd mode. The sockets will be set up by your internet super-
|
||||
server. You also cannot limit the number of simultanous clients (option
|
||||
-m). You need to configure the limit in your internet superserver.
|
||||
|
||||
The followong features that require that vlmcsd is permanently loaded
|
||||
will not work if started from an internet superserver:
|
||||
|
||||
|
||||
You cannot maintain a client list (option -M1)
|
||||
|
||||
|
||||
EPID Randomization Level 1 (option -r1) works like Level 2
|
||||
(-r2). You may want to use Level 0 (-r0) or custom EPIDs
|
||||
(options -w, -G, -0, -3 and -6) instead.
|
||||
|
||||
|
||||
OPTIONS
|
||||
Since vlmcsd can be configured at compile time, some options may not be
|
||||
available on your system.
|
||||
|
||||
All options that do no require an argument may be combined with a sin‐
|
||||
All options that do no require an argument may be combined with a sin-
|
||||
gle dash, for instance "vlmcsd -D -e" is identical to "vlmcsd -De". For
|
||||
all options that require an argument a space between the option and the
|
||||
option argument is optional. Thus "vlmcsd -r 2" and "vlmcsd -r2" are
|
||||
@ -52,7 +67,7 @@ OPTIONS
|
||||
Displays help.
|
||||
|
||||
|
||||
-V Displays extended version information. This includes the com‐
|
||||
-V Displays extended version information. This includes the com-
|
||||
piler used to build vlmcsd, the intended platform and flags
|
||||
(compile time options) to build vlmcsd. If you have the source
|
||||
code of vlmcsd, you can type make help (or gmake help on systems
|
||||
@ -88,7 +103,7 @@ OPTIONS
|
||||
Sets the level of protection against activations from public IP
|
||||
addresses. The default is -o0 for no protection.
|
||||
|
||||
-o1 causes vlmcsd not to listen on all IP addresses but on pri‐
|
||||
-o1 causes vlmcsd not to listen on all IP addresses but on pri-
|
||||
vate IP addresses only. IPv4 addresses in the 100.64.0.0/10
|
||||
range (see RFC6598) are not treated as private since they can be
|
||||
reached from other users of your ISP. Private IPv4 addresses are
|
||||
@ -114,7 +129,7 @@ OPTIONS
|
||||
a single byte sent over the connection. This protects against
|
||||
clients with public IP addresses even if NAT port forwarding is
|
||||
used. While -o2 offers a higher level of protection than -o1,
|
||||
the client sees that the KMS TCP port (1688 by default) is actu‐
|
||||
the client sees that the KMS TCP port (1688 by default) is actu-
|
||||
ally accepting connections.
|
||||
|
||||
If vlmcsd is compiled to use MS RPC, -o2 can only offer very
|
||||
@ -138,12 +153,12 @@ OPTIONS
|
||||
|
||||
-o1 (and thus -o3) is not (yet) available in some scenarios:
|
||||
|
||||
FreeBSD: There is a longtime unfixed bug ⟨https://
|
||||
bugs.freebsd.org/bugzilla/show_bug.cgi?id=178881⟩ in the
|
||||
32-bit ABI of the 64-bit kernel. If you have a 64-bit Free‐
|
||||
FreeBSD: There is a longtime unfixed bug <https://
|
||||
bugs.freebsd.org/bugzilla/show_bug.cgi?id=178881> in the
|
||||
32-bit ABI of the 64-bit kernel. If you have a 64-bit Free-
|
||||
BSD kernel, you must run the 64-bit version of vlmcsd if
|
||||
you use -o1 or -o3. The 32-bit version causes undefined
|
||||
behavior up to crashing vlmcsd. Other BSDs (NetBSD, Open‐
|
||||
behavior up to crashing vlmcsd. Other BSDs (NetBSD, Open-
|
||||
BSD, Dragonfly and Mac OS X) work correctly.
|
||||
|
||||
If vlmcsd was started by an internet superserver or was
|
||||
@ -153,10 +168,102 @@ OPTIONS
|
||||
|
||||
-P port
|
||||
Use TCP port for all subsequent -L statements that do not
|
||||
include an optional port. If you use -P and -L, -P must be spec‐
|
||||
include an optional port. If you use -P and -L, -P must be spec-
|
||||
ified before -L.
|
||||
|
||||
|
||||
-O vpn-adapter-name[=ipv4-address][/cidr-mask][:dhcp-lease-duration]
|
||||
Enables a compatible VPN adapter to create additional local IPv4
|
||||
addresses (like 127.0.0.1) that appear as remote IPv4 addresses
|
||||
to the system. This allows product activation using a local
|
||||
instance of vlmcsd. This feature is only available in Windows
|
||||
and Cygwin builds of vlmcsd since it is not of any use on other
|
||||
operating systems. Compatible VPN adapters are Tap-windows ver-
|
||||
sion 8.2 or higher (from OpenVPN) and the TeamViewer VPN
|
||||
adapter. There are two special vpn-adapter-names. A single
|
||||
period (.) instructs vlmcsd to use the first available compati-
|
||||
ble VPN adapter. A single dash (-) disables the use of a VPN
|
||||
adapter if one has been configured in vlmcsd.ini(5). The vpn-
|
||||
adapter-name is not case-sensitive. If the vpn-adapter-name con-
|
||||
tains spaces (e.g. Ethernet 3), you must enclose it in quotes.
|
||||
|
||||
The default ipv4-address is 10.10.10.9 and the default cidr-mask
|
||||
is 30. If you are using the default values, your VPN adapter
|
||||
uses an IPv4 address of 10.10.10.9 and you can set your activa-
|
||||
tion client to use the easy to remember address 10.10.10.10
|
||||
(e.g. slmgr /skms 10.10.10.10 or cscript ospp.vbs
|
||||
/sethst:10.10.10.10).
|
||||
|
||||
The dhcp-lease-duration is a number optionally followed by s, m,
|
||||
h, d or w to indicate seconds, minutes, hours, days or weeks.
|
||||
The default dhcp-lease-duration is 1d (one day). It is normally
|
||||
not required to change this value.
|
||||
|
||||
It is advised not to manually configure your OpenVPN TAP or
|
||||
TeamViewer VPN adapter in "Network Connections". If you set the
|
||||
IPv4 configuration manually anyway, the IPv4 address and the
|
||||
subnet mask must match the -O parameter. It is safe leave the
|
||||
IPv4 configuration to automatic (DHCP). vlmcsd will wait up to
|
||||
four seconds for the DHCP configuration to complete before bind-
|
||||
ing to and listenin on any interfaces.
|
||||
|
||||
You should be aware that only one program can use a VPN adapter
|
||||
at a time. If you use the TeamViewer VPN adapter for example,
|
||||
you will not be able to use the VPN feature of TeamViewer as
|
||||
long as vlmcsd is running. The same applies to OpenVPN TAP
|
||||
adapters that are in use by other programs (for example OpenVPN,
|
||||
QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid con-
|
||||
flicts is to install Tap-Windows from OpenVPN, cd to C:\Program
|
||||
Files\TAP-Windows\bin and run addtap.bat to install an addi-
|
||||
tional TAP adapter. Go to "Network Connections" and rename the
|
||||
new adapter to "vlmcsd" and specify -O vlmcsd to use it.
|
||||
|
||||
Example: -O "Ethernet 7"=192.168.123.1/24 (uses VPN adapter Eth-
|
||||
ernet 7 with IPv4 address 192.168.123.1 and have 192.168.123.2
|
||||
to 192.168.123.254 as additional local (but apparently remote)
|
||||
IPv4 addresses.
|
||||
|
||||
|
||||
-x0 and -x1
|
||||
Controls under what circumstances vlmcsd will exit. Using the
|
||||
default of -x0 vlmcsd stays active as long as it can perform
|
||||
some useful operations. If vlmcsd is run by any form of a watch-
|
||||
dog, e.g. NT service manager (Windows), systemd (Linux) or
|
||||
launchd (Mac OS / iOS), it may be desirable to end vlmcsd and
|
||||
let the watchdog restart it. This is especially true if some
|
||||
pre-requisites are not yet met but will be some time later, e.g.
|
||||
network is not yet fully setup.
|
||||
|
||||
By using -x0 vlmcsd will
|
||||
|
||||
exit if none of the listening sockets specified with -L can
|
||||
be used. It continues if at least one socket can be setup
|
||||
for listening.
|
||||
|
||||
exit any TAP mirror thread (Windows version only) if there
|
||||
is an error condition while reading or writing from or to
|
||||
the VPN adapter but continue to work without utilizing a
|
||||
VPN adapter.
|
||||
|
||||
By using -x1 vlmcsd will
|
||||
|
||||
exit if not all listening sockets specified with -L can be
|
||||
used.
|
||||
|
||||
exit completely if there is a problem with a VPN adapter it
|
||||
is using. This can happen for instance if the VPN adapter
|
||||
has been disabled using "Control Panel - Network - Adapter
|
||||
Settings" while vlmcsd is using it.
|
||||
|
||||
|
||||
Please note that -x1 is kind of a workaround option. While it
|
||||
may help under some circumstances, it is better to solve the
|
||||
problem at its origin, e.g. properly implementing dependencies
|
||||
in your startup script to ensure all network interfaces and the
|
||||
VPN adapter you will use are completely setup before you start
|
||||
vlmcsd.
|
||||
|
||||
|
||||
-F0 and -F1
|
||||
Allow (-F1) or disallow (-F0) binding to IP addresses that are
|
||||
currently not configured on your system. The default is -F0. -F1
|
||||
@ -170,12 +277,12 @@ OPTIONS
|
||||
|
||||
|
||||
-t seconds
|
||||
Timeout the TCP connection with the client after seconds sec‐
|
||||
Timeout the TCP connection with the client after seconds sec-
|
||||
onds. After sending an activation request. RPC keeps the TCP
|
||||
connection for a while. The default is 30 seconds. You may spec‐
|
||||
connection for a while. The default is 30 seconds. You may spec-
|
||||
ify a shorter period to free ressources on your device faster.
|
||||
This is useful for devices with limited main memory or if you
|
||||
used -m to limit the concurrent clients that may request activa‐
|
||||
used -m to limit the concurrent clients that may request activa-
|
||||
tion. Microsoft RPC clients disconnect after 30 seconds by
|
||||
default. Setting seconds to a greater value does not make much
|
||||
sense.
|
||||
@ -186,7 +293,7 @@ OPTIONS
|
||||
This is useful for devices with limited ressources or if you are
|
||||
experiencing DoS attacks that spawn thousands of threads or
|
||||
forked processes. If additional clients connect to vlmcsd, they
|
||||
need to wait until another client disconnects. If you set con‐
|
||||
need to wait until another client disconnects. If you set con-
|
||||
current-clients to a small value ( <10 ), you should also select
|
||||
a reasonable timeout of 2 or 3 seconds with -t. The default is
|
||||
no limit.
|
||||
@ -210,7 +317,7 @@ OPTIONS
|
||||
Disables (-N0) or enables (-N1) the use of the NDR64 transfer
|
||||
syntax in the RPC protocol. Unlike Microsoft vlmcsd supports
|
||||
NDR64 on 32-bit operating systems. Microsoft introduced NDR64 in
|
||||
Windows Vista but their KMS servers started using it with Win‐
|
||||
Windows Vista but their KMS servers started using it with Win-
|
||||
dows 8. Thus if you choose random ePIDs, vlmcsd will select
|
||||
ePIDs with build numbers 9200 and 9600 if you enable NDR64 and
|
||||
build numbers 6002 and 7601 if you disable NDR64. The default is
|
||||
@ -219,10 +326,10 @@ OPTIONS
|
||||
|
||||
-B0 and -B1
|
||||
Disables (-B0) or enables (-B1) bind time feature negotiation
|
||||
(BTFN) in the RPC protocol. All Windows operating systems start‐
|
||||
ing with Vista support BTFN and try to negotiate it when initi‐
|
||||
(BTFN) in the RPC protocol. All Windows operating systems start-
|
||||
ing with Vista support BTFN and try to negotiate it when initi-
|
||||
ating an RPC connection. Thus consider turning it off as a debug
|
||||
/ troubleshooting feature only. Some older firewalls that selec‐
|
||||
/ troubleshooting feature only. Some older firewalls that selec-
|
||||
tively block or redirect RPC traffic may get confused when they
|
||||
detect NDR64 or BTFN.
|
||||
|
||||
@ -236,7 +343,7 @@ OPTIONS
|
||||
|
||||
If you use the special filename "syslog", vlmcsd uses syslog(3)
|
||||
for logging. If your system has no syslog service (/dev/log)
|
||||
installed, logging output will go to /dev/console. Syslog log‐
|
||||
installed, logging output will go to /dev/console. Syslog log-
|
||||
ging is not available in the native Windows version. The Cygwin
|
||||
version does support syslog logging.
|
||||
|
||||
@ -244,7 +351,7 @@ OPTIONS
|
||||
-T0 and -T1
|
||||
Disable (-T0) or enable (-T1) the inclusion of date and time in
|
||||
each line of the log. The default is -T1. -T0 is useful if you
|
||||
log to stdout(3) which is redirected to another logging mecha‐
|
||||
log to stdout(3) which is redirected to another logging mecha-
|
||||
nism that already includes date and time in its output, for
|
||||
instance systemd-journald(8). If you log to syslog(3), -T1 is
|
||||
ignored and date and time will never be included in the output
|
||||
@ -269,15 +376,15 @@ OPTIONS
|
||||
-v Use verbose logging. Logs every parameter of the base request
|
||||
and the base response. It also logs the HWID of the KMS server
|
||||
if KMS protocol version 6 is used. This option is mainly for
|
||||
debugging purposes. It only has an effect if some form of log‐
|
||||
debugging purposes. It only has an effect if some form of log-
|
||||
ging is used. Thus -v does not make sense if not used with -l,
|
||||
-e or -f.
|
||||
|
||||
|
||||
-q Do not use verbose logging. This is actually the default behav‐
|
||||
-q Do not use verbose logging. This is actually the default behav-
|
||||
ior. It only makes sense if you use vlmcsd with an ini file (see
|
||||
-i and vlmcsd.ini(5)). If the ini file contains the line
|
||||
"LogVerbose = true" you can use -q to restore the default behav‐
|
||||
"LogVerbose = true" you can use -q to restore the default behav-
|
||||
ior.
|
||||
|
||||
|
||||
@ -307,44 +414,21 @@ OPTIONS
|
||||
(see -l).
|
||||
|
||||
|
||||
-w ePID
|
||||
Use ePID as Windows ePID. If specified, -r is disregarded for
|
||||
Windows.
|
||||
|
||||
|
||||
-0 ePID
|
||||
Use ePID as Office 2010 ePID (including Project and Visio). If
|
||||
specified, -r is disregarded for Office 2010.
|
||||
|
||||
|
||||
-3 ePID
|
||||
Use ePID as Office 2013 ePID (including Project and Visio). If
|
||||
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
|
||||
Use HwId for all products. All HWIDs in the ini file (see -i)
|
||||
will not be used. In an ini file you can specify a seperate HWID
|
||||
for each application-guid. This is not possible when entering a
|
||||
HWID from the command line.
|
||||
-a CSVLK = ePID [ / HwId ]
|
||||
Use ePID and HwId for a specific CSVLK. When you use it, -r is
|
||||
disregarded for this CSVLK. If vlmcsd uses the default vlm-
|
||||
csd.kmd database, you can use the following CSVLKs: Windows,
|
||||
WinChinaGov, Office2010, Office2013, Office2016 and Office2019.
|
||||
The -a option requires that database version 1.6 or later is
|
||||
used.
|
||||
|
||||
HwId must be specified as 16 hex digits that are interpreted as
|
||||
a series of 8 bytes (big endian). Any character that is not a
|
||||
hex digit will be ignored. This is for better readability. The
|
||||
following commands are identical:
|
||||
|
||||
vlmcsd -H 0123456789ABCDEF
|
||||
vlmcsd -H 01:23:45:67:89:ab:cd:ef
|
||||
vlmcsd -H "01 23 45 67 89 AB CD EF"
|
||||
hex digit will be ignored. This is for better readability.
|
||||
|
||||
|
||||
-i filename
|
||||
Use configuration file (aka ini file) filename. Most configura‐
|
||||
Use configuration file (aka ini file) filename. Most configura-
|
||||
tion parameters can be set either via the command line or an ini
|
||||
file. The command line always has precedence over configuration
|
||||
items in the ini file. See vlmcsd.ini(5) for the format of the
|
||||
@ -355,6 +439,18 @@ OPTIONS
|
||||
configuration file.
|
||||
|
||||
|
||||
-j filename
|
||||
Use KMS data file filename. By default vlmcsd only contains the
|
||||
minimum product data that is required to perform all operations
|
||||
correctly. You may use a more complete KMS data file that con-
|
||||
tains all detailed product names. This is especially useful if
|
||||
you are logging KMS requests. If you don't log, there is no need
|
||||
to load an external KMS data file.
|
||||
|
||||
If vlmcsd has been compiled to use a default KMS data file, you
|
||||
may use -j- to ignore the default configuration file.
|
||||
|
||||
|
||||
-r0, -r1 (default) and -r2
|
||||
These options determine how ePIDs are generated if
|
||||
|
||||
@ -387,8 +483,8 @@ OPTIONS
|
||||
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 -r0 or -w, -0, -3 and -6 when start‐
|
||||
ing vlmcsd by an internet superserver.
|
||||
KMS request. Consider using -r0 or -w, -G, -0, -3 and -6 when
|
||||
starting vlmcsd by an internet superserver.
|
||||
|
||||
-r2 behaves like most other KMS server emulators with random
|
||||
support and generates a new random ePID on every request. -r2
|
||||
@ -407,14 +503,20 @@ OPTIONS
|
||||
by .NET Framework 4.0. This may lead to a locale id which is
|
||||
unlikely to occur in your country, for instance 2155 for "Quecha
|
||||
- Ecuador". You may want to select the locale id of your country
|
||||
instead. See MSDN ⟨http://msdn.microsoft.com/en-us/goglobal/
|
||||
bb964664.aspx⟩ for a list of valid LCIDs. Please note that some
|
||||
instead. See MSDN <http://msdn.microsoft.com/en-us/goglobal/
|
||||
bb964664.aspx> for a list of valid LCIDs. Please note that some
|
||||
of them are not recognized by .NET Framework 4.0.
|
||||
|
||||
Most other KMS emulators use a fixed LCID of 1033 (English -
|
||||
US). To achive the same behavior in vlmcsd use -C 1033.
|
||||
|
||||
|
||||
-H HostBuild
|
||||
Do not randomize the host build number in the ePID and use Host-
|
||||
Build instead, for instance 17763 for Windows Server 2019 / Win-
|
||||
dows 10 1809.
|
||||
|
||||
|
||||
-K0, -K1, -K2 and -K3
|
||||
Sets the whitelisting level to determine which products vlmcsd
|
||||
activates or refuses. The default is -K0.
|
||||
@ -449,10 +551,48 @@ OPTIONS
|
||||
system time after you started vlmcsd.
|
||||
|
||||
|
||||
-M0 and -M1
|
||||
Disables (-M0) or enables (-M1) maintaining a list of client
|
||||
machine IDs (CMIDs). The default is -M0. -M1 is useful to pre-
|
||||
vent emulator detection. By maintaing a CMID list, vlmcsd
|
||||
reports current active clients exactly like a genuine KMS emula-
|
||||
tor. This includes bug compatibility to the extent that you can
|
||||
permanently kill a genuine KMS emulator by sending an "over-
|
||||
charge request" with a required client count of 376 or more and
|
||||
then request activation for 671 clients. vlmcsd can be reset
|
||||
from this condition by restarting it. If -M0 is used, vlmcsd
|
||||
reports current active clients as good as possible. If no client
|
||||
sends an "overcharge request", it is not possible to detect vlm-
|
||||
csd as an emulator with -M0. -M1 requires the allocation of a
|
||||
buffer that is about 50 kB in size. On hardware with few memory
|
||||
resources use it only if you really need it.
|
||||
|
||||
If you start vlmcsd from an internet superserver, -M1 cannot be
|
||||
used. Since vlmcsd exits after each activation, it cannot main-
|
||||
tain any state in memory.
|
||||
|
||||
|
||||
-E0 and -E1
|
||||
These options are ignored if you do not also specify -M1. If you
|
||||
use -E0 (the default), vlmcsd starts up as a fully "charged" KMS
|
||||
server. Clients activate immediately. -E1 lets you start up vlm-
|
||||
csd with an empty CMID list. Activation will start when the
|
||||
required minimum clients (25 for Windows Client OSses, 5 for
|
||||
Windows Server OSses and Office) have registered with the KMS
|
||||
server. As long as the minimum client count has not been
|
||||
reached, clients end up in HRESULT 0xC004F038 "The count
|
||||
reported by your Key Management Service (KMS) is insufficient.
|
||||
Please contact your system administrator". You may use vlmcs(1)
|
||||
or another KMS client emulator to "charge" vlmcsd. -E1 does not
|
||||
improve emulator detection prevention. It's primary purpose is
|
||||
to help developers of KMS clients to test "charging" a KMS
|
||||
server.
|
||||
|
||||
|
||||
-R renewal-interval
|
||||
Instructs clients to renew activation every renewal-interval.
|
||||
The renewal-interval is a number optionally immediately followed
|
||||
by a letter indicating the unit. Valid unit letters are s (sec‐
|
||||
by a letter indicating the unit. Valid unit letters are s (sec-
|
||||
onds), m (minutes), h (hours), d (days) and w (weeks). If you do
|
||||
not specify a letter, minutes is assumed.
|
||||
|
||||
@ -466,14 +606,14 @@ OPTIONS
|
||||
before your activation expires (usually 180 days).
|
||||
|
||||
Even though you can specify seconds, the granularity of this
|
||||
option is 1 minute. Seconds are rounded down to the next multi‐
|
||||
option is 1 minute. Seconds are rounded down to the next multi-
|
||||
ple of 60.
|
||||
|
||||
|
||||
-A activation-interval
|
||||
Instructs clients to retry activation every activation-interval
|
||||
if it was unsuccessful, e.g. because it could not reach the
|
||||
server. The default is 120 (identical to 2h). activation-inter‐
|
||||
server. The default is 120 (identical to 2h). activation-inter-
|
||||
val follows the same syntax as renewal-interval in the -R
|
||||
option.
|
||||
|
||||
@ -482,7 +622,7 @@ OPTIONS
|
||||
with the native Windows version and Cygwin. Combine -s with
|
||||
other command line options. These will be in effect when you
|
||||
start the service. The service automatically starts when you
|
||||
reboot your machine. To start it manually, type "net start vlm‐
|
||||
reboot your machine. To start it manually, type "net start vlm-
|
||||
csd".
|
||||
|
||||
If you use Cygwin, you must include your Cygwin system DLL
|
||||
@ -499,35 +639,35 @@ OPTIONS
|
||||
on your system.
|
||||
|
||||
|
||||
-S Uninstalls the vlmcsd service. Works only with the native Win‐
|
||||
-S Uninstalls the vlmcsd service. Works only with the native Win-
|
||||
dows version and Cygwin. All other options will be ignored if
|
||||
you include -S in the command line.
|
||||
|
||||
|
||||
-U [domain\]username
|
||||
Can only be used together with -s. Starts the service as a dif‐
|
||||
Can only be used together with -s. Starts the service as a dif-
|
||||
ferent user than the local SYSTEM account. This is used to run
|
||||
the service under an account with low privileges. If you omit
|
||||
the domain, an account from the local computer will be used.
|
||||
|
||||
You may use "NT AUTHORITY\NetworkService". This is a pseudo user
|
||||
with low privileges. You may also use "NT AUTHORITY\LocalSer‐
|
||||
vice" which has more privileges but these are of no use for run‐
|
||||
with low privileges. You may also use "NT AUTHORITY\LocalSer-
|
||||
vice" which has more privileges but these are of no use for run-
|
||||
ning vlmcsd.
|
||||
|
||||
Make sure that the user you specify has at least execute permis‐
|
||||
Make sure that the user you specify has at least execute permis-
|
||||
sion for your executable. "NT AUTHORITY\NetworkService" normally
|
||||
has no permission to run binaries from your home directory.
|
||||
|
||||
For your convenience you can use the special username "/l" as a
|
||||
shortcut for "NT AUTHORITY\LocalService" and "/n" for "NT
|
||||
AUTHORITY\NetworkService". "vlmcsd -s -U /n" installs the ser‐
|
||||
AUTHORITY\NetworkService". "vlmcsd -s -U /n" installs the ser-
|
||||
vice to run as "NT AUTHORITY\NetworkService".
|
||||
|
||||
|
||||
-W password
|
||||
Can only be used together with -s. Specifies a password for the
|
||||
corresponding username you use with -U. SYSTEM, "NT AUTHOR‐
|
||||
corresponding username you use with -U. SYSTEM, "NT AUTHOR-
|
||||
ITY\NetworkService", "NT AUTHORITY\LocalService" do not require
|
||||
a password.
|
||||
|
||||
@ -541,7 +681,7 @@ SIGNALS
|
||||
|
||||
|
||||
SIGTERM, SIGINT
|
||||
These signals cause vlmcsd to exit gracefully. All global sema‐
|
||||
These signals cause vlmcsd to exit gracefully. All global sema-
|
||||
phores and shared memory pages will be released, the pid file
|
||||
will be unlinked (deleted) and a shutdown message will be
|
||||
logged.
|
||||
@ -550,7 +690,7 @@ SIGNALS
|
||||
SIGHUP Causes vlmcsd to be restarted completely. This is useful if you
|
||||
started vlmcsd with an ini file. You can modify the ini file
|
||||
while vlmcsd is running and then sending SIGHUP, e.g. by typing
|
||||
"killall -SIGHUP vlmcsd" or "kill -SIGHUP `cat /var/run/vlm‐
|
||||
"killall -SIGHUP vlmcsd" or "kill -SIGHUP `cat /var/run/vlm-
|
||||
csd.pid`".
|
||||
|
||||
The SIGHUP handler has been implemented relatively simple. It is
|
||||
@ -558,18 +698,18 @@ SIGNALS
|
||||
immediately with the following exceptions:
|
||||
|
||||
|
||||
— The new process does not get a new process id.
|
||||
-- The new process does not get a new process id.
|
||||
|
||||
— If you used a pid file, it is not deleted and recreated
|
||||
-- If you used a pid file, it is not deleted and recreated
|
||||
because the process id stays the same.
|
||||
|
||||
— If you used the 'user' and/or 'group' directive in an ini
|
||||
-- If you used the 'user' and/or 'group' directive in an ini
|
||||
file these are ignored. This is because once you switched to
|
||||
lower privileged users and groups, there is no way back. Any‐
|
||||
lower privileged users and groups, there is no way back. Any-
|
||||
thing else would be a severe security flaw in the OS.
|
||||
|
||||
Signaling is not available in the native Windows version and in the
|
||||
Cygwin version when it runs as Windows service.
|
||||
Cygwin version when vlmcsd runs as a Windows service.
|
||||
|
||||
|
||||
SUPPORTED OPERATING SYSTEMS
|
||||
@ -581,12 +721,12 @@ SUPPORTED OPERATING SYSTEMS
|
||||
|
||||
|
||||
SUPPORTED PRODUCTS
|
||||
vlmcsd can answer activation requests for the following products: Win‐
|
||||
dows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 (up to 1607),
|
||||
Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Win‐
|
||||
vlmcsd can answer activation requests for the following products: Win-
|
||||
dows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 (up to 1703),
|
||||
Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Win-
|
||||
dows Server 2012 R2, Windows Server 2016, Office 2010, Project 2010,
|
||||
Visio 2010, Office 2013, Project 2013, Visio 2013, Office 2016, Project
|
||||
2016, Visio 2016. Newer version may work as long as the KMS protocol
|
||||
2016, Visio 2016. Newer products may work as long as the KMS protocol
|
||||
does not change. A complete list of fully supported products can be
|
||||
obtained using the -x option of vlmcs(1).
|
||||
|
||||
@ -605,13 +745,13 @@ EXAMPLES
|
||||
|
||||
|
||||
vlmcsd -l /var/log/vlmcsd.log
|
||||
Starts vlmcsd as a daemon and logs everything to /var/log/vlm‐
|
||||
Starts vlmcsd as a daemon and logs everything to /var/log/vlm-
|
||||
csd.log.
|
||||
|
||||
|
||||
vlmcsd -L 192.168.1.17
|
||||
Starts vlmcsd as a daemon and listens on IP address 192.168.1.17
|
||||
only. This is useful for routers that have a public and a pri‐
|
||||
only. This is useful for routers that have a public and a pri-
|
||||
vate IP address to prevent your KMS server from becoming public.
|
||||
|
||||
|
||||
@ -625,19 +765,14 @@ BUGS
|
||||
An ePID specified in an ini file must not contain spaces.
|
||||
|
||||
|
||||
INTENTIONAL BUGS
|
||||
vlmcsd always reports enough active clients to satisfy the N count pol‐
|
||||
icy of the request.
|
||||
|
||||
|
||||
AUTHOR
|
||||
Written by crony12, Hotbird64 and vityan666. With contributions from
|
||||
DougQaid.
|
||||
|
||||
|
||||
CREDITS
|
||||
Thanks to CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad, Rati‐
|
||||
borus, ...
|
||||
Thanks to abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87,
|
||||
qad, Ratiborus, ...
|
||||
|
||||
|
||||
SEE ALSO
|
||||
@ -645,4 +780,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
Hotbird64 October 2016 VLMCSD(8)
|
||||
Hotbird64 October 2018 VLMCSD(8)
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- Creator : groff version 1.22.3 -->
|
||||
<!-- CreationDate: Fri Oct 21 03:17:10 2016 -->
|
||||
<!-- CreationDate: Sat Oct 20 09:49:39 2018 -->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@ -30,7 +30,6 @@
|
||||
<a href="#FILES">FILES</a><br>
|
||||
<a href="#EXAMPLES">EXAMPLES</a><br>
|
||||
<a href="#BUGS">BUGS</a><br>
|
||||
<a href="#INTENTIONAL BUGS">INTENTIONAL BUGS</a><br>
|
||||
<a href="#AUTHOR">AUTHOR</a><br>
|
||||
<a href="#CREDITS">CREDITS</a><br>
|
||||
<a href="#SEE ALSO">SEE ALSO</a><br>
|
||||
@ -90,8 +89,27 @@ init system like <b>systemd</b>(8) or <b>launchd</b>(8)
|
||||
using socket based activation. If <b>vlmcsd</b> detects that
|
||||
<b>stdin</b>(3) is a socket, it assumes that there is
|
||||
already a connected client on stdin that wants to be
|
||||
activated. All options that control setting up listening
|
||||
sockets will be ignored when in inetd mode.</p>
|
||||
activated.</p>
|
||||
|
||||
<p style="margin-left:11%; margin-top: 1em">All options
|
||||
that control setting up listening sockets will be ignored
|
||||
when in inetd mode. The sockets will be set up by your
|
||||
internet superserver. You also cannot limit the number of
|
||||
simultanous clients (option <b>-m</b>). You need to
|
||||
configure the limit in your internet superserver.</p>
|
||||
|
||||
<p style="margin-left:11%; margin-top: 1em">The followong
|
||||
features that require that vlmcsd is permanently loaded will
|
||||
not work if started from an internet superserver:</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">You cannot
|
||||
maintain a client list (option <b>-M1</b>)</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">EPID
|
||||
Randomization Level 1 (option <b>-r1</b>) works like Level 2
|
||||
(<b>-r2</b>). You may want to use Level 0 (<b>-r0</b>) or
|
||||
custom EPIDs (options <b>-w</b>, <b>-G</b>, <b>-0</b>,
|
||||
<b>-3</b> and <b>-6</b>) instead.</p>
|
||||
|
||||
<h2>OPTIONS
|
||||
<a name="OPTIONS"></a>
|
||||
@ -255,6 +273,116 @@ subsequent <b>-L</b> statements that do not include an
|
||||
optional port. If you use <b>-P</b> and <b>-L</b>, <b>-P</b>
|
||||
must be specified before <b>-L</b>.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-O</b>
|
||||
<i>vpn-adapter-name</i>[=<i>ipv4-address</i>][/<i>cidr-mask</i>][:<i>dhcp-lease-duration</i>]</p>
|
||||
|
||||
<p style="margin-left:22%;">Enables a compatible VPN
|
||||
adapter to create additional local IPv4 addresses (like
|
||||
127.0.0.1) that appear as remote IPv4 addresses to the
|
||||
system. This allows product activation using a local
|
||||
instance of vlmcsd. This feature is only available in
|
||||
Windows and Cygwin builds of vlmcsd since it is not of any
|
||||
use on other operating systems. Compatible VPN adapters are
|
||||
Tap-windows version 8.2 or higher (from OpenVPN) and the
|
||||
TeamViewer VPN adapter. There are two special
|
||||
<i>vpn-adapter-name</i>s. A single period (.) instructs
|
||||
vlmcsd to use the first available compatible VPN adapter. A
|
||||
single dash (-) disables the use of a VPN adapter if one has
|
||||
been configured in <b>vlmcsd.ini</b>(5). The
|
||||
<i>vpn-adapter-name</i> is <b>not</b> case-sensitive. If the
|
||||
<i>vpn-adapter-name</i> contains spaces (e.g. Ethernet 3),
|
||||
you must enclose it in quotes.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">The default
|
||||
<i>ipv4-address</i> is 10.10.10.9 and the default
|
||||
<i>cidr-mask</i> is 30. If you are using the default values,
|
||||
your VPN adapter uses an IPv4 address of 10.10.10.9 and you
|
||||
can set your activation client to use the easy to remember
|
||||
address 10.10.10.10 (e.g. slmgr /skms 10.10.10.10 or cscript
|
||||
ospp.vbs /sethst:10.10.10.10).</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">The
|
||||
<i>dhcp-lease-duration</i> is a number optionally followed
|
||||
by s, m, h, d or w to indicate seconds, minutes, hours, days
|
||||
or weeks. The default <i>dhcp-lease-duration</i> is 1d (one
|
||||
day). It is normally not required to change this value.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">It is advised
|
||||
not to manually configure your OpenVPN TAP or TeamViewer VPN
|
||||
adapter in "Network Connections". If you set the
|
||||
IPv4 configuration manually anyway, the IPv4 address and the
|
||||
subnet mask must match the <b>-O</b> parameter. It is safe
|
||||
leave the IPv4 configuration to automatic (DHCP). vlmcsd
|
||||
will wait up to four seconds for the DHCP configuration to
|
||||
complete before binding to and listenin on any
|
||||
interfaces.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">You should be
|
||||
aware that only one program can use a VPN adapter at a time.
|
||||
If you use the TeamViewer VPN adapter for example, you will
|
||||
not be able to use the VPN feature of TeamViewer as long as
|
||||
vlmcsd is running. The same applies to OpenVPN TAP adapters
|
||||
that are in use by other programs (for example OpenVPN,
|
||||
QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid
|
||||
conflicts is to install Tap-Windows from OpenVPN, cd to
|
||||
C:\Program Files\TAP-Windows\bin and run addtap.bat to
|
||||
install an additional TAP adapter. Go to "Network
|
||||
Connections" and rename the new adapter to
|
||||
"vlmcsd" and specify <b>-O vlmcsd</b> to use
|
||||
it.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">Example: <b>-O
|
||||
"Ethernet 7"=192.168.123.1/24</b> (uses VPN
|
||||
adapter Ethernet 7 with IPv4 address 192.168.123.1 and have
|
||||
192.168.123.2 to 192.168.123.254 as additional local (but
|
||||
apparently remote) IPv4 addresses.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-x0</b> and <b>-x1</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Controls under what
|
||||
circumstances vlmcsd will exit. Using the default of
|
||||
<b>-x0</b> vlmcsd stays active as long as it can perform
|
||||
some useful operations. If vlmcsd is run by any form of a
|
||||
watchdog, e.g. NT service manager (Windows), systemd (Linux)
|
||||
or launchd (Mac OS / iOS), it may be desirable to end vlmcsd
|
||||
and let the watchdog restart it. This is especially true if
|
||||
some pre-requisites are not yet met but will be some time
|
||||
later, e.g. network is not yet fully setup.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">By using
|
||||
<b>-x0</b> vlmcsd will</p>
|
||||
|
||||
<p style="margin-left:29%; margin-top: 1em">exit if none of
|
||||
the listening sockets specified with <b>-L</b> can be used.
|
||||
It continues if at least one socket can be setup for
|
||||
listening.</p>
|
||||
|
||||
<p style="margin-left:29%; margin-top: 1em">exit any TAP
|
||||
mirror thread (Windows version only) if there is an error
|
||||
condition while reading or writing from or to the VPN
|
||||
adapter but continue to work without utilizing a VPN
|
||||
adapter.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">By using
|
||||
<b>-x1</b> vlmcsd will</p>
|
||||
|
||||
<p style="margin-left:29%; margin-top: 1em">exit if not all
|
||||
listening sockets specified with <b>-L</b> can be used.</p>
|
||||
|
||||
<p style="margin-left:29%; margin-top: 1em">exit completely
|
||||
if there is a problem with a VPN adapter it is using. This
|
||||
can happen for instance if the VPN adapter has been disabled
|
||||
using "Control Panel - Network - Adapter Settings"
|
||||
while vlmcsd is using it.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">Please note
|
||||
that <b>-x1</b> is kind of a workaround option. While it may
|
||||
help under some circumstances, it is better to solve the
|
||||
problem at its origin, e.g. properly implementing
|
||||
dependencies in your startup script to ensure all network
|
||||
interfaces and the VPN adapter you will use are completely
|
||||
setup before you start vlmcsd.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-F0</b> and <b>-F1</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Allow (<b>-F1</b>) or disallow
|
||||
@ -488,48 +616,22 @@ unprivileged user has access to these files. You can always
|
||||
log to <b>syslog</b>(3) from an unprivileged account on most
|
||||
platforms (see <b>-l</b>).</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-w</b> <i>ePID</i></p>
|
||||
<p style="margin-left:11%;"><b>-a</b> <i>CSVLK</i> =
|
||||
<i>ePID</i> [ / <i>HwId</i> ]</p>
|
||||
|
||||
<p style="margin-left:22%;">Use <i>ePID</i> as Windows
|
||||
ePID. If specified, <b>-r</b> is disregarded for
|
||||
Windows.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-0</b> <i>ePID</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Use <i>ePID</i> as Office 2010
|
||||
ePID (including Project and Visio). If specified, <b>-r</b>
|
||||
is disregarded for Office 2010.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-3</b> <i>ePID</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Use <i>ePID</i> as Office 2013
|
||||
ePID (including Project and Visio). If specified, <b>-r</b>
|
||||
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:22%;">Use <i>HwId</i> for all
|
||||
products. All HWIDs in the ini file (see <b>-i</b>) will not
|
||||
be used. In an ini file you can specify a seperate HWID for
|
||||
each <i>application-guid</i>. This is not possible when
|
||||
entering a HWID from the command line.</p>
|
||||
<p style="margin-left:22%;">Use <i>ePID</i> and <i>HwId</i>
|
||||
for a specific <i>CSVLK</i>. When you use it, <b>-r</b> is
|
||||
disregarded for this <i>CSVLK</i>. If vlmcsd uses the
|
||||
default vlmcsd.kmd database, you can use the following
|
||||
<i>CSVLK</i>s: Windows, WinChinaGov, Office2010, Office2013,
|
||||
Office2016 and Office2019. The <b>-a</b> option requires
|
||||
that database version 1.6 or later is used.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em"><i>HwId</i>
|
||||
must be specified as 16 hex digits that are interpreted as a
|
||||
series of 8 bytes (big endian). Any character that is not a
|
||||
hex digit will be ignored. This is for better readability.
|
||||
The following commands are identical:</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">vlmcsd -H
|
||||
0123456789ABCDEF <br>
|
||||
vlmcsd -H 01:23:45:67:89:ab:cd:ef <br>
|
||||
vlmcsd -H "01 23 45 67 89 AB CD EF"</p>
|
||||
hex digit will be ignored. This is for better
|
||||
readability.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-i</b> <i>filename</i></p>
|
||||
|
||||
@ -545,6 +647,20 @@ been compiled to use a default configuration file (often
|
||||
/etc/vlmcsd.ini), you may use <b>-i-</b> to ignore the
|
||||
default configuration file.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-j</b> <i>filename</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Use KMS data file
|
||||
<i>filename</i>. By default vlmcsd only contains the minimum
|
||||
product data that is required to perform all operations
|
||||
correctly. You may use a more complete KMS data file that
|
||||
contains all detailed product names. This is especially
|
||||
useful if you are logging KMS requests. If you don’t
|
||||
log, there is no need to load an external KMS data file.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">If vlmcsd has
|
||||
been compiled to use a default KMS data file, you may use
|
||||
<b>-j-</b> to ignore the default configuration file.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-r0</b>, <b>-r1</b>
|
||||
(default) and <b>-r2</b></p>
|
||||
|
||||
@ -587,8 +703,9 @@ 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
|
||||
<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>
|
||||
<b>-r0</b> or <b>-w</b>, <b>-G</b>, <b>-0</b>, <b>-3</b> and
|
||||
<b>-6</b> when starting vlmcsd by an internet
|
||||
superserver.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em"><b>-r2</b>
|
||||
behaves like most other KMS server emulators with random
|
||||
@ -619,6 +736,13 @@ them are not recognized by .NET Framework 4.0.</p>
|
||||
emulators use a fixed <i>LCID</i> of 1033 (English - US). To
|
||||
achive the same behavior in vlmcsd use <b>-C 1033</b>.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-H</b> <i>HostBuild</i></p>
|
||||
|
||||
<p style="margin-left:22%;">Do not randomize the host build
|
||||
number in the ePID and use <i>HostBuild</i> instead, for
|
||||
instance 17763 for Windows Server 2019 / Windows 10
|
||||
1809.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-K0</b>, <b>-K1</b>,
|
||||
<b>-K2</b> and <b>-K3</b></p>
|
||||
|
||||
@ -667,6 +791,51 @@ system with no reliable time source, activations will fail.
|
||||
It is ok to set the correct system time after you started
|
||||
vlmcsd.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-M0</b> and <b>-M1</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Disables (<b>-M0</b>) or
|
||||
enables (<b>-M1</b>) maintaining a list of client machine
|
||||
IDs (CMIDs). The default is <b>-M0</b>. <b>-M1</b> is useful
|
||||
to prevent emulator detection. By maintaing a CMID list,
|
||||
vlmcsd reports current active clients exactly like a genuine
|
||||
KMS emulator. This includes bug compatibility to the extent
|
||||
that you can permanently kill a genuine KMS emulator by
|
||||
sending an "overcharge request" with a required
|
||||
client count of 376 or more and then request activation for
|
||||
671 clients. vlmcsd can be reset from this condition by
|
||||
restarting it. If <b>-M0</b> is used, vlmcsd reports current
|
||||
active clients as good as possible. If no client sends an
|
||||
"overcharge request", it is not possible to detect
|
||||
vlmcsd as an emulator with <b>-M0</b>. <b>-M1</b> requires
|
||||
the allocation of a buffer that is about 50 kB in size. On
|
||||
hardware with few memory resources use it only if you really
|
||||
need it.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">If you start
|
||||
vlmcsd from an internet superserver, <b>-M1</b> cannot be
|
||||
used. Since vlmcsd exits after each activation, it cannot
|
||||
maintain any state in memory.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-E0</b> and <b>-E1</b></p>
|
||||
|
||||
<p style="margin-left:22%;">These options are ignored if
|
||||
you do not also specify <b>-M1</b>. If you use <b>-E0</b>
|
||||
(the default), vlmcsd starts up as a fully
|
||||
"charged" KMS server. Clients activate
|
||||
immediately. <b>-E1</b> lets you start up vlmcsd with an
|
||||
empty CMID list. Activation will start when the required
|
||||
minimum clients (25 for Windows Client OSses, 5 for Windows
|
||||
Server OSses and Office) have registered with the KMS
|
||||
server. As long as the minimum client count has not been
|
||||
reached, clients end up in HRESULT 0xC004F038 "The
|
||||
count reported by your Key Management Service (KMS) is
|
||||
insufficient. Please contact your system
|
||||
administrator". You may use <b>vlmcs</b>(1) or another
|
||||
KMS client emulator to "charge" vlmcsd. <b>-E1</b>
|
||||
does not improve emulator detection prevention. It’s
|
||||
primary purpose is to help developers of KMS clients to test
|
||||
"charging" a KMS server.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>-R</b>
|
||||
<i>renewal-interval</i></p>
|
||||
|
||||
@ -886,7 +1055,7 @@ else would be a severe security flaw in the OS.</p></td></tr>
|
||||
|
||||
<p style="margin-left:11%; margin-top: 1em">Signaling is
|
||||
not available in the native Windows version and in the
|
||||
Cygwin version when it runs as Windows service.</p>
|
||||
Cygwin version when vlmcsd runs as a Windows service.</p>
|
||||
|
||||
<h2>SUPPORTED OPERATING SYSTEMS
|
||||
<a name="SUPPORTED OPERATING SYSTEMS"></a>
|
||||
@ -908,11 +1077,11 @@ sources or may require minor porting efforts.</p>
|
||||
<p style="margin-left:11%; margin-top: 1em"><b>vlmcsd</b>
|
||||
can answer activation requests for the following products:
|
||||
Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10
|
||||
(up to 1607), Windows Server 2008, Windows Server 2008 R2,
|
||||
(up to 1703), Windows Server 2008, Windows Server 2008 R2,
|
||||
Windows Server 2012, Windows Server 2012 R2, Windows Server
|
||||
2016, Office 2010, Project 2010, Visio 2010, Office 2013,
|
||||
Project 2013, Visio 2013, Office 2016, Project 2016, Visio
|
||||
2016. Newer version may work as long as the KMS protocol
|
||||
2016. Newer products may work as long as the KMS protocol
|
||||
does not change. A complete list of fully supported products
|
||||
can be obtained using the <b>-x</b> option of
|
||||
<b>vlmcs</b>(1).</p>
|
||||
@ -971,15 +1140,6 @@ C:\logs\vlmcsd.log when the service is started with
|
||||
<p style="margin-left:11%; margin-top: 1em">An ePID
|
||||
specified in an ini file must not contain spaces.</p>
|
||||
|
||||
<h2>INTENTIONAL BUGS
|
||||
<a name="INTENTIONAL BUGS"></a>
|
||||
</h2>
|
||||
|
||||
|
||||
<p style="margin-left:11%; margin-top: 1em">vlmcsd always
|
||||
reports enough active clients to satisfy the N count policy
|
||||
of the request.</p>
|
||||
|
||||
<h2>AUTHOR
|
||||
<a name="AUTHOR"></a>
|
||||
</h2>
|
||||
@ -995,8 +1155,8 @@ DougQaid.</p>
|
||||
|
||||
|
||||
<p style="margin-left:11%; margin-top: 1em">Thanks to
|
||||
CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad,
|
||||
Ratiborus, ...</p>
|
||||
abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87,
|
||||
qad, Ratiborus, ...</p>
|
||||
|
||||
<h2>SEE ALSO
|
||||
<a name="SEE ALSO"></a>
|
||||
|
BIN
man/vlmcsd.8.pdf
BIN
man/vlmcsd.8.pdf
Binary file not shown.
@ -33,15 +33,30 @@ DESCRIPTION
|
||||
xinetd(8) as well as an advanced init system like systemd(8) or
|
||||
launchd(8) using socket based activation. If vlmcsd detects that
|
||||
stdin(3) is a socket, it assumes that there is already a connected
|
||||
client on stdin that wants to be activated. All options that control
|
||||
setting up listening sockets will be ignored when in inetd mode.
|
||||
client on stdin that wants to be activated.
|
||||
|
||||
All options that control setting up listening sockets will be ignored
|
||||
when in inetd mode. The sockets will be set up by your internet super-
|
||||
server. You also cannot limit the number of simultanous clients (option
|
||||
-m). You need to configure the limit in your internet superserver.
|
||||
|
||||
The followong features that require that vlmcsd is permanently loaded
|
||||
will not work if started from an internet superserver:
|
||||
|
||||
|
||||
You cannot maintain a client list (option -M1)
|
||||
|
||||
|
||||
EPID Randomization Level 1 (option -r1) works like Level 2
|
||||
(-r2). You may want to use Level 0 (-r0) or custom EPIDs
|
||||
(options -w, -G, -0, -3 and -6) instead.
|
||||
|
||||
|
||||
OPTIONS
|
||||
Since vlmcsd can be configured at compile time, some options may not be
|
||||
available on your system.
|
||||
|
||||
All options that do no require an argument may be combined with a sin‐
|
||||
All options that do no require an argument may be combined with a sin-
|
||||
gle dash, for instance "vlmcsd -D -e" is identical to "vlmcsd -De". For
|
||||
all options that require an argument a space between the option and the
|
||||
option argument is optional. Thus "vlmcsd -r 2" and "vlmcsd -r2" are
|
||||
@ -52,7 +67,7 @@ OPTIONS
|
||||
Displays help.
|
||||
|
||||
|
||||
-V Displays extended version information. This includes the com‐
|
||||
-V Displays extended version information. This includes the com-
|
||||
piler used to build vlmcsd, the intended platform and flags
|
||||
(compile time options) to build vlmcsd. If you have the source
|
||||
code of vlmcsd, you can type make help (or gmake help on systems
|
||||
@ -88,7 +103,7 @@ OPTIONS
|
||||
Sets the level of protection against activations from public IP
|
||||
addresses. The default is -o0 for no protection.
|
||||
|
||||
-o1 causes vlmcsd not to listen on all IP addresses but on pri‐
|
||||
-o1 causes vlmcsd not to listen on all IP addresses but on pri-
|
||||
vate IP addresses only. IPv4 addresses in the 100.64.0.0/10
|
||||
range (see RFC6598) are not treated as private since they can be
|
||||
reached from other users of your ISP. Private IPv4 addresses are
|
||||
@ -114,7 +129,7 @@ OPTIONS
|
||||
a single byte sent over the connection. This protects against
|
||||
clients with public IP addresses even if NAT port forwarding is
|
||||
used. While -o2 offers a higher level of protection than -o1,
|
||||
the client sees that the KMS TCP port (1688 by default) is actu‐
|
||||
the client sees that the KMS TCP port (1688 by default) is actu-
|
||||
ally accepting connections.
|
||||
|
||||
If vlmcsd is compiled to use MS RPC, -o2 can only offer very
|
||||
@ -138,12 +153,12 @@ OPTIONS
|
||||
|
||||
-o1 (and thus -o3) is not (yet) available in some scenarios:
|
||||
|
||||
FreeBSD: There is a longtime unfixed bug ⟨https://
|
||||
bugs.freebsd.org/bugzilla/show_bug.cgi?id=178881⟩ in the
|
||||
32-bit ABI of the 64-bit kernel. If you have a 64-bit Free‐
|
||||
FreeBSD: There is a longtime unfixed bug <https://
|
||||
bugs.freebsd.org/bugzilla/show_bug.cgi?id=178881> in the
|
||||
32-bit ABI of the 64-bit kernel. If you have a 64-bit Free-
|
||||
BSD kernel, you must run the 64-bit version of vlmcsd if
|
||||
you use -o1 or -o3. The 32-bit version causes undefined
|
||||
behavior up to crashing vlmcsd. Other BSDs (NetBSD, Open‐
|
||||
behavior up to crashing vlmcsd. Other BSDs (NetBSD, Open-
|
||||
BSD, Dragonfly and Mac OS X) work correctly.
|
||||
|
||||
If vlmcsd was started by an internet superserver or was
|
||||
@ -153,10 +168,102 @@ OPTIONS
|
||||
|
||||
-P port
|
||||
Use TCP port for all subsequent -L statements that do not
|
||||
include an optional port. If you use -P and -L, -P must be spec‐
|
||||
include an optional port. If you use -P and -L, -P must be spec-
|
||||
ified before -L.
|
||||
|
||||
|
||||
-O vpn-adapter-name[=ipv4-address][/cidr-mask][:dhcp-lease-duration]
|
||||
Enables a compatible VPN adapter to create additional local IPv4
|
||||
addresses (like 127.0.0.1) that appear as remote IPv4 addresses
|
||||
to the system. This allows product activation using a local
|
||||
instance of vlmcsd. This feature is only available in Windows
|
||||
and Cygwin builds of vlmcsd since it is not of any use on other
|
||||
operating systems. Compatible VPN adapters are Tap-windows ver-
|
||||
sion 8.2 or higher (from OpenVPN) and the TeamViewer VPN
|
||||
adapter. There are two special vpn-adapter-names. A single
|
||||
period (.) instructs vlmcsd to use the first available compati-
|
||||
ble VPN adapter. A single dash (-) disables the use of a VPN
|
||||
adapter if one has been configured in vlmcsd.ini(5). The vpn-
|
||||
adapter-name is not case-sensitive. If the vpn-adapter-name con-
|
||||
tains spaces (e.g. Ethernet 3), you must enclose it in quotes.
|
||||
|
||||
The default ipv4-address is 10.10.10.9 and the default cidr-mask
|
||||
is 30. If you are using the default values, your VPN adapter
|
||||
uses an IPv4 address of 10.10.10.9 and you can set your activa-
|
||||
tion client to use the easy to remember address 10.10.10.10
|
||||
(e.g. slmgr /skms 10.10.10.10 or cscript ospp.vbs
|
||||
/sethst:10.10.10.10).
|
||||
|
||||
The dhcp-lease-duration is a number optionally followed by s, m,
|
||||
h, d or w to indicate seconds, minutes, hours, days or weeks.
|
||||
The default dhcp-lease-duration is 1d (one day). It is normally
|
||||
not required to change this value.
|
||||
|
||||
It is advised not to manually configure your OpenVPN TAP or
|
||||
TeamViewer VPN adapter in "Network Connections". If you set the
|
||||
IPv4 configuration manually anyway, the IPv4 address and the
|
||||
subnet mask must match the -O parameter. It is safe leave the
|
||||
IPv4 configuration to automatic (DHCP). vlmcsd will wait up to
|
||||
four seconds for the DHCP configuration to complete before bind-
|
||||
ing to and listenin on any interfaces.
|
||||
|
||||
You should be aware that only one program can use a VPN adapter
|
||||
at a time. If you use the TeamViewer VPN adapter for example,
|
||||
you will not be able to use the VPN feature of TeamViewer as
|
||||
long as vlmcsd is running. The same applies to OpenVPN TAP
|
||||
adapters that are in use by other programs (for example OpenVPN,
|
||||
QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid con-
|
||||
flicts is to install Tap-Windows from OpenVPN, cd to C:\Program
|
||||
Files\TAP-Windows\bin and run addtap.bat to install an addi-
|
||||
tional TAP adapter. Go to "Network Connections" and rename the
|
||||
new adapter to "vlmcsd" and specify -O vlmcsd to use it.
|
||||
|
||||
Example: -O "Ethernet 7"=192.168.123.1/24 (uses VPN adapter Eth-
|
||||
ernet 7 with IPv4 address 192.168.123.1 and have 192.168.123.2
|
||||
to 192.168.123.254 as additional local (but apparently remote)
|
||||
IPv4 addresses.
|
||||
|
||||
|
||||
-x0 and -x1
|
||||
Controls under what circumstances vlmcsd will exit. Using the
|
||||
default of -x0 vlmcsd stays active as long as it can perform
|
||||
some useful operations. If vlmcsd is run by any form of a watch-
|
||||
dog, e.g. NT service manager (Windows), systemd (Linux) or
|
||||
launchd (Mac OS / iOS), it may be desirable to end vlmcsd and
|
||||
let the watchdog restart it. This is especially true if some
|
||||
pre-requisites are not yet met but will be some time later, e.g.
|
||||
network is not yet fully setup.
|
||||
|
||||
By using -x0 vlmcsd will
|
||||
|
||||
exit if none of the listening sockets specified with -L can
|
||||
be used. It continues if at least one socket can be setup
|
||||
for listening.
|
||||
|
||||
exit any TAP mirror thread (Windows version only) if there
|
||||
is an error condition while reading or writing from or to
|
||||
the VPN adapter but continue to work without utilizing a
|
||||
VPN adapter.
|
||||
|
||||
By using -x1 vlmcsd will
|
||||
|
||||
exit if not all listening sockets specified with -L can be
|
||||
used.
|
||||
|
||||
exit completely if there is a problem with a VPN adapter it
|
||||
is using. This can happen for instance if the VPN adapter
|
||||
has been disabled using "Control Panel - Network - Adapter
|
||||
Settings" while vlmcsd is using it.
|
||||
|
||||
|
||||
Please note that -x1 is kind of a workaround option. While it
|
||||
may help under some circumstances, it is better to solve the
|
||||
problem at its origin, e.g. properly implementing dependencies
|
||||
in your startup script to ensure all network interfaces and the
|
||||
VPN adapter you will use are completely setup before you start
|
||||
vlmcsd.
|
||||
|
||||
|
||||
-F0 and -F1
|
||||
Allow (-F1) or disallow (-F0) binding to IP addresses that are
|
||||
currently not configured on your system. The default is -F0. -F1
|
||||
@ -170,12 +277,12 @@ OPTIONS
|
||||
|
||||
|
||||
-t seconds
|
||||
Timeout the TCP connection with the client after seconds sec‐
|
||||
Timeout the TCP connection with the client after seconds sec-
|
||||
onds. After sending an activation request. RPC keeps the TCP
|
||||
connection for a while. The default is 30 seconds. You may spec‐
|
||||
connection for a while. The default is 30 seconds. You may spec-
|
||||
ify a shorter period to free ressources on your device faster.
|
||||
This is useful for devices with limited main memory or if you
|
||||
used -m to limit the concurrent clients that may request activa‐
|
||||
used -m to limit the concurrent clients that may request activa-
|
||||
tion. Microsoft RPC clients disconnect after 30 seconds by
|
||||
default. Setting seconds to a greater value does not make much
|
||||
sense.
|
||||
@ -186,7 +293,7 @@ OPTIONS
|
||||
This is useful for devices with limited ressources or if you are
|
||||
experiencing DoS attacks that spawn thousands of threads or
|
||||
forked processes. If additional clients connect to vlmcsd, they
|
||||
need to wait until another client disconnects. If you set con‐
|
||||
need to wait until another client disconnects. If you set con-
|
||||
current-clients to a small value ( <10 ), you should also select
|
||||
a reasonable timeout of 2 or 3 seconds with -t. The default is
|
||||
no limit.
|
||||
@ -210,7 +317,7 @@ OPTIONS
|
||||
Disables (-N0) or enables (-N1) the use of the NDR64 transfer
|
||||
syntax in the RPC protocol. Unlike Microsoft vlmcsd supports
|
||||
NDR64 on 32-bit operating systems. Microsoft introduced NDR64 in
|
||||
Windows Vista but their KMS servers started using it with Win‐
|
||||
Windows Vista but their KMS servers started using it with Win-
|
||||
dows 8. Thus if you choose random ePIDs, vlmcsd will select
|
||||
ePIDs with build numbers 9200 and 9600 if you enable NDR64 and
|
||||
build numbers 6002 and 7601 if you disable NDR64. The default is
|
||||
@ -219,10 +326,10 @@ OPTIONS
|
||||
|
||||
-B0 and -B1
|
||||
Disables (-B0) or enables (-B1) bind time feature negotiation
|
||||
(BTFN) in the RPC protocol. All Windows operating systems start‐
|
||||
ing with Vista support BTFN and try to negotiate it when initi‐
|
||||
(BTFN) in the RPC protocol. All Windows operating systems start-
|
||||
ing with Vista support BTFN and try to negotiate it when initi-
|
||||
ating an RPC connection. Thus consider turning it off as a debug
|
||||
/ troubleshooting feature only. Some older firewalls that selec‐
|
||||
/ troubleshooting feature only. Some older firewalls that selec-
|
||||
tively block or redirect RPC traffic may get confused when they
|
||||
detect NDR64 or BTFN.
|
||||
|
||||
@ -236,7 +343,7 @@ OPTIONS
|
||||
|
||||
If you use the special filename "syslog", vlmcsd uses syslog(3)
|
||||
for logging. If your system has no syslog service (/dev/log)
|
||||
installed, logging output will go to /dev/console. Syslog log‐
|
||||
installed, logging output will go to /dev/console. Syslog log-
|
||||
ging is not available in the native Windows version. The Cygwin
|
||||
version does support syslog logging.
|
||||
|
||||
@ -244,7 +351,7 @@ OPTIONS
|
||||
-T0 and -T1
|
||||
Disable (-T0) or enable (-T1) the inclusion of date and time in
|
||||
each line of the log. The default is -T1. -T0 is useful if you
|
||||
log to stdout(3) which is redirected to another logging mecha‐
|
||||
log to stdout(3) which is redirected to another logging mecha-
|
||||
nism that already includes date and time in its output, for
|
||||
instance systemd-journald(8). If you log to syslog(3), -T1 is
|
||||
ignored and date and time will never be included in the output
|
||||
@ -269,15 +376,15 @@ OPTIONS
|
||||
-v Use verbose logging. Logs every parameter of the base request
|
||||
and the base response. It also logs the HWID of the KMS server
|
||||
if KMS protocol version 6 is used. This option is mainly for
|
||||
debugging purposes. It only has an effect if some form of log‐
|
||||
debugging purposes. It only has an effect if some form of log-
|
||||
ging is used. Thus -v does not make sense if not used with -l,
|
||||
-e or -f.
|
||||
|
||||
|
||||
-q Do not use verbose logging. This is actually the default behav‐
|
||||
-q Do not use verbose logging. This is actually the default behav-
|
||||
ior. It only makes sense if you use vlmcsd with an ini file (see
|
||||
-i and vlmcsd.ini(5)). If the ini file contains the line
|
||||
"LogVerbose = true" you can use -q to restore the default behav‐
|
||||
"LogVerbose = true" you can use -q to restore the default behav-
|
||||
ior.
|
||||
|
||||
|
||||
@ -307,44 +414,21 @@ OPTIONS
|
||||
(see -l).
|
||||
|
||||
|
||||
-w ePID
|
||||
Use ePID as Windows ePID. If specified, -r is disregarded for
|
||||
Windows.
|
||||
|
||||
|
||||
-0 ePID
|
||||
Use ePID as Office 2010 ePID (including Project and Visio). If
|
||||
specified, -r is disregarded for Office 2010.
|
||||
|
||||
|
||||
-3 ePID
|
||||
Use ePID as Office 2013 ePID (including Project and Visio). If
|
||||
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
|
||||
Use HwId for all products. All HWIDs in the ini file (see -i)
|
||||
will not be used. In an ini file you can specify a seperate HWID
|
||||
for each application-guid. This is not possible when entering a
|
||||
HWID from the command line.
|
||||
-a CSVLK = ePID [ / HwId ]
|
||||
Use ePID and HwId for a specific CSVLK. When you use it, -r is
|
||||
disregarded for this CSVLK. If vlmcsd uses the default vlm-
|
||||
csd.kmd database, you can use the following CSVLKs: Windows,
|
||||
WinChinaGov, Office2010, Office2013, Office2016 and Office2019.
|
||||
The -a option requires that database version 1.6 or later is
|
||||
used.
|
||||
|
||||
HwId must be specified as 16 hex digits that are interpreted as
|
||||
a series of 8 bytes (big endian). Any character that is not a
|
||||
hex digit will be ignored. This is for better readability. The
|
||||
following commands are identical:
|
||||
|
||||
vlmcsd -H 0123456789ABCDEF
|
||||
vlmcsd -H 01:23:45:67:89:ab:cd:ef
|
||||
vlmcsd -H "01 23 45 67 89 AB CD EF"
|
||||
hex digit will be ignored. This is for better readability.
|
||||
|
||||
|
||||
-i filename
|
||||
Use configuration file (aka ini file) filename. Most configura‐
|
||||
Use configuration file (aka ini file) filename. Most configura-
|
||||
tion parameters can be set either via the command line or an ini
|
||||
file. The command line always has precedence over configuration
|
||||
items in the ini file. See vlmcsd.ini(5) for the format of the
|
||||
@ -355,6 +439,18 @@ OPTIONS
|
||||
configuration file.
|
||||
|
||||
|
||||
-j filename
|
||||
Use KMS data file filename. By default vlmcsd only contains the
|
||||
minimum product data that is required to perform all operations
|
||||
correctly. You may use a more complete KMS data file that con-
|
||||
tains all detailed product names. This is especially useful if
|
||||
you are logging KMS requests. If you don't log, there is no need
|
||||
to load an external KMS data file.
|
||||
|
||||
If vlmcsd has been compiled to use a default KMS data file, you
|
||||
may use -j- to ignore the default configuration file.
|
||||
|
||||
|
||||
-r0, -r1 (default) and -r2
|
||||
These options determine how ePIDs are generated if
|
||||
|
||||
@ -387,8 +483,8 @@ OPTIONS
|
||||
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 -r0 or -w, -0, -3 and -6 when start‐
|
||||
ing vlmcsd by an internet superserver.
|
||||
KMS request. Consider using -r0 or -w, -G, -0, -3 and -6 when
|
||||
starting vlmcsd by an internet superserver.
|
||||
|
||||
-r2 behaves like most other KMS server emulators with random
|
||||
support and generates a new random ePID on every request. -r2
|
||||
@ -407,14 +503,20 @@ OPTIONS
|
||||
by .NET Framework 4.0. This may lead to a locale id which is
|
||||
unlikely to occur in your country, for instance 2155 for "Quecha
|
||||
- Ecuador". You may want to select the locale id of your country
|
||||
instead. See MSDN ⟨http://msdn.microsoft.com/en-us/goglobal/
|
||||
bb964664.aspx⟩ for a list of valid LCIDs. Please note that some
|
||||
instead. See MSDN <http://msdn.microsoft.com/en-us/goglobal/
|
||||
bb964664.aspx> for a list of valid LCIDs. Please note that some
|
||||
of them are not recognized by .NET Framework 4.0.
|
||||
|
||||
Most other KMS emulators use a fixed LCID of 1033 (English -
|
||||
US). To achive the same behavior in vlmcsd use -C 1033.
|
||||
|
||||
|
||||
-H HostBuild
|
||||
Do not randomize the host build number in the ePID and use Host-
|
||||
Build instead, for instance 17763 for Windows Server 2019 / Win-
|
||||
dows 10 1809.
|
||||
|
||||
|
||||
-K0, -K1, -K2 and -K3
|
||||
Sets the whitelisting level to determine which products vlmcsd
|
||||
activates or refuses. The default is -K0.
|
||||
@ -449,10 +551,48 @@ OPTIONS
|
||||
system time after you started vlmcsd.
|
||||
|
||||
|
||||
-M0 and -M1
|
||||
Disables (-M0) or enables (-M1) maintaining a list of client
|
||||
machine IDs (CMIDs). The default is -M0. -M1 is useful to pre-
|
||||
vent emulator detection. By maintaing a CMID list, vlmcsd
|
||||
reports current active clients exactly like a genuine KMS emula-
|
||||
tor. This includes bug compatibility to the extent that you can
|
||||
permanently kill a genuine KMS emulator by sending an "over-
|
||||
charge request" with a required client count of 376 or more and
|
||||
then request activation for 671 clients. vlmcsd can be reset
|
||||
from this condition by restarting it. If -M0 is used, vlmcsd
|
||||
reports current active clients as good as possible. If no client
|
||||
sends an "overcharge request", it is not possible to detect vlm-
|
||||
csd as an emulator with -M0. -M1 requires the allocation of a
|
||||
buffer that is about 50 kB in size. On hardware with few memory
|
||||
resources use it only if you really need it.
|
||||
|
||||
If you start vlmcsd from an internet superserver, -M1 cannot be
|
||||
used. Since vlmcsd exits after each activation, it cannot main-
|
||||
tain any state in memory.
|
||||
|
||||
|
||||
-E0 and -E1
|
||||
These options are ignored if you do not also specify -M1. If you
|
||||
use -E0 (the default), vlmcsd starts up as a fully "charged" KMS
|
||||
server. Clients activate immediately. -E1 lets you start up vlm-
|
||||
csd with an empty CMID list. Activation will start when the
|
||||
required minimum clients (25 for Windows Client OSses, 5 for
|
||||
Windows Server OSses and Office) have registered with the KMS
|
||||
server. As long as the minimum client count has not been
|
||||
reached, clients end up in HRESULT 0xC004F038 "The count
|
||||
reported by your Key Management Service (KMS) is insufficient.
|
||||
Please contact your system administrator". You may use vlmcs(1)
|
||||
or another KMS client emulator to "charge" vlmcsd. -E1 does not
|
||||
improve emulator detection prevention. It's primary purpose is
|
||||
to help developers of KMS clients to test "charging" a KMS
|
||||
server.
|
||||
|
||||
|
||||
-R renewal-interval
|
||||
Instructs clients to renew activation every renewal-interval.
|
||||
The renewal-interval is a number optionally immediately followed
|
||||
by a letter indicating the unit. Valid unit letters are s (sec‐
|
||||
by a letter indicating the unit. Valid unit letters are s (sec-
|
||||
onds), m (minutes), h (hours), d (days) and w (weeks). If you do
|
||||
not specify a letter, minutes is assumed.
|
||||
|
||||
@ -466,14 +606,14 @@ OPTIONS
|
||||
before your activation expires (usually 180 days).
|
||||
|
||||
Even though you can specify seconds, the granularity of this
|
||||
option is 1 minute. Seconds are rounded down to the next multi‐
|
||||
option is 1 minute. Seconds are rounded down to the next multi-
|
||||
ple of 60.
|
||||
|
||||
|
||||
-A activation-interval
|
||||
Instructs clients to retry activation every activation-interval
|
||||
if it was unsuccessful, e.g. because it could not reach the
|
||||
server. The default is 120 (identical to 2h). activation-inter‐
|
||||
server. The default is 120 (identical to 2h). activation-inter-
|
||||
val follows the same syntax as renewal-interval in the -R
|
||||
option.
|
||||
|
||||
@ -482,7 +622,7 @@ OPTIONS
|
||||
with the native Windows version and Cygwin. Combine -s with
|
||||
other command line options. These will be in effect when you
|
||||
start the service. The service automatically starts when you
|
||||
reboot your machine. To start it manually, type "net start vlm‐
|
||||
reboot your machine. To start it manually, type "net start vlm-
|
||||
csd".
|
||||
|
||||
If you use Cygwin, you must include your Cygwin system DLL
|
||||
@ -499,35 +639,35 @@ OPTIONS
|
||||
on your system.
|
||||
|
||||
|
||||
-S Uninstalls the vlmcsd service. Works only with the native Win‐
|
||||
-S Uninstalls the vlmcsd service. Works only with the native Win-
|
||||
dows version and Cygwin. All other options will be ignored if
|
||||
you include -S in the command line.
|
||||
|
||||
|
||||
-U [domain\]username
|
||||
Can only be used together with -s. Starts the service as a dif‐
|
||||
Can only be used together with -s. Starts the service as a dif-
|
||||
ferent user than the local SYSTEM account. This is used to run
|
||||
the service under an account with low privileges. If you omit
|
||||
the domain, an account from the local computer will be used.
|
||||
|
||||
You may use "NT AUTHORITY\NetworkService". This is a pseudo user
|
||||
with low privileges. You may also use "NT AUTHORITY\LocalSer‐
|
||||
vice" which has more privileges but these are of no use for run‐
|
||||
with low privileges. You may also use "NT AUTHORITY\LocalSer-
|
||||
vice" which has more privileges but these are of no use for run-
|
||||
ning vlmcsd.
|
||||
|
||||
Make sure that the user you specify has at least execute permis‐
|
||||
Make sure that the user you specify has at least execute permis-
|
||||
sion for your executable. "NT AUTHORITY\NetworkService" normally
|
||||
has no permission to run binaries from your home directory.
|
||||
|
||||
For your convenience you can use the special username "/l" as a
|
||||
shortcut for "NT AUTHORITY\LocalService" and "/n" for "NT
|
||||
AUTHORITY\NetworkService". "vlmcsd -s -U /n" installs the ser‐
|
||||
AUTHORITY\NetworkService". "vlmcsd -s -U /n" installs the ser-
|
||||
vice to run as "NT AUTHORITY\NetworkService".
|
||||
|
||||
|
||||
-W password
|
||||
Can only be used together with -s. Specifies a password for the
|
||||
corresponding username you use with -U. SYSTEM, "NT AUTHOR‐
|
||||
corresponding username you use with -U. SYSTEM, "NT AUTHOR-
|
||||
ITY\NetworkService", "NT AUTHORITY\LocalService" do not require
|
||||
a password.
|
||||
|
||||
@ -541,7 +681,7 @@ SIGNALS
|
||||
|
||||
|
||||
SIGTERM, SIGINT
|
||||
These signals cause vlmcsd to exit gracefully. All global sema‐
|
||||
These signals cause vlmcsd to exit gracefully. All global sema-
|
||||
phores and shared memory pages will be released, the pid file
|
||||
will be unlinked (deleted) and a shutdown message will be
|
||||
logged.
|
||||
@ -550,7 +690,7 @@ SIGNALS
|
||||
SIGHUP Causes vlmcsd to be restarted completely. This is useful if you
|
||||
started vlmcsd with an ini file. You can modify the ini file
|
||||
while vlmcsd is running and then sending SIGHUP, e.g. by typing
|
||||
"killall -SIGHUP vlmcsd" or "kill -SIGHUP `cat /var/run/vlm‐
|
||||
"killall -SIGHUP vlmcsd" or "kill -SIGHUP `cat /var/run/vlm-
|
||||
csd.pid`".
|
||||
|
||||
The SIGHUP handler has been implemented relatively simple. It is
|
||||
@ -558,18 +698,18 @@ SIGNALS
|
||||
immediately with the following exceptions:
|
||||
|
||||
|
||||
— The new process does not get a new process id.
|
||||
-- The new process does not get a new process id.
|
||||
|
||||
— If you used a pid file, it is not deleted and recreated
|
||||
-- If you used a pid file, it is not deleted and recreated
|
||||
because the process id stays the same.
|
||||
|
||||
— If you used the 'user' and/or 'group' directive in an ini
|
||||
-- If you used the 'user' and/or 'group' directive in an ini
|
||||
file these are ignored. This is because once you switched to
|
||||
lower privileged users and groups, there is no way back. Any‐
|
||||
lower privileged users and groups, there is no way back. Any-
|
||||
thing else would be a severe security flaw in the OS.
|
||||
|
||||
Signaling is not available in the native Windows version and in the
|
||||
Cygwin version when it runs as Windows service.
|
||||
Cygwin version when vlmcsd runs as a Windows service.
|
||||
|
||||
|
||||
SUPPORTED OPERATING SYSTEMS
|
||||
@ -581,12 +721,12 @@ SUPPORTED OPERATING SYSTEMS
|
||||
|
||||
|
||||
SUPPORTED PRODUCTS
|
||||
vlmcsd can answer activation requests for the following products: Win‐
|
||||
dows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 (up to 1607),
|
||||
Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Win‐
|
||||
vlmcsd can answer activation requests for the following products: Win-
|
||||
dows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 (up to 1703),
|
||||
Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Win-
|
||||
dows Server 2012 R2, Windows Server 2016, Office 2010, Project 2010,
|
||||
Visio 2010, Office 2013, Project 2013, Visio 2013, Office 2016, Project
|
||||
2016, Visio 2016. Newer version may work as long as the KMS protocol
|
||||
2016, Visio 2016. Newer products may work as long as the KMS protocol
|
||||
does not change. A complete list of fully supported products can be
|
||||
obtained using the -x option of vlmcs(1).
|
||||
|
||||
@ -605,13 +745,13 @@ EXAMPLES
|
||||
|
||||
|
||||
vlmcsd -l /var/log/vlmcsd.log
|
||||
Starts vlmcsd as a daemon and logs everything to /var/log/vlm‐
|
||||
Starts vlmcsd as a daemon and logs everything to /var/log/vlm-
|
||||
csd.log.
|
||||
|
||||
|
||||
vlmcsd -L 192.168.1.17
|
||||
Starts vlmcsd as a daemon and listens on IP address 192.168.1.17
|
||||
only. This is useful for routers that have a public and a pri‐
|
||||
only. This is useful for routers that have a public and a pri-
|
||||
vate IP address to prevent your KMS server from becoming public.
|
||||
|
||||
|
||||
@ -625,19 +765,14 @@ BUGS
|
||||
An ePID specified in an ini file must not contain spaces.
|
||||
|
||||
|
||||
INTENTIONAL BUGS
|
||||
vlmcsd always reports enough active clients to satisfy the N count pol‐
|
||||
icy of the request.
|
||||
|
||||
|
||||
AUTHOR
|
||||
Written by crony12, Hotbird64 and vityan666. With contributions from
|
||||
DougQaid.
|
||||
|
||||
|
||||
CREDITS
|
||||
Thanks to CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad, Rati‐
|
||||
borus, ...
|
||||
Thanks to abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87,
|
||||
qad, Ratiborus, ...
|
||||
|
||||
|
||||
SEE ALSO
|
||||
@ -645,4 +780,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
Hotbird64 October 2016 VLMCSD(8)
|
||||
Hotbird64 October 2018 VLMCSD(8)
|
||||
|
@ -1,4 +1,4 @@
|
||||
.TH VLMCSD.INI 5 "October 2016" "Hotbird64" "KMS Activation Manual"
|
||||
.TH VLMCSD.INI 5 "October 2018" "Hotbird64" "KMS Activation Manual"
|
||||
.LO 8
|
||||
|
||||
.SH NAME
|
||||
@ -66,6 +66,41 @@ Set the level of protection against KMS activations from public IP addresses.
|
||||
|
||||
For details on public IP protection levels see \fBvlmcsd\fR(8) command line option \fB-o\fR.
|
||||
|
||||
.IP "\fBVPN\fR"
|
||||
Has to be in the form \fIvpn-adapter-name\fR[=\fIipv4-address\fR][/\fIcidr-mask\fR][:\fIdhcp-lease-duration\fR].
|
||||
|
||||
Enables a compatible VPN adapter to create additional local IPv4 addresses (like 127.0.0.1) that appear as remote IPv4 addresses to the system. This allows product activation using a local instance of vlmcsd. This feature is only available in Windows and Cygwin builds of vlmcsd since it is not of any use on other operating systems. Compatible VPN adapters are Tap-windows version 8.2 or higher (from OpenVPN) and the TeamViewer VPN adapter. There is a special \fIvpn-adapter-name\fR. A single period (.) instructs vlmcsd to use the first available compatible VPN adapter. The \fIvpn-adapter-name\fR is \fBnot\fR case-sensitive. If the \fIvpn-adapter-name\fR contains spaces (e.g. Ethernet 3), do \fBnot\fR enclose it in quotes.
|
||||
|
||||
The default \fIipv4-address\fR is 10.10.10.9 and the default \fIcidr-mask\fR is 30. If you are using the default values, your VPN adapter uses an IPv4 address of 10.10.10.9 and you can set your activation client to use the easy to remember address 10.10.10.10 (e.g. slmgr /skms 10.10.10.10 or cscript ospp.vbs /sethst:10.10.10.10).
|
||||
|
||||
The \fIdhcp-lease-duration\fR is a number optionally followed by s, m, h, d or w to indicate seconds, minutes, hours, days or weeks. The default \fIdhcp-lease-duration\fR is 1d (one day). It is normally not required to change this value.
|
||||
|
||||
It is advised not to manually configure your OpenVPN TAP or TeamViewer VPN adapter in "Network Connections". If you set the IPv4 configuration manually anyway, the IPv4 address and the subnet mask must match the \fBVPN=\fR directive. It is safe leave the IPv4 configuration to automatic (DHCP). vlmcsd will wait up to four seconds for the DHCP configuration to complete before binding to and listenin on any interfaces.
|
||||
|
||||
You should be aware that only one program can use a VPN adapter at a time. If you use the TeamViewer VPN adapter for example, you will not be able to use the VPN feature of TeamViewer as long as vlmcsd is running. The same applies to OpenVPN TAP adapters that are in use by other programs (for example OpenVPN, QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid conflicts is to install Tap-Windows from OpenVPN, cd to C:\\Program Files\\TAP-Windows\\bin and run addtap.bat to install an additional TAP adapter. Go to "Network Connections" and rename the new adapter to "vlmcsd" and specify \fBVPN=vlmcsd\fR to use it.
|
||||
|
||||
.IP "\fBExitLevel"
|
||||
Can be either 0 (the default) or 1. Controls under what circumstances vlmcsd will exit. Using the default of \fB0\fR vlmcsd stays active as long as it can perform some useful operations. If vlmcsd is run by any form of a watchdog, e.g. NT service manager (Windows), systemd (Linux) or launchd (Mac OS / iOS), it may be desirable to end vlmcsd and let the watchdog restart it. This is especially true if some pre-requisites are not yet met but will be some time later, e.g. network is not yet fully setup.
|
||||
|
||||
By using \fBExitLevel = 0\fR vlmcsd will
|
||||
|
||||
.RS 12
|
||||
exit if none of the listening sockets specified with \fB-L\fR can be used. It continues if at least one socket can be setup for listening.
|
||||
|
||||
exit any TAP mirror thread (Windows version only) if there is an error condition while reading or writing from or to the VPN adapter but continue to work without utilizing a VPN adapter.
|
||||
.RE
|
||||
.IP
|
||||
By using \fBExitLevel = 1\fR vlmcsd will
|
||||
|
||||
.RS 12
|
||||
exit if not all listening sockets specified with \fB-L\fR can be used.
|
||||
|
||||
exit completely if there is a problem with a VPN adapter it is using. This may happen for instance if the VPN adapter has been disabled using "Control Panel - Network - Adapter Settings" while vlmcsd is using it.
|
||||
|
||||
.RE
|
||||
.IP
|
||||
Please note that \fBExitLevel = 1\fR is kind of a workaround option. While it may help under some circumstances, it is better to solve the problem at its origin, e.g. properly implementing dependencies in your startup script to ensure all network interfaces and the VPN adapter you will use are completely setup before you start vlmcsd.
|
||||
|
||||
.IP "\fBUseNDR64\fR"
|
||||
Can be TRUE or FALSE. Specifies whether you want to use the NDR64 transfer syntax. See options \fB-n0\fR and \fB-n1\fR in \fBvlmcsd\fR(8). The default is TRUE.
|
||||
|
||||
@ -78,6 +113,9 @@ The \fIargument\fR must 0, 1 or 2. This specifies the ePID randomization level.
|
||||
.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.
|
||||
|
||||
.IP "\fBHostBuild\fR"
|
||||
Use a specific host build number in the ePID even if it is randomized. The \fIargument\fR must be a number between 1 and 65535. While you can use any number you should only use build numbers that a released build numbers of Windows Servers, e.g. 17763 for Windows Server 2019.
|
||||
|
||||
.IP "\fBMaxWorkers\fR"
|
||||
The \fIargument\fR specifies the maximum number of worker processes or threads that will be used to serve activation requests concurrently. This is the same as specifying \fB-m\fR on the command line. Minimum is 1. The maximum is platform specific and is at least 32767 but is likely to be greater on most systems. The default is no limit.
|
||||
|
||||
@ -93,6 +131,11 @@ Write a pid file. The \fIargument\fR is the full pathname of a pid file. The pid
|
||||
.IP "\fBLogFile\fR"
|
||||
Write a log file. The \fIargument\fR is the full pathname of a log file. On a unixoid OS and with Cygwin you can use the special filename 'syslog' to log to the syslog facility. This is the same as specifying \fB-l\fR on the command line.
|
||||
|
||||
.IP "\fBKmsData\fR"
|
||||
Use a KMS data file. The \fIargument\fR is the full pathname of a KMS data file. By default vlmcsd only contains the minimum product data that is required to perform all operations correctly. You may use a more complete KMS data file that contains all detailed product names. This is especially useful if you are logging KMS requests. If you don't log, there is no need to load an external KMS data file.
|
||||
|
||||
You may use \fBKmsData\ =\ \-\fR to prevent the default KMS data file to be loaded.
|
||||
|
||||
.IP "\fBLogDateAndTime\fR"
|
||||
Can be TRUE or FALSE. The default is TRUE. If set to FALSE, logging output does not include date and time. This is useful if you log to \fBstdout\fR(3) which is redirected to another logging mechanism that already includes date and time in its output, for instance \fBsystemd-journald\fR(8). If you log to \fBsyslog\fR(3), \fBLogDateAndTime\fR is ignored and date and time will never be included in the output sent to \fBsyslog\fR(3). Using the command line you control this setting with options \fB-T0\fR and \fB-T1\fR.
|
||||
|
||||
@ -118,8 +161,16 @@ The SKU ID is not checked. Like a genuine KMS server vlmcsd activates a product
|
||||
.IP "\fBCheckClientTime\fR"
|
||||
Can be TRUE or FALSE. The default is FALSE. If you set this to TRUE \fBvlmcsd\fR(8) checks if the client time differs no more than four hours from the system time. This is useful to prevent emulator detection. A client that tries to detect an emulator could simply send two subsequent request with two time stamps that differ more than four hours from each other. If both requests succeed, the server is an emulator. If you set this to TRUE on a system with no reliable time source, activations will fail. It is ok to set the correct system time after you started \fBvlmcsd\fR(8).
|
||||
|
||||
.IP "\fBMaintainClients\fR"
|
||||
Can be TRUE or FALSE (the default). Disables (FALSE) or enables (TRUE) maintaining a list of client machine IDs (CMIDs). TRUE is useful to prevent emulator detection. By maintaing a CMID list, \fBvlmcsd\fR(8) reports current active clients exactly like a genuine KMS emulator. This includes bug compatibility to the extent that you can permanently kill a genuine KMS emulator by sending an "overcharge request" with a required client count of 376 or more and then request activation for 671 clients. \fBvlmcsd\fR(8) can be reset from this condition by restarting it. If FALSE is used, \fBvlmcsd\fR(8) reports current active clients as good as possible. If no client sends an "overcharge request", it is not possible to detect \fBvlmcsd\fR(8) as an emulator with \fBMaintainClients\fR\~=\~FALSE. Maintaining clients requires the allocation of a buffer that is about 50 kB in size. On hardware with few memory resources use it only if you really need it.
|
||||
|
||||
If you start \fBvlmcsd\fR(8) from an internet superserver, this setting cannot be used. Since \fBvlmcsd\fR(8) exits after each activation, it cannot maintain any state in memory.
|
||||
|
||||
.IP "\fBStartEmpty\fR"
|
||||
This setting is ignored if you do not also specify \fBMaintainClients\fR\~=\~TRUE. If you specify FALSE (the default), \fBvlmcsd\fR(8) starts up as a fully "charged" KMS server. Clients activate immediately. \fBStartEmpty\fR\~=\~TRUE lets you start up \fBvlmcsd\fR(8) with an empty CMID list. Activation will start when the required minimum clients (25 for Windows Client OSses, 5 for Windows Server OSses and Office) have registered with the KMS server. As long as the minimum client count has not been reached, clients end up in HRESULT 0xC004F038 "The count reported by your Key Management Service (KMS) is insufficient. Please contact your system administrator". You may use \fBvlmcs\fR(1) or another KMS client emulator to "charge" \fBvlmcsd\fR(8). Setting this parameter to TRUE does not improve emulator detection prevention. It's primary purpose is to help developers of KMS clients to test "charging" a KMS server.
|
||||
|
||||
.IP "\fBActivationInterval\fR"
|
||||
This is the same as specifying \fB-A\fR on the command line. See \fBvlmcsd\fR(8) for details. The default is 2 hours. Example: ActivationInterval = 1h
|
||||
This is the same as specifying \fB-A\fR on the command line. See \fBvlmcsd\fR(8) for details. The default is 2 hours. Example: ActivationInterval\~=\~1h
|
||||
|
||||
.IP "\fBRenewalInterval\fR"
|
||||
This is the same as specifying \fB-R\fR on the command line. See \fBvlmcsd\fR(8) for details. The default is 7 days. Example: RenewalInterval = 3d. Please note that the KMS client decides itself when to renew activation. Even though vlmcsd sends the renewal interval you specify, it is no more than some kind of recommendation to the client. Older KMS clients did follow the recommendation from a KMS server or emulator. Newer clients do not.
|
||||
@ -130,17 +181,8 @@ Run vlmcsd as another, preferrably less privileged, user. The \fIargument\fR can
|
||||
.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.
|
||||
|
||||
.IP "\fBWindows\fR"
|
||||
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.
|
||||
|
||||
.IP "\fBOffice2010\fR"
|
||||
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.
|
||||
|
||||
.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.
|
||||
|
||||
.IP "\fBOffice2016\fR"
|
||||
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.
|
||||
.IP "\fB<csvlk-name>\fR"
|
||||
The \fIargument\fR has the form \fIePID\fR [ / \fIHwId\fR ]. Always use \fIePID\fR and \fIHwId\fR for activations with \fB<csvlk-name>\fR. If specified, \fBRandomizationLevel\fR for the \fB<csvlk-name>\fR will be ignored. With the default vlmcsd.kmd database you can use the following \fB<csvlk-name>\fRs: Windows, Office2010, Office2013, Office2016, Office2019 and WinChinaGov. While vlmcsd is compatible with older databases, you must use at least database version 1.6 for this feature to work.
|
||||
|
||||
.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.
|
||||
@ -158,7 +200,7 @@ If you are specifying an optional HWID it follows the same syntax as in the \fB\
|
||||
\fBvlmcsd\fR(8) was written by crony12, Hotbird64 and vityan666. With contributions from DougQaid.
|
||||
|
||||
.SH CREDITS
|
||||
Thanks to CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad, Ratiborus, ...
|
||||
Thanks to abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad, Ratiborus, ...
|
||||
|
||||
.SH SEE ALSO
|
||||
\fBvlmcsd\fR(8), \fBvlmcsd\fR(7), \fBvlmcs\fR(1), \fBvlmcsdmulti\fR(1)
|
||||
|
@ -17,7 +17,7 @@ DESCRIPTION
|
||||
option on the vlmcsd command line to use an ini file. There is no
|
||||
default name or default location for the ini file.
|
||||
|
||||
Everything, that can be configured in the ini file, may also be speci‐
|
||||
Everything, that can be configured in the ini file, may also be speci-
|
||||
fied on the command line. Any configuration option specified on the
|
||||
command line takes precedence over the respective configuration line in
|
||||
the ini file.
|
||||
@ -33,16 +33,16 @@ DESCRIPTION
|
||||
Differences between command line and configuration file
|
||||
|
||||
If you specify an illegal option or option argument on the command
|
||||
line, vlmcsd displays help and exits. If you specify an incorrect key‐
|
||||
line, vlmcsd displays help and exits. If you specify an incorrect key-
|
||||
word or argument in the ini file, vlmcsd displays a warning with some
|
||||
information, ignores the respective line and continues. This is inten‐
|
||||
tional and prevents vlmcsd from aborting after a SIGHUP if the configu‐
|
||||
information, ignores the respective line and continues. This is inten-
|
||||
tional and prevents vlmcsd from aborting after a SIGHUP if the configu-
|
||||
ration was modified incorrectly.
|
||||
|
||||
|
||||
SYNTAX
|
||||
vlmcsd.ini is a UTF-8 encoded text file with each line being in the
|
||||
format keyword = argument. The keyword is not case-sensitive. The argu‐
|
||||
format keyword = argument. The keyword is not case-sensitive. The argu-
|
||||
ment is treated literally. It is neither required nor allowed to
|
||||
enclose the argument in any form of quote characters except when quote
|
||||
characters are part of the argument itself. Whitespace characters are
|
||||
@ -54,14 +54,14 @@ SYNTAX
|
||||
|
||||
Lines, that start with '#' or ';' are treated as comments. Empty lines
|
||||
are ignored as well. If a keyword is repeated in another line, vlmcsd
|
||||
will use the argument of the last occurence of the keyword. An excep‐
|
||||
will use the argument of the last occurence of the keyword. An excep-
|
||||
tion to this is the Listen keyword which can be specified multiple
|
||||
times and causes vlmcsd to listen on more than one IP address and/or
|
||||
port.
|
||||
|
||||
Some arguments are binary arguments that need to be either TRUE or
|
||||
FALSE. You can use "Yes", "On" or "1" as an alias for TRUE and "No",
|
||||
"Off" or "0" as an alias for FALSE. Binary arguments are case-insensi‐
|
||||
"Off" or "0" as an alias for FALSE. Binary arguments are case-insensi-
|
||||
tive.
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@ KEYWORDS
|
||||
was compiled):
|
||||
|
||||
|
||||
Listen This defines on what combinations of IP addresses and ports vlm‐
|
||||
Listen This defines on what combinations of IP addresses and ports vlm-
|
||||
csd should listen. Listen can be specified more than once. The
|
||||
argument has the form ipaddress[:port]. If you omit the port,
|
||||
the default port of 1688 is used. If the ipaddress contains
|
||||
@ -80,7 +80,7 @@ KEYWORDS
|
||||
which means listen to all IPv4 and all IPv6 addresses. See the
|
||||
-L option in vlmcsd(8) for more info about the syntax. If you
|
||||
use -L or -P on the command line, all Listen keywords in the ini
|
||||
file will be ignored. The Listen keyword cannot be used if vlm‐
|
||||
file will be ignored. The Listen keyword cannot be used if vlm-
|
||||
csd has been compiled to use Microsoft RPC (Windows and Cygwin
|
||||
only) or simple sockets.
|
||||
|
||||
@ -91,7 +91,7 @@ KEYWORDS
|
||||
Listen = [fe80::1721:12ff:fe81:d36b%eth0]:1688
|
||||
|
||||
|
||||
Port Can only be used if vlmcsd has been compiled to use simple sock‐
|
||||
Port Can only be used if vlmcsd has been compiled to use simple sock-
|
||||
ets or on Windows and Cygwin if vlmcsd(8) has been compiled to
|
||||
use Microsoft RPC. Otherwise you must use Listen instead. Causes
|
||||
vlmcsd to listen on that port instead of 1688.
|
||||
@ -115,7 +115,7 @@ KEYWORDS
|
||||
0 = No protection (default)
|
||||
1 = Listen on private IP addresses only (plus those specified by
|
||||
one or more Listen statements)
|
||||
2 = Disconnect clients with public IP addresses without activat‐
|
||||
2 = Disconnect clients with public IP addresses without activat-
|
||||
ing
|
||||
3 = Combines 1 and 2
|
||||
|
||||
@ -123,6 +123,94 @@ KEYWORDS
|
||||
line option -o.
|
||||
|
||||
|
||||
VPN Has to be in the form vpn-adapter-name[=ipv4-address][/cidr-
|
||||
mask][:dhcp-lease-duration].
|
||||
|
||||
Enables a compatible VPN adapter to create additional local IPv4
|
||||
addresses (like 127.0.0.1) that appear as remote IPv4 addresses
|
||||
to the system. This allows product activation using a local
|
||||
instance of vlmcsd. This feature is only available in Windows
|
||||
and Cygwin builds of vlmcsd since it is not of any use on other
|
||||
operating systems. Compatible VPN adapters are Tap-windows ver-
|
||||
sion 8.2 or higher (from OpenVPN) and the TeamViewer VPN
|
||||
adapter. There is a special vpn-adapter-name. A single period
|
||||
(.) instructs vlmcsd to use the first available compatible VPN
|
||||
adapter. The vpn-adapter-name is not case-sensitive. If the vpn-
|
||||
adapter-name contains spaces (e.g. Ethernet 3), do not enclose
|
||||
it in quotes.
|
||||
|
||||
The default ipv4-address is 10.10.10.9 and the default cidr-mask
|
||||
is 30. If you are using the default values, your VPN adapter
|
||||
uses an IPv4 address of 10.10.10.9 and you can set your activa-
|
||||
tion client to use the easy to remember address 10.10.10.10
|
||||
(e.g. slmgr /skms 10.10.10.10 or cscript ospp.vbs
|
||||
/sethst:10.10.10.10).
|
||||
|
||||
The dhcp-lease-duration is a number optionally followed by s, m,
|
||||
h, d or w to indicate seconds, minutes, hours, days or weeks.
|
||||
The default dhcp-lease-duration is 1d (one day). It is normally
|
||||
not required to change this value.
|
||||
|
||||
It is advised not to manually configure your OpenVPN TAP or
|
||||
TeamViewer VPN adapter in "Network Connections". If you set the
|
||||
IPv4 configuration manually anyway, the IPv4 address and the
|
||||
subnet mask must match the VPN= directive. It is safe leave the
|
||||
IPv4 configuration to automatic (DHCP). vlmcsd will wait up to
|
||||
four seconds for the DHCP configuration to complete before bind-
|
||||
ing to and listenin on any interfaces.
|
||||
|
||||
You should be aware that only one program can use a VPN adapter
|
||||
at a time. If you use the TeamViewer VPN adapter for example,
|
||||
you will not be able to use the VPN feature of TeamViewer as
|
||||
long as vlmcsd is running. The same applies to OpenVPN TAP
|
||||
adapters that are in use by other programs (for example OpenVPN,
|
||||
QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid con-
|
||||
flicts is to install Tap-Windows from OpenVPN, cd to C:\Program
|
||||
Files\TAP-Windows\bin and run addtap.bat to install an addi-
|
||||
tional TAP adapter. Go to "Network Connections" and rename the
|
||||
new adapter to "vlmcsd" and specify VPN=vlmcsd to use it.
|
||||
|
||||
|
||||
ExitLevel
|
||||
Can be either 0 (the default) or 1. Controls under what circum-
|
||||
stances vlmcsd will exit. Using the default of 0 vlmcsd stays
|
||||
active as long as it can perform some useful operations. If vlm-
|
||||
csd is run by any form of a watchdog, e.g. NT service manager
|
||||
(Windows), systemd (Linux) or launchd (Mac OS / iOS), it may be
|
||||
desirable to end vlmcsd and let the watchdog restart it. This is
|
||||
especially true if some pre-requisites are not yet met but will
|
||||
be some time later, e.g. network is not yet fully setup.
|
||||
|
||||
By using ExitLevel = 0 vlmcsd will
|
||||
|
||||
exit if none of the listening sockets specified with -L can
|
||||
be used. It continues if at least one socket can be setup
|
||||
for listening.
|
||||
|
||||
exit any TAP mirror thread (Windows version only) if there
|
||||
is an error condition while reading or writing from or to
|
||||
the VPN adapter but continue to work without utilizing a
|
||||
VPN adapter.
|
||||
|
||||
By using ExitLevel = 1 vlmcsd will
|
||||
|
||||
exit if not all listening sockets specified with -L can be
|
||||
used.
|
||||
|
||||
exit completely if there is a problem with a VPN adapter it
|
||||
is using. This may happen for instance if the VPN adapter
|
||||
has been disabled using "Control Panel - Network - Adapter
|
||||
Settings" while vlmcsd is using it.
|
||||
|
||||
|
||||
Please note that ExitLevel = 1 is kind of a workaround option.
|
||||
While it may help under some circumstances, it is better to
|
||||
solve the problem at its origin, e.g. properly implementing
|
||||
dependencies in your startup script to ensure all network inter-
|
||||
faces and the VPN adapter you will use are completely setup
|
||||
before you start vlmcsd.
|
||||
|
||||
|
||||
UseNDR64
|
||||
Can be TRUE or FALSE. Specifies whether you want to use the
|
||||
NDR64 transfer syntax. See options -n0 and -n1 in vlmcsd(8). The
|
||||
@ -131,12 +219,12 @@ KEYWORDS
|
||||
|
||||
UseBTFN
|
||||
Can be TRUE or FALSE. Specifies whether you want to use bind
|
||||
time feature negotiation in RPC. See options -b0 and -b1 in vlm‐
|
||||
time feature negotiation in RPC. See options -b0 and -b1 in vlm-
|
||||
csd(8). The default is TRUE.
|
||||
|
||||
|
||||
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
|
||||
default randomization level is 1. A RandomizationLevel of 2 is
|
||||
not recommended and should be treated as a debugging level.
|
||||
@ -145,14 +233,22 @@ KEYWORDS
|
||||
LCID Use a specific culture id (LCID) even if the ePID is randomized.
|
||||
The argument 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.micro‐
|
||||
list of assigned LCIDs can be found at http://msdn.micro-
|
||||
soft.com/en-us/goglobal/bb964664.aspx. On the command line you
|
||||
control this setting with option -C.
|
||||
|
||||
|
||||
HostBuild
|
||||
Use a specific host build number in the ePID even if it is ran-
|
||||
domized. The argument must be a number between 1 and 65535.
|
||||
While you can use any number you should only use build numbers
|
||||
that a released build numbers of Windows Servers, e.g. 17763 for
|
||||
Windows Server 2019.
|
||||
|
||||
|
||||
MaxWorkers
|
||||
The argument specifies the maximum number of worker processes or
|
||||
threads that will be used to serve activation requests concur‐
|
||||
threads that will be used to serve activation requests concur-
|
||||
rently. This is the same as specifying -m on the command line.
|
||||
Minimum is 1. The maximum is platform specific and is at least
|
||||
32767 but is likely to be greater on most systems. The default
|
||||
@ -160,13 +256,13 @@ KEYWORDS
|
||||
|
||||
|
||||
ConnectionTimeout
|
||||
Used to control when the vlmcsd disconnects idle TPC connec‐
|
||||
Used to control when the vlmcsd disconnects idle TPC connec-
|
||||
tions. The default is 30 seconds. This is the same setting as -t
|
||||
on the command line.
|
||||
|
||||
|
||||
DisconnectClientsImmediately
|
||||
Set this to TRUE to disconnect a client after it got an activa‐
|
||||
Set this to TRUE to disconnect a client after it got an activa-
|
||||
tion response regardless whether a timeout has occured or not.
|
||||
The default is FALSE. Setting this to TRUE is non-standard
|
||||
behavior. Use only if you are experiencing DoS or DDoS attacks.
|
||||
@ -189,12 +285,25 @@ KEYWORDS
|
||||
same as specifying -l on the command line.
|
||||
|
||||
|
||||
KmsData
|
||||
Use a KMS data file. The argument is the full pathname of a KMS
|
||||
data file. By default vlmcsd only contains the minimum product
|
||||
data that is required to perform all operations correctly. You
|
||||
may use a more complete KMS data file that contains all detailed
|
||||
product names. This is especially useful if you are logging KMS
|
||||
requests. If you don't log, there is no need to load an external
|
||||
KMS data file.
|
||||
|
||||
You may use KmsData = - to prevent the default KMS data file to
|
||||
be loaded.
|
||||
|
||||
|
||||
LogDateAndTime
|
||||
Can be TRUE or FALSE. The default is TRUE. If set to FALSE, log‐
|
||||
Can be TRUE or FALSE. The default is TRUE. If set to FALSE, log-
|
||||
ging output does not include date and time. This is useful if
|
||||
you log to stdout(3) which is redirected to another logging
|
||||
mechanism that already includes date and time in its output, for
|
||||
instance systemd-journald(8). If you log to syslog(3), LogDate‐
|
||||
instance systemd-journald(8). If you log to syslog(3), LogDate-
|
||||
AndTime is ignored and date and time will never be included in
|
||||
the output sent to syslog(3). Using the command line you control
|
||||
this setting with options -T0 and -T1.
|
||||
@ -203,7 +312,7 @@ KEYWORDS
|
||||
LogVerbose
|
||||
Set this to either TRUE or FALSE. The default is FALSE. If set
|
||||
to TRUE, more details of each activation will be logged. You use
|
||||
-v and -q in the command line to control this setting. LogVer‐
|
||||
-v and -q in the command line to control this setting. LogVer-
|
||||
bose has an effect only if you specify a log file or redirect
|
||||
logging to stdout(3).
|
||||
|
||||
@ -224,36 +333,76 @@ KEYWORDS
|
||||
|
||||
The SKU ID is not checked. Like a genuine KMS server vlmcsd
|
||||
activates a product that has a random or unknown SKU ID. If you
|
||||
select 1 or 3, vlmcsd also checks the Application ID for cor‐
|
||||
rectness. If Microsoft introduces a new KMS ID for a new prod‐
|
||||
uct, you cannot activate it if you used 1 or 3 until a new ver‐
|
||||
select 1 or 3, vlmcsd also checks the Application ID for cor-
|
||||
rectness. If Microsoft introduces a new KMS ID for a new prod-
|
||||
uct, you cannot activate it if you used 1 or 3 until a new ver-
|
||||
sion of vlmcsd is available.
|
||||
|
||||
|
||||
CheckClientTime
|
||||
Can be TRUE or FALSE. The default is FALSE. If you set this to
|
||||
TRUE vlmcsd(8) checks if the client time differs no more than
|
||||
four hours from the system time. This is useful to prevent emu‐
|
||||
four hours from the system time. This is useful to prevent emu-
|
||||
lator detection. A client that tries to detect an emulator could
|
||||
simply send two subsequent request with two time stamps that
|
||||
differ more than four hours from each other. If both requests
|
||||
succeed, the server is an emulator. If you set this to TRUE on a
|
||||
system with no reliable time source, activations will fail. It
|
||||
is ok to set the correct system time after you started vlm‐
|
||||
is ok to set the correct system time after you started vlm-
|
||||
csd(8).
|
||||
|
||||
|
||||
MaintainClients
|
||||
Can be TRUE or FALSE (the default). Disables (FALSE) or enables
|
||||
(TRUE) maintaining a list of client machine IDs (CMIDs). TRUE is
|
||||
useful to prevent emulator detection. By maintaing a CMID list,
|
||||
vlmcsd(8) reports current active clients exactly like a genuine
|
||||
KMS emulator. This includes bug compatibility to the extent that
|
||||
you can permanently kill a genuine KMS emulator by sending an
|
||||
"overcharge request" with a required client count of 376 or more
|
||||
and then request activation for 671 clients. vlmcsd(8) can be
|
||||
reset from this condition by restarting it. If FALSE is used,
|
||||
vlmcsd(8) reports current active clients as good as possible. If
|
||||
no client sends an "overcharge request", it is not possible to
|
||||
detect vlmcsd(8) as an emulator with MaintainClients = FALSE.
|
||||
Maintaining clients requires the allocation of a buffer that is
|
||||
about 50 kB in size. On hardware with few memory resources use
|
||||
it only if you really need it.
|
||||
|
||||
If you start vlmcsd(8) from an internet superserver, this set-
|
||||
ting cannot be used. Since vlmcsd(8) exits after each activa-
|
||||
tion, it cannot maintain any state in memory.
|
||||
|
||||
|
||||
StartEmpty
|
||||
This setting is ignored if you do not also specify Maintain-
|
||||
Clients = TRUE. If you specify FALSE (the default), vlmcsd(8)
|
||||
starts up as a fully "charged" KMS server. Clients activate
|
||||
immediately. StartEmpty = TRUE lets you start up vlmcsd(8) with
|
||||
an empty CMID list. Activation will start when the required min-
|
||||
imum clients (25 for Windows Client OSses, 5 for Windows Server
|
||||
OSses and Office) have registered with the KMS server. As long
|
||||
as the minimum client count has not been reached, clients end up
|
||||
in HRESULT 0xC004F038 "The count reported by your Key Management
|
||||
Service (KMS) is insufficient. Please contact your system admin-
|
||||
istrator". You may use vlmcs(1) or another KMS client emulator
|
||||
to "charge" vlmcsd(8). Setting this parameter to TRUE does not
|
||||
improve emulator detection prevention. It's primary purpose is
|
||||
to help developers of KMS clients to test "charging" a KMS
|
||||
server.
|
||||
|
||||
|
||||
ActivationInterval
|
||||
This is the same as specifying -A on the command line. See vlm‐
|
||||
csd(8) for details. The default is 2 hours. Example: Activation‐
|
||||
This is the same as specifying -A on the command line. See vlm-
|
||||
csd(8) for details. The default is 2 hours. Example: Activation-
|
||||
Interval = 1h
|
||||
|
||||
|
||||
RenewalInterval
|
||||
This is the same as specifying -R on the command line. See vlm‐
|
||||
csd(8) for details. The default is 7 days. Example: RenewalIn‐
|
||||
This is the same as specifying -R on the command line. See vlm-
|
||||
csd(8) for details. The default is 7 days. Example: RenewalIn-
|
||||
terval = 3d. Please note that the KMS client decides itself when
|
||||
to renew activation. Even though vlmcsd sends the renewal inter‐
|
||||
to renew activation. Even though vlmcsd sends the renewal inter-
|
||||
val you specify, it is no more than some kind of recommendation
|
||||
to the client. Older KMS clients did follow the recommendation
|
||||
from a KMS server or emulator. Newer clients do not.
|
||||
@ -273,36 +422,23 @@ KEYWORDS
|
||||
Group Run vlmcsd as another, preferrably less privileged, group. The
|
||||
argument 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 creden‐
|
||||
the security context of a process without providing any creden-
|
||||
tials (a password in most cases). On most unixoid OSses 'root'
|
||||
is the only user who has these privileges in the default config‐
|
||||
is the only user who has these privileges in the default config-
|
||||
uration. This setting is not available in the native Windows
|
||||
version of vlmcsd. See -g in vlmcsd(8). This setting cannot be
|
||||
changed on the fly by sending SIGHUP to vlmcsd.
|
||||
|
||||
|
||||
Windows
|
||||
<csvlk-name>
|
||||
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||
HwId for Windows activations. If specified, RandomizationLevel
|
||||
for Windows activitations will be ignored.
|
||||
|
||||
|
||||
Office2010
|
||||
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.
|
||||
|
||||
|
||||
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.
|
||||
HwId for activations with <csvlk-name>. If specified, Randomiza-
|
||||
tionLevel for the <csvlk-name> will be ignored. With the default
|
||||
vlmcsd.kmd database you can use the following <csvlk-name>s:
|
||||
Windows, Office2010, Office2013, Office2016, Office2019 and
|
||||
WinChinaGov. While vlmcsd is compatible with older databases,
|
||||
you must use at least database version 1.6 for this feature to
|
||||
work.
|
||||
|
||||
|
||||
VALID EPIDS
|
||||
@ -320,7 +456,7 @@ VALID EPIDS
|
||||
|
||||
If you use non-ASCII characters in your ePID (you shouldn't do anyway),
|
||||
these must be in UTF-8 format. This is especially important when you
|
||||
run vlmcsd on Windows or cygwin because UTF-8 is not the default encod‐
|
||||
run vlmcsd on Windows or cygwin because UTF-8 is not the default encod-
|
||||
ing for most editors.
|
||||
|
||||
If you are specifying an optional HWID it follows the same syntax as in
|
||||
@ -333,13 +469,13 @@ FILES
|
||||
|
||||
|
||||
AUTHOR
|
||||
vlmcsd(8) was written by crony12, Hotbird64 and vityan666. With contri‐
|
||||
vlmcsd(8) was written by crony12, Hotbird64 and vityan666. With contri-
|
||||
butions from DougQaid.
|
||||
|
||||
|
||||
CREDITS
|
||||
Thanks to CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad, Rati‐
|
||||
borus, ...
|
||||
Thanks to abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87,
|
||||
qad, Ratiborus, ...
|
||||
|
||||
|
||||
SEE ALSO
|
||||
@ -347,4 +483,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
Hotbird64 October 2016 VLMCSD.INI(5)
|
||||
Hotbird64 October 2018 VLMCSD.INI(5)
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- Creator : groff version 1.22.3 -->
|
||||
<!-- CreationDate: Fri Oct 21 03:17:10 2016 -->
|
||||
<!-- CreationDate: Sat Oct 20 09:49:39 2018 -->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@ -227,6 +227,122 @@ without activating <br>
|
||||
public IP protection levels see <b>vlmcsd</b>(8) command
|
||||
line option <b>-o</b>.</p>
|
||||
|
||||
<table width="100%" border="0" rules="none" frame="void"
|
||||
cellspacing="0" cellpadding="0">
|
||||
<tr valign="top" align="left">
|
||||
<td width="11%"></td>
|
||||
<td width="4%">
|
||||
|
||||
|
||||
<p><b>VPN</b></p></td>
|
||||
<td width="7%"></td>
|
||||
<td width="78%">
|
||||
|
||||
|
||||
<p>Has to be in the form
|
||||
<i>vpn-adapter-name</i>[=<i>ipv4-address</i>][/<i>cidr-mask</i>][:<i>dhcp-lease-duration</i>].</p> </td></tr>
|
||||
</table>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">Enables a
|
||||
compatible VPN adapter to create additional local IPv4
|
||||
addresses (like 127.0.0.1) that appear as remote IPv4
|
||||
addresses to the system. This allows product activation
|
||||
using a local instance of vlmcsd. This feature is only
|
||||
available in Windows and Cygwin builds of vlmcsd since it is
|
||||
not of any use on other operating systems. Compatible VPN
|
||||
adapters are Tap-windows version 8.2 or higher (from
|
||||
OpenVPN) and the TeamViewer VPN adapter. There is a special
|
||||
<i>vpn-adapter-name</i>. A single period (.) instructs
|
||||
vlmcsd to use the first available compatible VPN adapter.
|
||||
The <i>vpn-adapter-name</i> is <b>not</b> case-sensitive. If
|
||||
the <i>vpn-adapter-name</i> contains spaces (e.g. Ethernet
|
||||
3), do <b>not</b> enclose it in quotes.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">The default
|
||||
<i>ipv4-address</i> is 10.10.10.9 and the default
|
||||
<i>cidr-mask</i> is 30. If you are using the default values,
|
||||
your VPN adapter uses an IPv4 address of 10.10.10.9 and you
|
||||
can set your activation client to use the easy to remember
|
||||
address 10.10.10.10 (e.g. slmgr /skms 10.10.10.10 or cscript
|
||||
ospp.vbs /sethst:10.10.10.10).</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">The
|
||||
<i>dhcp-lease-duration</i> is a number optionally followed
|
||||
by s, m, h, d or w to indicate seconds, minutes, hours, days
|
||||
or weeks. The default <i>dhcp-lease-duration</i> is 1d (one
|
||||
day). It is normally not required to change this value.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">It is advised
|
||||
not to manually configure your OpenVPN TAP or TeamViewer VPN
|
||||
adapter in "Network Connections". If you set the
|
||||
IPv4 configuration manually anyway, the IPv4 address and the
|
||||
subnet mask must match the <b>VPN=</b> directive. It is safe
|
||||
leave the IPv4 configuration to automatic (DHCP). vlmcsd
|
||||
will wait up to four seconds for the DHCP configuration to
|
||||
complete before binding to and listenin on any
|
||||
interfaces.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">You should be
|
||||
aware that only one program can use a VPN adapter at a time.
|
||||
If you use the TeamViewer VPN adapter for example, you will
|
||||
not be able to use the VPN feature of TeamViewer as long as
|
||||
vlmcsd is running. The same applies to OpenVPN TAP adapters
|
||||
that are in use by other programs (for example OpenVPN,
|
||||
QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid
|
||||
conflicts is to install Tap-Windows from OpenVPN, cd to
|
||||
C:\Program Files\TAP-Windows\bin and run addtap.bat to
|
||||
install an additional TAP adapter. Go to "Network
|
||||
Connections" and rename the new adapter to
|
||||
"vlmcsd" and specify <b>VPN=vlmcsd</b> to use
|
||||
it.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>ExitLevel</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Can be either 0 (the default)
|
||||
or 1. Controls under what circumstances vlmcsd will exit.
|
||||
Using the default of <b>0</b> vlmcsd stays active as long as
|
||||
it can perform some useful operations. If vlmcsd is run by
|
||||
any form of a watchdog, e.g. NT service manager (Windows),
|
||||
systemd (Linux) or launchd (Mac OS / iOS), it may be
|
||||
desirable to end vlmcsd and let the watchdog restart it.
|
||||
This is especially true if some pre-requisites are not yet
|
||||
met but will be some time later, e.g. network is not yet
|
||||
fully setup.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">By using
|
||||
<b>ExitLevel = 0</b> vlmcsd will</p>
|
||||
|
||||
<p style="margin-left:29%; margin-top: 1em">exit if none of
|
||||
the listening sockets specified with <b>-L</b> can be used.
|
||||
It continues if at least one socket can be setup for
|
||||
listening.</p>
|
||||
|
||||
<p style="margin-left:29%; margin-top: 1em">exit any TAP
|
||||
mirror thread (Windows version only) if there is an error
|
||||
condition while reading or writing from or to the VPN
|
||||
adapter but continue to work without utilizing a VPN
|
||||
adapter.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">By using
|
||||
<b>ExitLevel = 1</b> vlmcsd will</p>
|
||||
|
||||
<p style="margin-left:29%; margin-top: 1em">exit if not all
|
||||
listening sockets specified with <b>-L</b> can be used.</p>
|
||||
|
||||
<p style="margin-left:29%; margin-top: 1em">exit completely
|
||||
if there is a problem with a VPN adapter it is using. This
|
||||
may happen for instance if the VPN adapter has been disabled
|
||||
using "Control Panel - Network - Adapter Settings"
|
||||
while vlmcsd is using it.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">Please note
|
||||
that <b>ExitLevel = 1</b> is kind of a workaround option.
|
||||
While it may help under some circumstances, it is better to
|
||||
solve the problem at its origin, e.g. properly implementing
|
||||
dependencies in your startup script to ensure all network
|
||||
interfaces and the VPN adapter you will use are completely
|
||||
setup before you start vlmcsd.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>UseNDR64</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Can be TRUE or FALSE. Specifies
|
||||
@ -272,6 +388,15 @@ the command line you control this setting with option
|
||||
<b>-C</b>.</p> </td></tr>
|
||||
</table>
|
||||
|
||||
<p style="margin-left:11%;"><b>HostBuild</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Use a specific host build
|
||||
number in the ePID even if it is randomized. The
|
||||
<i>argument</i> must be a number between 1 and 65535. While
|
||||
you can use any number you should only use build numbers
|
||||
that a released build numbers of Windows Servers, e.g. 17763
|
||||
for Windows Server 2019.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>MaxWorkers</b></p>
|
||||
|
||||
<p style="margin-left:22%;">The <i>argument</i> specifies
|
||||
@ -317,6 +442,21 @@ unixoid OS and with Cygwin you can use the special filename
|
||||
’syslog’ to log to the syslog facility. This is
|
||||
the same as specifying <b>-l</b> on the command line.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>KmsData</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Use a KMS data file. The
|
||||
<i>argument</i> is the full pathname of a KMS data file. By
|
||||
default vlmcsd only contains the minimum product data that
|
||||
is required to perform all operations correctly. You may use
|
||||
a more complete KMS data file that contains all detailed
|
||||
product names. This is especially useful if you are logging
|
||||
KMS requests. If you don’t log, there is no need to
|
||||
load an external KMS data file.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">You may use
|
||||
<b>KmsData = -</b> to prevent the default KMS data
|
||||
file to be loaded.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>LogDateAndTime</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Can be TRUE or FALSE. The
|
||||
@ -386,12 +526,60 @@ to TRUE on a system with no reliable time source,
|
||||
activations will fail. It is ok to set the correct system
|
||||
time after you started <b>vlmcsd</b>(8).</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>MaintainClients</b></p>
|
||||
|
||||
<p style="margin-left:22%;">Can be TRUE or FALSE (the
|
||||
default). Disables (FALSE) or enables (TRUE) maintaining a
|
||||
list of client machine IDs (CMIDs). TRUE is useful to
|
||||
prevent emulator detection. By maintaing a CMID list,
|
||||
<b>vlmcsd</b>(8) reports current active clients exactly like
|
||||
a genuine KMS emulator. This includes bug compatibility to
|
||||
the extent that you can permanently kill a genuine KMS
|
||||
emulator by sending an "overcharge request" with a
|
||||
required client count of 376 or more and then request
|
||||
activation for 671 clients. <b>vlmcsd</b>(8) can be reset
|
||||
from this condition by restarting it. If FALSE is used,
|
||||
<b>vlmcsd</b>(8) reports current active clients as good as
|
||||
possible. If no client sends an "overcharge
|
||||
request", it is not possible to detect <b>vlmcsd</b>(8)
|
||||
as an emulator with
|
||||
<b>MaintainClients </b>= FALSE. Maintaining
|
||||
clients requires the allocation of a buffer that is about 50
|
||||
kB in size. On hardware with few memory resources use it
|
||||
only if you really need it.</p>
|
||||
|
||||
<p style="margin-left:22%; margin-top: 1em">If you start
|
||||
<b>vlmcsd</b>(8) from an internet superserver, this setting
|
||||
cannot be used. Since <b>vlmcsd</b>(8) exits after each
|
||||
activation, it cannot maintain any state in memory.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>StartEmpty</b></p>
|
||||
|
||||
<p style="margin-left:22%;">This setting is ignored if you
|
||||
do not also specify <b>MaintainClients </b>= TRUE.
|
||||
If you specify FALSE (the default), <b>vlmcsd</b>(8) starts
|
||||
up as a fully "charged" KMS server. Clients
|
||||
activate immediately. <b>StartEmpty </b>= TRUE
|
||||
lets you start up <b>vlmcsd</b>(8) with an empty CMID list.
|
||||
Activation will start when the required minimum clients (25
|
||||
for Windows Client OSses, 5 for Windows Server OSses and
|
||||
Office) have registered with the KMS server. As long as the
|
||||
minimum client count has not been reached, clients end up in
|
||||
HRESULT 0xC004F038 "The count reported by your Key
|
||||
Management Service (KMS) is insufficient. Please contact
|
||||
your system administrator". You may use <b>vlmcs</b>(1)
|
||||
or another KMS client emulator to "charge"
|
||||
<b>vlmcsd</b>(8). Setting this parameter to TRUE does not
|
||||
improve emulator detection prevention. It’s primary
|
||||
purpose is to help developers of KMS clients to test
|
||||
"charging" a KMS server.</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>ActivationInterval</b></p>
|
||||
|
||||
<p style="margin-left:22%;">This is the same as specifying
|
||||
<b>-A</b> on the command line. See <b>vlmcsd</b>(8) for
|
||||
details. The default is 2 hours. Example: ActivationInterval
|
||||
= 1h</p>
|
||||
details. The default is 2 hours. Example:
|
||||
ActivationInterval = 1h</p>
|
||||
|
||||
<p style="margin-left:11%;"><b>RenewalInterval</b></p>
|
||||
|
||||
@ -451,37 +639,19 @@ Windows version of vlmcsd. See <b>-g</b> in
|
||||
by sending SIGHUP to vlmcsd.</p></td></tr>
|
||||
</table>
|
||||
|
||||
<p style="margin-left:11%;"><b>Windows</b></p>
|
||||
<p style="margin-left:11%;"><b><csvlk-name></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 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>
|
||||
and <i>HwId</i> for activations with
|
||||
<b><csvlk-name></b>. If specified,
|
||||
<b>RandomizationLevel</b> for the <b><csvlk-name></b>
|
||||
will be ignored. With the default vlmcsd.kmd database you
|
||||
can use the following <b><csvlk-name></b>s: Windows,
|
||||
Office2010, Office2013, Office2016, Office2019 and
|
||||
WinChinaGov. While vlmcsd is compatible with older
|
||||
databases, you must use at least database version 1.6 for
|
||||
this feature to work.</p>
|
||||
|
||||
<h2>VALID EPIDS
|
||||
<a name="VALID EPIDS"></a>
|
||||
@ -540,8 +710,8 @@ contributions from DougQaid.</p>
|
||||
|
||||
|
||||
<p style="margin-left:11%; margin-top: 1em">Thanks to
|
||||
CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad,
|
||||
Ratiborus, ...</p>
|
||||
abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87,
|
||||
qad, Ratiborus, ...</p>
|
||||
|
||||
<h2>SEE ALSO
|
||||
<a name="SEE ALSO"></a>
|
||||
|
Binary file not shown.
@ -17,7 +17,7 @@ DESCRIPTION
|
||||
option on the vlmcsd command line to use an ini file. There is no
|
||||
default name or default location for the ini file.
|
||||
|
||||
Everything, that can be configured in the ini file, may also be speci‐
|
||||
Everything, that can be configured in the ini file, may also be speci-
|
||||
fied on the command line. Any configuration option specified on the
|
||||
command line takes precedence over the respective configuration line in
|
||||
the ini file.
|
||||
@ -33,16 +33,16 @@ DESCRIPTION
|
||||
Differences between command line and configuration file
|
||||
|
||||
If you specify an illegal option or option argument on the command
|
||||
line, vlmcsd displays help and exits. If you specify an incorrect key‐
|
||||
line, vlmcsd displays help and exits. If you specify an incorrect key-
|
||||
word or argument in the ini file, vlmcsd displays a warning with some
|
||||
information, ignores the respective line and continues. This is inten‐
|
||||
tional and prevents vlmcsd from aborting after a SIGHUP if the configu‐
|
||||
information, ignores the respective line and continues. This is inten-
|
||||
tional and prevents vlmcsd from aborting after a SIGHUP if the configu-
|
||||
ration was modified incorrectly.
|
||||
|
||||
|
||||
SYNTAX
|
||||
vlmcsd.ini is a UTF-8 encoded text file with each line being in the
|
||||
format keyword = argument. The keyword is not case-sensitive. The argu‐
|
||||
format keyword = argument. The keyword is not case-sensitive. The argu-
|
||||
ment is treated literally. It is neither required nor allowed to
|
||||
enclose the argument in any form of quote characters except when quote
|
||||
characters are part of the argument itself. Whitespace characters are
|
||||
@ -54,14 +54,14 @@ SYNTAX
|
||||
|
||||
Lines, that start with '#' or ';' are treated as comments. Empty lines
|
||||
are ignored as well. If a keyword is repeated in another line, vlmcsd
|
||||
will use the argument of the last occurence of the keyword. An excep‐
|
||||
will use the argument of the last occurence of the keyword. An excep-
|
||||
tion to this is the Listen keyword which can be specified multiple
|
||||
times and causes vlmcsd to listen on more than one IP address and/or
|
||||
port.
|
||||
|
||||
Some arguments are binary arguments that need to be either TRUE or
|
||||
FALSE. You can use "Yes", "On" or "1" as an alias for TRUE and "No",
|
||||
"Off" or "0" as an alias for FALSE. Binary arguments are case-insensi‐
|
||||
"Off" or "0" as an alias for FALSE. Binary arguments are case-insensi-
|
||||
tive.
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@ KEYWORDS
|
||||
was compiled):
|
||||
|
||||
|
||||
Listen This defines on what combinations of IP addresses and ports vlm‐
|
||||
Listen This defines on what combinations of IP addresses and ports vlm-
|
||||
csd should listen. Listen can be specified more than once. The
|
||||
argument has the form ipaddress[:port]. If you omit the port,
|
||||
the default port of 1688 is used. If the ipaddress contains
|
||||
@ -80,7 +80,7 @@ KEYWORDS
|
||||
which means listen to all IPv4 and all IPv6 addresses. See the
|
||||
-L option in vlmcsd(8) for more info about the syntax. If you
|
||||
use -L or -P on the command line, all Listen keywords in the ini
|
||||
file will be ignored. The Listen keyword cannot be used if vlm‐
|
||||
file will be ignored. The Listen keyword cannot be used if vlm-
|
||||
csd has been compiled to use Microsoft RPC (Windows and Cygwin
|
||||
only) or simple sockets.
|
||||
|
||||
@ -91,7 +91,7 @@ KEYWORDS
|
||||
Listen = [fe80::1721:12ff:fe81:d36b%eth0]:1688
|
||||
|
||||
|
||||
Port Can only be used if vlmcsd has been compiled to use simple sock‐
|
||||
Port Can only be used if vlmcsd has been compiled to use simple sock-
|
||||
ets or on Windows and Cygwin if vlmcsd(8) has been compiled to
|
||||
use Microsoft RPC. Otherwise you must use Listen instead. Causes
|
||||
vlmcsd to listen on that port instead of 1688.
|
||||
@ -115,7 +115,7 @@ KEYWORDS
|
||||
0 = No protection (default)
|
||||
1 = Listen on private IP addresses only (plus those specified by
|
||||
one or more Listen statements)
|
||||
2 = Disconnect clients with public IP addresses without activat‐
|
||||
2 = Disconnect clients with public IP addresses without activat-
|
||||
ing
|
||||
3 = Combines 1 and 2
|
||||
|
||||
@ -123,6 +123,94 @@ KEYWORDS
|
||||
line option -o.
|
||||
|
||||
|
||||
VPN Has to be in the form vpn-adapter-name[=ipv4-address][/cidr-
|
||||
mask][:dhcp-lease-duration].
|
||||
|
||||
Enables a compatible VPN adapter to create additional local IPv4
|
||||
addresses (like 127.0.0.1) that appear as remote IPv4 addresses
|
||||
to the system. This allows product activation using a local
|
||||
instance of vlmcsd. This feature is only available in Windows
|
||||
and Cygwin builds of vlmcsd since it is not of any use on other
|
||||
operating systems. Compatible VPN adapters are Tap-windows ver-
|
||||
sion 8.2 or higher (from OpenVPN) and the TeamViewer VPN
|
||||
adapter. There is a special vpn-adapter-name. A single period
|
||||
(.) instructs vlmcsd to use the first available compatible VPN
|
||||
adapter. The vpn-adapter-name is not case-sensitive. If the vpn-
|
||||
adapter-name contains spaces (e.g. Ethernet 3), do not enclose
|
||||
it in quotes.
|
||||
|
||||
The default ipv4-address is 10.10.10.9 and the default cidr-mask
|
||||
is 30. If you are using the default values, your VPN adapter
|
||||
uses an IPv4 address of 10.10.10.9 and you can set your activa-
|
||||
tion client to use the easy to remember address 10.10.10.10
|
||||
(e.g. slmgr /skms 10.10.10.10 or cscript ospp.vbs
|
||||
/sethst:10.10.10.10).
|
||||
|
||||
The dhcp-lease-duration is a number optionally followed by s, m,
|
||||
h, d or w to indicate seconds, minutes, hours, days or weeks.
|
||||
The default dhcp-lease-duration is 1d (one day). It is normally
|
||||
not required to change this value.
|
||||
|
||||
It is advised not to manually configure your OpenVPN TAP or
|
||||
TeamViewer VPN adapter in "Network Connections". If you set the
|
||||
IPv4 configuration manually anyway, the IPv4 address and the
|
||||
subnet mask must match the VPN= directive. It is safe leave the
|
||||
IPv4 configuration to automatic (DHCP). vlmcsd will wait up to
|
||||
four seconds for the DHCP configuration to complete before bind-
|
||||
ing to and listenin on any interfaces.
|
||||
|
||||
You should be aware that only one program can use a VPN adapter
|
||||
at a time. If you use the TeamViewer VPN adapter for example,
|
||||
you will not be able to use the VPN feature of TeamViewer as
|
||||
long as vlmcsd is running. The same applies to OpenVPN TAP
|
||||
adapters that are in use by other programs (for example OpenVPN,
|
||||
QEMU, Ratiborus VM, aiccu, etc.). The best way to avoid con-
|
||||
flicts is to install Tap-Windows from OpenVPN, cd to C:\Program
|
||||
Files\TAP-Windows\bin and run addtap.bat to install an addi-
|
||||
tional TAP adapter. Go to "Network Connections" and rename the
|
||||
new adapter to "vlmcsd" and specify VPN=vlmcsd to use it.
|
||||
|
||||
|
||||
ExitLevel
|
||||
Can be either 0 (the default) or 1. Controls under what circum-
|
||||
stances vlmcsd will exit. Using the default of 0 vlmcsd stays
|
||||
active as long as it can perform some useful operations. If vlm-
|
||||
csd is run by any form of a watchdog, e.g. NT service manager
|
||||
(Windows), systemd (Linux) or launchd (Mac OS / iOS), it may be
|
||||
desirable to end vlmcsd and let the watchdog restart it. This is
|
||||
especially true if some pre-requisites are not yet met but will
|
||||
be some time later, e.g. network is not yet fully setup.
|
||||
|
||||
By using ExitLevel = 0 vlmcsd will
|
||||
|
||||
exit if none of the listening sockets specified with -L can
|
||||
be used. It continues if at least one socket can be setup
|
||||
for listening.
|
||||
|
||||
exit any TAP mirror thread (Windows version only) if there
|
||||
is an error condition while reading or writing from or to
|
||||
the VPN adapter but continue to work without utilizing a
|
||||
VPN adapter.
|
||||
|
||||
By using ExitLevel = 1 vlmcsd will
|
||||
|
||||
exit if not all listening sockets specified with -L can be
|
||||
used.
|
||||
|
||||
exit completely if there is a problem with a VPN adapter it
|
||||
is using. This may happen for instance if the VPN adapter
|
||||
has been disabled using "Control Panel - Network - Adapter
|
||||
Settings" while vlmcsd is using it.
|
||||
|
||||
|
||||
Please note that ExitLevel = 1 is kind of a workaround option.
|
||||
While it may help under some circumstances, it is better to
|
||||
solve the problem at its origin, e.g. properly implementing
|
||||
dependencies in your startup script to ensure all network inter-
|
||||
faces and the VPN adapter you will use are completely setup
|
||||
before you start vlmcsd.
|
||||
|
||||
|
||||
UseNDR64
|
||||
Can be TRUE or FALSE. Specifies whether you want to use the
|
||||
NDR64 transfer syntax. See options -n0 and -n1 in vlmcsd(8). The
|
||||
@ -131,12 +219,12 @@ KEYWORDS
|
||||
|
||||
UseBTFN
|
||||
Can be TRUE or FALSE. Specifies whether you want to use bind
|
||||
time feature negotiation in RPC. See options -b0 and -b1 in vlm‐
|
||||
time feature negotiation in RPC. See options -b0 and -b1 in vlm-
|
||||
csd(8). The default is TRUE.
|
||||
|
||||
|
||||
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
|
||||
default randomization level is 1. A RandomizationLevel of 2 is
|
||||
not recommended and should be treated as a debugging level.
|
||||
@ -145,14 +233,22 @@ KEYWORDS
|
||||
LCID Use a specific culture id (LCID) even if the ePID is randomized.
|
||||
The argument 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.micro‐
|
||||
list of assigned LCIDs can be found at http://msdn.micro-
|
||||
soft.com/en-us/goglobal/bb964664.aspx. On the command line you
|
||||
control this setting with option -C.
|
||||
|
||||
|
||||
HostBuild
|
||||
Use a specific host build number in the ePID even if it is ran-
|
||||
domized. The argument must be a number between 1 and 65535.
|
||||
While you can use any number you should only use build numbers
|
||||
that a released build numbers of Windows Servers, e.g. 17763 for
|
||||
Windows Server 2019.
|
||||
|
||||
|
||||
MaxWorkers
|
||||
The argument specifies the maximum number of worker processes or
|
||||
threads that will be used to serve activation requests concur‐
|
||||
threads that will be used to serve activation requests concur-
|
||||
rently. This is the same as specifying -m on the command line.
|
||||
Minimum is 1. The maximum is platform specific and is at least
|
||||
32767 but is likely to be greater on most systems. The default
|
||||
@ -160,13 +256,13 @@ KEYWORDS
|
||||
|
||||
|
||||
ConnectionTimeout
|
||||
Used to control when the vlmcsd disconnects idle TPC connec‐
|
||||
Used to control when the vlmcsd disconnects idle TPC connec-
|
||||
tions. The default is 30 seconds. This is the same setting as -t
|
||||
on the command line.
|
||||
|
||||
|
||||
DisconnectClientsImmediately
|
||||
Set this to TRUE to disconnect a client after it got an activa‐
|
||||
Set this to TRUE to disconnect a client after it got an activa-
|
||||
tion response regardless whether a timeout has occured or not.
|
||||
The default is FALSE. Setting this to TRUE is non-standard
|
||||
behavior. Use only if you are experiencing DoS or DDoS attacks.
|
||||
@ -189,12 +285,25 @@ KEYWORDS
|
||||
same as specifying -l on the command line.
|
||||
|
||||
|
||||
KmsData
|
||||
Use a KMS data file. The argument is the full pathname of a KMS
|
||||
data file. By default vlmcsd only contains the minimum product
|
||||
data that is required to perform all operations correctly. You
|
||||
may use a more complete KMS data file that contains all detailed
|
||||
product names. This is especially useful if you are logging KMS
|
||||
requests. If you don't log, there is no need to load an external
|
||||
KMS data file.
|
||||
|
||||
You may use KmsData = - to prevent the default KMS data file to
|
||||
be loaded.
|
||||
|
||||
|
||||
LogDateAndTime
|
||||
Can be TRUE or FALSE. The default is TRUE. If set to FALSE, log‐
|
||||
Can be TRUE or FALSE. The default is TRUE. If set to FALSE, log-
|
||||
ging output does not include date and time. This is useful if
|
||||
you log to stdout(3) which is redirected to another logging
|
||||
mechanism that already includes date and time in its output, for
|
||||
instance systemd-journald(8). If you log to syslog(3), LogDate‐
|
||||
instance systemd-journald(8). If you log to syslog(3), LogDate-
|
||||
AndTime is ignored and date and time will never be included in
|
||||
the output sent to syslog(3). Using the command line you control
|
||||
this setting with options -T0 and -T1.
|
||||
@ -203,7 +312,7 @@ KEYWORDS
|
||||
LogVerbose
|
||||
Set this to either TRUE or FALSE. The default is FALSE. If set
|
||||
to TRUE, more details of each activation will be logged. You use
|
||||
-v and -q in the command line to control this setting. LogVer‐
|
||||
-v and -q in the command line to control this setting. LogVer-
|
||||
bose has an effect only if you specify a log file or redirect
|
||||
logging to stdout(3).
|
||||
|
||||
@ -224,36 +333,76 @@ KEYWORDS
|
||||
|
||||
The SKU ID is not checked. Like a genuine KMS server vlmcsd
|
||||
activates a product that has a random or unknown SKU ID. If you
|
||||
select 1 or 3, vlmcsd also checks the Application ID for cor‐
|
||||
rectness. If Microsoft introduces a new KMS ID for a new prod‐
|
||||
uct, you cannot activate it if you used 1 or 3 until a new ver‐
|
||||
select 1 or 3, vlmcsd also checks the Application ID for cor-
|
||||
rectness. If Microsoft introduces a new KMS ID for a new prod-
|
||||
uct, you cannot activate it if you used 1 or 3 until a new ver-
|
||||
sion of vlmcsd is available.
|
||||
|
||||
|
||||
CheckClientTime
|
||||
Can be TRUE or FALSE. The default is FALSE. If you set this to
|
||||
TRUE vlmcsd(8) checks if the client time differs no more than
|
||||
four hours from the system time. This is useful to prevent emu‐
|
||||
four hours from the system time. This is useful to prevent emu-
|
||||
lator detection. A client that tries to detect an emulator could
|
||||
simply send two subsequent request with two time stamps that
|
||||
differ more than four hours from each other. If both requests
|
||||
succeed, the server is an emulator. If you set this to TRUE on a
|
||||
system with no reliable time source, activations will fail. It
|
||||
is ok to set the correct system time after you started vlm‐
|
||||
is ok to set the correct system time after you started vlm-
|
||||
csd(8).
|
||||
|
||||
|
||||
MaintainClients
|
||||
Can be TRUE or FALSE (the default). Disables (FALSE) or enables
|
||||
(TRUE) maintaining a list of client machine IDs (CMIDs). TRUE is
|
||||
useful to prevent emulator detection. By maintaing a CMID list,
|
||||
vlmcsd(8) reports current active clients exactly like a genuine
|
||||
KMS emulator. This includes bug compatibility to the extent that
|
||||
you can permanently kill a genuine KMS emulator by sending an
|
||||
"overcharge request" with a required client count of 376 or more
|
||||
and then request activation for 671 clients. vlmcsd(8) can be
|
||||
reset from this condition by restarting it. If FALSE is used,
|
||||
vlmcsd(8) reports current active clients as good as possible. If
|
||||
no client sends an "overcharge request", it is not possible to
|
||||
detect vlmcsd(8) as an emulator with MaintainClients = FALSE.
|
||||
Maintaining clients requires the allocation of a buffer that is
|
||||
about 50 kB in size. On hardware with few memory resources use
|
||||
it only if you really need it.
|
||||
|
||||
If you start vlmcsd(8) from an internet superserver, this set-
|
||||
ting cannot be used. Since vlmcsd(8) exits after each activa-
|
||||
tion, it cannot maintain any state in memory.
|
||||
|
||||
|
||||
StartEmpty
|
||||
This setting is ignored if you do not also specify Maintain-
|
||||
Clients = TRUE. If you specify FALSE (the default), vlmcsd(8)
|
||||
starts up as a fully "charged" KMS server. Clients activate
|
||||
immediately. StartEmpty = TRUE lets you start up vlmcsd(8) with
|
||||
an empty CMID list. Activation will start when the required min-
|
||||
imum clients (25 for Windows Client OSses, 5 for Windows Server
|
||||
OSses and Office) have registered with the KMS server. As long
|
||||
as the minimum client count has not been reached, clients end up
|
||||
in HRESULT 0xC004F038 "The count reported by your Key Management
|
||||
Service (KMS) is insufficient. Please contact your system admin-
|
||||
istrator". You may use vlmcs(1) or another KMS client emulator
|
||||
to "charge" vlmcsd(8). Setting this parameter to TRUE does not
|
||||
improve emulator detection prevention. It's primary purpose is
|
||||
to help developers of KMS clients to test "charging" a KMS
|
||||
server.
|
||||
|
||||
|
||||
ActivationInterval
|
||||
This is the same as specifying -A on the command line. See vlm‐
|
||||
csd(8) for details. The default is 2 hours. Example: Activation‐
|
||||
This is the same as specifying -A on the command line. See vlm-
|
||||
csd(8) for details. The default is 2 hours. Example: Activation-
|
||||
Interval = 1h
|
||||
|
||||
|
||||
RenewalInterval
|
||||
This is the same as specifying -R on the command line. See vlm‐
|
||||
csd(8) for details. The default is 7 days. Example: RenewalIn‐
|
||||
This is the same as specifying -R on the command line. See vlm-
|
||||
csd(8) for details. The default is 7 days. Example: RenewalIn-
|
||||
terval = 3d. Please note that the KMS client decides itself when
|
||||
to renew activation. Even though vlmcsd sends the renewal inter‐
|
||||
to renew activation. Even though vlmcsd sends the renewal inter-
|
||||
val you specify, it is no more than some kind of recommendation
|
||||
to the client. Older KMS clients did follow the recommendation
|
||||
from a KMS server or emulator. Newer clients do not.
|
||||
@ -273,36 +422,23 @@ KEYWORDS
|
||||
Group Run vlmcsd as another, preferrably less privileged, group. The
|
||||
argument 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 creden‐
|
||||
the security context of a process without providing any creden-
|
||||
tials (a password in most cases). On most unixoid OSses 'root'
|
||||
is the only user who has these privileges in the default config‐
|
||||
is the only user who has these privileges in the default config-
|
||||
uration. This setting is not available in the native Windows
|
||||
version of vlmcsd. See -g in vlmcsd(8). This setting cannot be
|
||||
changed on the fly by sending SIGHUP to vlmcsd.
|
||||
|
||||
|
||||
Windows
|
||||
<csvlk-name>
|
||||
The argument has the form ePID [ / HwId ]. Always use ePID and
|
||||
HwId for Windows activations. If specified, RandomizationLevel
|
||||
for Windows activitations will be ignored.
|
||||
|
||||
|
||||
Office2010
|
||||
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.
|
||||
|
||||
|
||||
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.
|
||||
HwId for activations with <csvlk-name>. If specified, Randomiza-
|
||||
tionLevel for the <csvlk-name> will be ignored. With the default
|
||||
vlmcsd.kmd database you can use the following <csvlk-name>s:
|
||||
Windows, Office2010, Office2013, Office2016, Office2019 and
|
||||
WinChinaGov. While vlmcsd is compatible with older databases,
|
||||
you must use at least database version 1.6 for this feature to
|
||||
work.
|
||||
|
||||
|
||||
VALID EPIDS
|
||||
@ -320,7 +456,7 @@ VALID EPIDS
|
||||
|
||||
If you use non-ASCII characters in your ePID (you shouldn't do anyway),
|
||||
these must be in UTF-8 format. This is especially important when you
|
||||
run vlmcsd on Windows or cygwin because UTF-8 is not the default encod‐
|
||||
run vlmcsd on Windows or cygwin because UTF-8 is not the default encod-
|
||||
ing for most editors.
|
||||
|
||||
If you are specifying an optional HWID it follows the same syntax as in
|
||||
@ -333,13 +469,13 @@ FILES
|
||||
|
||||
|
||||
AUTHOR
|
||||
vlmcsd(8) was written by crony12, Hotbird64 and vityan666. With contri‐
|
||||
vlmcsd(8) was written by crony12, Hotbird64 and vityan666. With contri-
|
||||
butions from DougQaid.
|
||||
|
||||
|
||||
CREDITS
|
||||
Thanks to CODYQX4, deagles, eIcn, mikmik38, nosferati87, qad, Rati‐
|
||||
borus, ...
|
||||
Thanks to abbodi1406, CODYQX4, deagles, eIcn, mikmik38, nosferati87,
|
||||
qad, Ratiborus, ...
|
||||
|
||||
|
||||
SEE ALSO
|
||||
@ -347,4 +483,4 @@ SEE ALSO
|
||||
|
||||
|
||||
|
||||
Hotbird64 October 2016 VLMCSD.INI(5)
|
||||
Hotbird64 October 2018 VLMCSD.INI(5)
|
||||
|
@ -17,9 +17,9 @@ DESCRIPTION
|
||||
the combined binary is significantly smaller than the sum of both
|
||||
files.
|
||||
|
||||
vlmcsdmulti should not be called directly. Instead you may want to cre‐
|
||||
vlmcsdmulti should not be called directly. Instead you may want to cre-
|
||||
ate symbolic links named vlmcs and vlmcsd which point to vlmcsdmulti.
|
||||
You then use these links to call the respective program. You may how‐
|
||||
You then use these links to call the respective program. You may how-
|
||||
ever call vlmcsdmulti followed by a complete command line of either
|
||||
vlmcs(1) or vlmcsd(8).
|
||||
|
||||
@ -51,7 +51,7 @@ DESCRIPTION
|
||||
Memory considerations
|
||||
While you definitely save disk space by using vlmcsdmulti you will need
|
||||
more RAM when you run vlmcsdmulti as a daemon (KMS server) instead of
|
||||
vlmcsd. You should consider running vlmcsdmulti via an internet super‐
|
||||
vlmcsd. You should consider running vlmcsdmulti via an internet super-
|
||||
server like inetd(8) or xinetd(8).
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@ AUTHOR
|
||||
|
||||
|
||||
CREDITS
|
||||
Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos‐
|
||||
Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos-
|
||||
ferati87, qad, vityan666, ...
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!-- Creator : groff version 1.22.3 -->
|
||||
<!-- CreationDate: Fri Oct 21 03:17:10 2016 -->
|
||||
<!-- CreationDate: Sat Oct 20 09:49:39 2018 -->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
|
Binary file not shown.
@ -17,9 +17,9 @@ DESCRIPTION
|
||||
the combined binary is significantly smaller than the sum of both
|
||||
files.
|
||||
|
||||
vlmcsdmulti should not be called directly. Instead you may want to cre‐
|
||||
vlmcsdmulti should not be called directly. Instead you may want to cre-
|
||||
ate symbolic links named vlmcs and vlmcsd which point to vlmcsdmulti.
|
||||
You then use these links to call the respective program. You may how‐
|
||||
You then use these links to call the respective program. You may how-
|
||||
ever call vlmcsdmulti followed by a complete command line of either
|
||||
vlmcs(1) or vlmcsd(8).
|
||||
|
||||
@ -51,7 +51,7 @@ DESCRIPTION
|
||||
Memory considerations
|
||||
While you definitely save disk space by using vlmcsdmulti you will need
|
||||
more RAM when you run vlmcsdmulti as a daemon (KMS server) instead of
|
||||
vlmcsd. You should consider running vlmcsdmulti via an internet super‐
|
||||
vlmcsd. You should consider running vlmcsdmulti via an internet super-
|
||||
server like inetd(8) or xinetd(8).
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@ AUTHOR
|
||||
|
||||
|
||||
CREDITS
|
||||
Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos‐
|
||||
Thanks to CODYQX4, crony12, deagles, DougQaid, eIcn, mikmik38, nos-
|
||||
ferati87, qad, vityan666, ...
|
||||
|
||||
|
||||
|
@ -62,7 +62,7 @@ DNS_PARSER ?= OS
|
||||
|
||||
# You should supply your own version string here
|
||||
|
||||
VLMCSD_VERSION ?= $(shell test -d ../.svn && echo svn`svnversion`)
|
||||
VLMCSD_VERSION ?= $(shell test -d ../.git && git describe)
|
||||
|
||||
FEATURES ?= full
|
||||
VERBOSE ?= NO
|
||||
@ -188,7 +188,13 @@ endif
|
||||
|
||||
ifneq ($(NOLIBS),1)
|
||||
ifeq ($(MINGW),1)
|
||||
BASELDFLAGS += -lws2_32 -liphlpapi
|
||||
BASELDFLAGS += -lws2_32 -liphlpapi -lshlwapi
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(NOLIBS),1)
|
||||
ifeq ($(CYGWIN),1)
|
||||
BASELDFLAGS += -liphlpapi
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -251,14 +257,14 @@ else
|
||||
STRIPFLAGS += -s
|
||||
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_HELP -DNO_CUSTOM_INTERVALS -DNO_PID_FILE -DNO_USER_SWITCH -DNO_VERBOSE_LOG -DNO_LIMIT -DNO_VERSION_INFORMATION -DNO_PRIVATE_IP_DETECT -UNO_SOCKETS -USIMPLE_RPC
|
||||
LIBRARY_CFLAGS = -DSIMPLE_SOCKETS -DNO_TIMEOUT -DNO_SIGHUP -DNO_CL_PIDS -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 -DNO_STRICT_MODES -DNO_CLIENT_LIST -DNO_TAP -UNO_SOCKETS -USIMPLE_RPC
|
||||
|
||||
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_CUSTOM_INTERVALS -DNO_PID_FILE -DNO_VERBOSE_LOG -DNO_VERSION_INFORMATION
|
||||
else ifeq ($(FEATURES), autostart)
|
||||
BASECFLAGS += -DNO_HELP -DNO_VERSION_INFORMATION
|
||||
else ifeq ($(FEATURES), minimum)
|
||||
BASECFLAGS += -DSIMPLE_RPC -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
|
||||
BASECFLAGS += -DSIMPLE_RPC -DSIMPLE_SOCKETS -DNO_TIMEOUT -DNO_SIGHUP -DNO_CL_PIDS -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 -DNO_STRICT_MODES -DNO_TAP -DNO_CLIENT_LIST -DUNSAFE_DATA_LOAD -DNO_EXTERNAL_DATA -UFULL_INTERNAL_DATA -U_PEDANTIC
|
||||
else ifeq ($(FEATURES), most)
|
||||
BASECFLAGS += -DNO_SIGHUP -DNO_PID_FILE -DNO_LIMIT
|
||||
else ifeq ($(FEATURES), inetd)
|
||||
@ -271,6 +277,10 @@ ifdef INI
|
||||
BASECFLAGS += -DINI_FILE=\"$(INI)\"
|
||||
endif
|
||||
|
||||
ifdef DATA
|
||||
BASECFLAGS += -DDATA_FILE=\"$(DATA)\"
|
||||
endif
|
||||
|
||||
ifeq ($(NO_GETIFADDRS), 1)
|
||||
BASECFLAGS += -DNO_GETIFADDRS
|
||||
endif
|
||||
@ -366,17 +376,17 @@ ifdef CAT
|
||||
endif
|
||||
|
||||
SRCS = crypto.c kms.c endian.c output.c shared_globals.c helpers.c
|
||||
HEADERS = $(CONFIG) types.h rpc.h vlmcsd.h endian.h crypto.h kms.h network.h output.h shared_globals.h vlmcs.h helpers.h
|
||||
HEADERS = $(CONFIG) types.h rpc.h vlmcsd.h endian.h crypto.h kms.h network.h output.h shared_globals.h vlmcs.h helpers.h kmsdata.h
|
||||
DEPS = $(patsubst %,../build/%,$(MULTI_SRCS:.c=.d))
|
||||
|
||||
VLMCSD_SRCS = vlmcsd.c $(SRCS)
|
||||
VLMCSD_SRCS = vlmcsd.c kmsdata.c $(SRCS)
|
||||
VLMCSD_OBJS = $(patsubst %,../build/%,$(VLMCSD_SRCS:.c=.o))
|
||||
|
||||
VLMCS_SRCS = vlmcs.c $(SRCS)
|
||||
VLMCS_SRCS = vlmcs.c kmsdata-full.c $(SRCS)
|
||||
VLMCS_OBJS = $(patsubst %,../build/%,$(VLMCS_SRCS:.c=.o))
|
||||
|
||||
MULTI_SRCS = vlmcsd.c vlmcs.c vlmcsdmulti.c $(SRCS)
|
||||
MULTI_OBJS = $(patsubst %,../build/%,$(SRCS:.c=.o)) ../build/vlmcsd-m.o ../build/vlmcs-m.o ../build/vlmcsdmulti-m.o
|
||||
MULTI_SRCS = vlmcsd.c vlmcs.c vlmcsdmulti.c kmsdata-full.c $(SRCS)
|
||||
MULTI_OBJS = $(patsubst %,../build/%,$(SRCS:.c=.o)) ../build/kmsdata-full.o ../build/vlmcsd-m.o ../build/vlmcs-m.o ../build/vlmcsdmulti-m.o
|
||||
|
||||
DLL_SRCS = libkms.c vlmcs.c $(SRCS)
|
||||
DLL_OBJS = $(patsubst %,../build/%,$(DLL_SRCS:.c=-l.o))
|
||||
@ -437,9 +447,9 @@ endif
|
||||
endif
|
||||
|
||||
ifeq "$(WIN)" "1"
|
||||
VLMCSD_SRCS += ntservice.c
|
||||
MULTI_SRCS += ntservice.c
|
||||
../build/MULTI_OBJS += ntservice.o
|
||||
VLMCSD_SRCS += ntservice.c wintap.c
|
||||
MULTI_SRCS += ntservice.c wintap.c
|
||||
MULTI_OBJS += ../build/ntservice.o ../build/wintap.o
|
||||
endif
|
||||
|
||||
ifeq ($(CRYPTO), openssl_with_aes)
|
||||
|
172
src/config.h
172
src/config.h
@ -21,7 +21,7 @@
|
||||
|
||||
#ifndef VERSION
|
||||
/*
|
||||
* Define your own version identifier here, e.g. '#define VERSION "my vlmcsd based on svn560"'
|
||||
* Define your own version identifier here, e.g. '#define VERSION "my vlmcsd based on 1103"'
|
||||
*/
|
||||
|
||||
#define VERSION "private build"
|
||||
@ -31,29 +31,9 @@
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Define default ePIDs and HWID here. Preferrably grab ePIDs and HWID
|
||||
* from a real KMS server.
|
||||
*/
|
||||
|
||||
#ifndef EPID_WINDOWS
|
||||
#define EPID_WINDOWS "03612-00206-471-109239-03-1033-14393.0000-2932016"
|
||||
#endif
|
||||
|
||||
#ifndef EPID_OFFICE2010
|
||||
#define EPID_OFFICE2010 "03612-00096-199-390352-03-1033-14393.0000-2932016"
|
||||
#endif
|
||||
|
||||
#ifndef EPID_OFFICE2013
|
||||
#define EPID_OFFICE2013 "03612-00206-234-938378-03-1033-14393.0000-2932016"
|
||||
#endif
|
||||
|
||||
#ifndef EPID_OFFICE2016
|
||||
#define EPID_OFFICE2016 "03612-00206-437-305903-03-1033-14393.0000-2932016"
|
||||
#endif
|
||||
|
||||
#ifndef HWID // HwId from the Ratiborus VM
|
||||
#define HWID 0x36, 0x4F, 0x46, 0x3A, 0x88, 0x63, 0xD3, 0x5F
|
||||
#define HWID 0x3A, 0x1C, 0x04, 0x96, 0x00, 0xB6, 0x00, 0x76
|
||||
#endif
|
||||
|
||||
|
||||
@ -74,10 +54,11 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#ifndef INI_FILE
|
||||
/*
|
||||
* Uncomment and customize the following line if you want vlmcsd to look for an ini file
|
||||
* at a default location
|
||||
* at a default location.
|
||||
*/
|
||||
|
||||
//#define INI_FILE "/etc/vlmcsd.ini"
|
||||
@ -86,6 +67,19 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef DATA_FILE
|
||||
/*
|
||||
* Uncomment and customize the following line if you want vlmcsd to look for a KMS data file
|
||||
* at a custom default location.
|
||||
*/
|
||||
|
||||
//#define DATA_FILE "/etc/vlmcsd.kmd"
|
||||
|
||||
#endif // DATA_FILE
|
||||
|
||||
|
||||
/*
|
||||
* ----------------------------------------------------------------------------------------
|
||||
* Troubleshooting options. Please note that disabling features may also help troubleshooting.
|
||||
@ -165,24 +159,16 @@
|
||||
/*
|
||||
* Cygwin, Linux, Android, NetBSD, DragonflyBSD:
|
||||
* Do not rely on a properly mounted proc filesystem and use the less reliable
|
||||
* argv[0] to determine the program's executable name when restarting vlmcsd
|
||||
* by sending a SIGHUP signal. Use only if absolutely necessary (very old versions
|
||||
* of these OSses).
|
||||
* argv[0] to determine the program's executable name.
|
||||
* Use only if absolutely necessary (very old versions of these OSses).
|
||||
*
|
||||
* FreeBSD:
|
||||
* Do not use sysctl and but the less reliable
|
||||
* argv[0] to determine the program's executable name when restarting vlmcsd
|
||||
* by sending a SIGHUP signal. Use only if absolutely necessary (very old FreeBSD).
|
||||
* Minix, OpenBSD:
|
||||
* This option has no effect since the OS always must use the less reliable argv[0].
|
||||
*
|
||||
* OpenBSD:
|
||||
* This option has no effect since OpenBSD always must use the less reliable argv[0].
|
||||
*
|
||||
* Mac OS X, Solaris:
|
||||
* FreeBSD, Mac OS X, iOS, Solaris, Windows:
|
||||
* This option is not neccessary (and has no effect) since these OSses provide
|
||||
* a reliable way to determine the executable name.
|
||||
*
|
||||
* Windows:
|
||||
* This option is not used because Windows doesn't support signals.
|
||||
*/
|
||||
|
||||
//#define NO_PROCFS
|
||||
@ -195,9 +181,9 @@
|
||||
#ifndef USE_AUXV
|
||||
/*
|
||||
* Linux only:
|
||||
* Use the process' ELF aux vector to determine the executable name when restarting
|
||||
* vlmcsd by sending a SIGHUP signal. This is actually the best method but is supported
|
||||
* only with
|
||||
* Use the process' ELF aux vector to determine the executable name.
|
||||
* This is actually the best method but is supported only with
|
||||
*
|
||||
* * the musl library
|
||||
* * the glbic library 2.16 or newer
|
||||
*
|
||||
@ -205,7 +191,7 @@
|
||||
* Use it only if your system supports it and you do not plan to use the binary on older systems.
|
||||
* It won't work on debian 7 or Red Hat 6.x.
|
||||
*
|
||||
* It it safe to try this by yourself. vlmcsd won't compile if your system doesn't support it.
|
||||
* It is safe to try this by yourself. vlmcsd won't compile if your system doesn't support it.
|
||||
*/
|
||||
|
||||
//#define USE_AUXV
|
||||
@ -342,21 +328,13 @@
|
||||
|
||||
|
||||
|
||||
#ifndef FULL_INTERNAL_DATA
|
||||
/*
|
||||
* ------------------------------------------------------------------------------------------
|
||||
* Extra features not compiled by default because they are rarely needed
|
||||
* ------------------------------------------------------------------------------------------
|
||||
* Includes the full database in vlmcsd.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef INCLUDE_BETAS
|
||||
/*
|
||||
* Uncomment the following #define if you want obsolete beta/preview SKUs
|
||||
* to be included in the extended product list.
|
||||
*/
|
||||
|
||||
//#define INCLUDE_BETAS
|
||||
#endif
|
||||
//#define FULL_INTERNAL_DATA
|
||||
#endif // FULL_INTERNAL_DATA
|
||||
|
||||
|
||||
|
||||
@ -383,35 +361,14 @@
|
||||
|
||||
|
||||
|
||||
#ifndef NO_EXTENDED_PRODUCT_LIST
|
||||
#ifndef NO_TAP
|
||||
/*
|
||||
* Do not compile the extended product list. Removes the list of Activation GUIDs (aka
|
||||
* Client SKU Id, License Id) and their respective product names (e.g. Windows 8.1 Enterprise).
|
||||
*
|
||||
* This affects logging only and does not have an effect on activation itself. As long as you
|
||||
* do not also define NO_BASIC_PRODUCT_LIST more generic names like Windows 8.1 or Office 2013
|
||||
* will still be logged. Saves a lot of space without loosing much functionality.
|
||||
*
|
||||
* Do not compile support for using a VPN adapter under Windows. Disables -O command line option.
|
||||
*/
|
||||
|
||||
//#define NO_EXTENDED_PRODUCT_LIST
|
||||
//#define NO_TAP
|
||||
|
||||
#endif // NO_EXTENDED_PRODUCT_LIST
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef NO_BASIC_PRODUCT_LIST
|
||||
/*
|
||||
* Do not compile the basic product list. Removes the list KMS GUIDs (aka Server SKU Id) and their
|
||||
* respective product names. Only affects logging not activation. This has a negative impact only
|
||||
* if you activate a product that is not (yet) in the extended product list. On the other hand you
|
||||
* do not save much space by not compiling this list.
|
||||
*/
|
||||
|
||||
//#define NO_BASIC_PRODUCT_LIST
|
||||
|
||||
#endif // NO_BASIC_PRODUCT_LIST
|
||||
#endif // NO_TAP
|
||||
|
||||
|
||||
|
||||
@ -445,7 +402,7 @@
|
||||
/*
|
||||
* Disables logging completely. You can neither log to a file nor to the console. -D and -f will
|
||||
* start vlmcsd in foreground. -e will not be available. Disables ini file directive LogFile.
|
||||
* Implies NO_VERBOSE_LOG, NO_EXTENDED_PRODUCT_LIST and NO_BASIC_PRODUCT_LIST.
|
||||
* Implies NO_VERBOSE_LOG.
|
||||
*/
|
||||
|
||||
//#define NO_LOG
|
||||
@ -457,9 +414,9 @@
|
||||
|
||||
#ifndef NO_STRICT_MODES
|
||||
/*
|
||||
* Disables the product whitelisting features. Removes -K0, -K1, -K2 and -K3 from vlmcsd
|
||||
* command line options and WhitelistingLevel from INI file parameters. vlmcsd always behaves
|
||||
* as if it was started with -K0.
|
||||
* Disables emulator detection protection. Removes -M0, -M1, -E0, -E1, -K0, -K1, -K2 and -K3 from
|
||||
* vlmcsd command line options and WhitelistingLevel from INI file parameters. vlmcsd always behaves
|
||||
* as if it was started with -K0, -M0.
|
||||
*/
|
||||
|
||||
//#define NO_STRICT_MODES
|
||||
@ -469,6 +426,19 @@
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef NO_CLIENT_LIST
|
||||
/*
|
||||
* Disables the ability to maintain a list of Client Machine IDs (CMIDs). Removes -M0, -M1, -E0 and -E1
|
||||
* from vlmcsd command line options.
|
||||
*/
|
||||
|
||||
//#define NO_CLIENT_LIST
|
||||
|
||||
#endif // !NO_CLIENT_LIST
|
||||
|
||||
|
||||
|
||||
#ifndef NO_RANDOM_EPID
|
||||
/*
|
||||
* Disables the ability to generate random ePIDs. Useful if you managed to grab ePID/HWID from a
|
||||
@ -509,6 +479,46 @@
|
||||
|
||||
|
||||
|
||||
#ifndef NO_EXTERNAL_DATA
|
||||
/*
|
||||
* Disables the abilty to load external KMS data from a file. Disables command line options -j
|
||||
* and ini file parameter KmsData. Implies UNSAFE_DATA_LOAD.
|
||||
*/
|
||||
|
||||
//#define NO_EXTERNAL_DATA
|
||||
|
||||
#endif // NO_EXTERNAL_DATA
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef NO_INTERNAL_DATA
|
||||
/*
|
||||
* Compiles vlmcsd and vlmcs without an internal database. If no database is found at
|
||||
* either the default location or the file specified with command line option -j.,
|
||||
* the program exits with an error message.
|
||||
*/
|
||||
|
||||
//#define NO_INTERNAL_DATA
|
||||
|
||||
#endif // NO_INTERNAL_DATA
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef UNSAFE_DATA_LOAD
|
||||
/*
|
||||
* Does not check an external KMS data file for integrity.
|
||||
* This save some bytes but it dangerous if you load a KMS data file from an unknown source.
|
||||
*/
|
||||
|
||||
//#define UNSAFE_DATA_LOAD
|
||||
|
||||
#endif // UNSAFE_DATA_LOAD
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef NO_USER_SWITCH
|
||||
/*
|
||||
* Disables switching to another uid and/or gid after starting the program and setting up the sockets.
|
||||
|
391
src/helpers.c
391
src/helpers.c
@ -2,6 +2,10 @@
|
||||
* Helper functions used by other modules
|
||||
*/
|
||||
|
||||
//#ifndef _GNU_SOURCE
|
||||
//#define _GNU_SOURCE
|
||||
//#endif
|
||||
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
@ -13,6 +17,7 @@
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <errno.h>
|
||||
#include <libgen.h>
|
||||
#endif // _WIN32
|
||||
#ifndef _MSC_VER
|
||||
#include <getopt.h>
|
||||
@ -27,7 +32,25 @@
|
||||
#include "endian.h"
|
||||
#include "shared_globals.h"
|
||||
|
||||
#ifndef NO_INTERNAL_DATA
|
||||
#include "kmsdata.h"
|
||||
#endif // NO_INTERNAL_DATA
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <shlwapi.h>
|
||||
#endif // _WIN32
|
||||
|
||||
#if __APPLE__
|
||||
#include <mach-o/dyld.h>
|
||||
#endif // __APPLE__
|
||||
|
||||
#if (__GLIBC__ || __linux__) && defined(USE_AUXV)
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
||||
#if __FreeBSD__ || __FreeBSD_kernel__
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* UCS2 <-> UTF-8 functions
|
||||
@ -40,7 +63,7 @@ WCHAR utf8_to_ucs2_char(const unsigned char *input, const unsigned char **end_pt
|
||||
{
|
||||
*end_ptr = input;
|
||||
if (input[0] == 0)
|
||||
return ~0;
|
||||
return (WCHAR)~0;
|
||||
|
||||
if (input[0] < 0x80) {
|
||||
*end_ptr = input + 1;
|
||||
@ -50,7 +73,7 @@ WCHAR utf8_to_ucs2_char(const unsigned char *input, const unsigned char **end_pt
|
||||
if ((input[0] & 0xE0) == 0xE0) {
|
||||
|
||||
if (input[1] == 0 || input[2] == 0)
|
||||
return ~0;
|
||||
return (WCHAR)~0;
|
||||
|
||||
*end_ptr = input + 3;
|
||||
|
||||
@ -62,7 +85,7 @@ WCHAR utf8_to_ucs2_char(const unsigned char *input, const unsigned char **end_pt
|
||||
|
||||
if ((input[0] & 0xC0) == 0xC0) {
|
||||
if (input[1] == 0)
|
||||
return ~0;
|
||||
return (WCHAR)~0;
|
||||
|
||||
*end_ptr = input + 2;
|
||||
|
||||
@ -70,7 +93,7 @@ WCHAR utf8_to_ucs2_char(const unsigned char *input, const unsigned char **end_pt
|
||||
LE16((input[0] & 0x1F) << 6 |
|
||||
(input[1] & 0x3F));
|
||||
}
|
||||
return ~0;
|
||||
return (WCHAR)~0;
|
||||
}
|
||||
|
||||
// Convert one character from UCS2 to UTF-8
|
||||
@ -87,8 +110,8 @@ int ucs2_to_utf8_char(const WCHAR ucs2_le, char *utf8)
|
||||
}
|
||||
|
||||
if (ucs2 >= 0x80 && ucs2 < 0x800) {
|
||||
utf8[0] = (ucs2 >> 6) | 0xC0;
|
||||
utf8[1] = (ucs2 & 0x3F) | 0x80;
|
||||
utf8[0] = (char)((ucs2 >> 6) | 0xC0);
|
||||
utf8[1] = (char)((ucs2 & 0x3F) | 0x80);
|
||||
utf8[2] = '\0';
|
||||
return 2;
|
||||
}
|
||||
@ -134,7 +157,7 @@ size_t utf8_to_ucs2(WCHAR* const ucs2_le, const char* const utf8, const size_t m
|
||||
return current_ucs2_le - ucs2_le;
|
||||
}
|
||||
|
||||
// Converts UCS2 to UTF-8. Return TRUE or FALSE
|
||||
// Converts UCS2 to UTF-8. Returns TRUE or FALSE
|
||||
BOOL ucs2_to_utf8(const WCHAR* const ucs2_le, char* utf8, size_t maxucs2, size_t maxutf8)
|
||||
{
|
||||
char utf8_char[4];
|
||||
@ -175,7 +198,7 @@ BOOL stringToInt(const char *const szValue, const unsigned int min, const unsign
|
||||
|
||||
|
||||
//Converts a String Guid to a host binary guid in host endianess
|
||||
int_fast8_t string2Uuid(const char *const restrict input, GUID *const restrict guid)
|
||||
int_fast8_t string2UuidLE(const char *const restrict input, GUID *const restrict guid)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -200,37 +223,42 @@ int_fast8_t string2Uuid(const char *const restrict input, GUID *const restrict g
|
||||
hex2bin((BYTE*)&guid->Data3, inputCopy + 14, 4);
|
||||
hex2bin(guid->Data4, input + 19, 16);
|
||||
|
||||
guid->Data1 = BE32(guid->Data1);
|
||||
guid->Data2 = BE16(guid->Data2);
|
||||
guid->Data3 = BE16(guid->Data3);
|
||||
guid->Data1 = BS32(guid->Data1);
|
||||
guid->Data2 = BS16(guid->Data2);
|
||||
guid->Data3 = BS16(guid->Data3);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
// convert GUID to little-endian
|
||||
void LEGUID(GUID *const restrict out, const GUID* const restrict in)
|
||||
__pure DWORD timeSpanString2Seconds(const char *const restrict argument)
|
||||
{
|
||||
# if __BYTE_ORDER != __LITTLE_ENDIAN
|
||||
out->Data1 = LE32(in->Data1);
|
||||
out->Data2 = LE16(in->Data2);
|
||||
out->Data3 = LE16(in->Data3);
|
||||
memcpy(out->Data4, in->Data4, sizeof(out->Data4));
|
||||
# else
|
||||
memcpy(out, in, sizeof(GUID));
|
||||
# endif
|
||||
char *unitId;
|
||||
|
||||
long long val = vlmcsd_strtoll(argument, &unitId, 10);
|
||||
|
||||
switch (toupper((int)*unitId))
|
||||
{
|
||||
case 'W':
|
||||
val *= 7;
|
||||
case 'D':
|
||||
val *= 24;
|
||||
case 'H':
|
||||
val *= 60;
|
||||
case 0:
|
||||
case 'M':
|
||||
val *= 60;
|
||||
case 'S':
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
||||
__pure int IsEqualGuidLE(const GUID *const restrict first, const GUID *const restrict second)
|
||||
{
|
||||
# if __BYTE_ORDER != __LITTLE_ENDIAN
|
||||
GUID guid;
|
||||
LEGUID(&guid, first);
|
||||
return IsEqualGUID(&guid, second);
|
||||
# else
|
||||
return IsEqualGUID(first, second);
|
||||
# endif
|
||||
if (*unitId && unitId[1]) return 0;
|
||||
if (val < 1) val = 1;
|
||||
return (DWORD)(val & UINT_MAX);
|
||||
}
|
||||
|
||||
|
||||
#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
|
||||
__pure unsigned int getOptionArgumentInt(const char o, const unsigned int min, const unsigned int max)
|
||||
@ -262,7 +290,7 @@ void optReset(void)
|
||||
}
|
||||
#endif // !IS_LIBRARY
|
||||
|
||||
#if defined(_WIN32) || defined(USE_MSRPC)
|
||||
#if _WIN32 || __CYGWIN__
|
||||
|
||||
// Returns a static message buffer containing text for a given Win32 error. Not thread safe (same as strerror)
|
||||
char* win_strerror(const int message)
|
||||
@ -274,7 +302,7 @@ char* win_strerror(const int message)
|
||||
return buffer;
|
||||
}
|
||||
|
||||
#endif // defined(_WIN32) || defined(USE_MSRPC)
|
||||
#endif // _WIN32 || __CYGWIN__
|
||||
|
||||
|
||||
/*
|
||||
@ -339,6 +367,18 @@ void* vlmcsd_malloc(size_t len)
|
||||
return buf;
|
||||
}
|
||||
|
||||
char* vlmcsd_strdup(const char* src)
|
||||
{
|
||||
# if _MSC_VER
|
||||
char* dst = _strdup(src);
|
||||
# else // !_MSC_VER
|
||||
char* dst = strdup(src);
|
||||
# endif
|
||||
|
||||
if (!dst) OutOfMemory();
|
||||
return dst;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Converts hex digits to bytes in big-endian order.
|
||||
@ -390,3 +430,290 @@ __pure BOOL getArgumentBool(int_fast8_t *result, const char *const argument)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifndef IS_LIBRARY
|
||||
#ifndef NO_EXTERNAL_DATA
|
||||
__noreturn static void dataFileReadError()
|
||||
{
|
||||
int error = errno;
|
||||
errorout("Fatal: Could not read %s: %s\n", fn_data, strerror(error));
|
||||
exit(error);
|
||||
}
|
||||
|
||||
__noreturn static void dataFileFormatError()
|
||||
{
|
||||
errorout("Fatal: %s is not a KMS data file\n", fn_data);
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
#endif // NO_EXTERNAL_DATA
|
||||
|
||||
#if !defined(DATA_FILE) || !defined(NO_SIGHUP)
|
||||
void getExeName()
|
||||
{
|
||||
if (fn_exe != NULL) return;
|
||||
|
||||
# if (__GLIBC__ || __linux__) && defined(USE_AUXV)
|
||||
|
||||
fn_exe = (char*)getauxval(AT_EXECFN);
|
||||
|
||||
# elif (__ANDROID__ && __ANDROID_API__ < 16) || (__UCLIBC__ && __UCLIBC_MAJOR__ < 1 && !defined(NO_PROCFS)) // Workaround for older uclibc
|
||||
|
||||
char temp[PATH_MAX + 1];
|
||||
|
||||
if (realpath("/proc/self/exe", temp) == temp)
|
||||
{
|
||||
fn_exe = vlmcsd_strdup(temp);
|
||||
}
|
||||
|
||||
# elif (__linux__ || __CYGWIN__) && !defined(NO_PROCFS)
|
||||
|
||||
fn_exe = realpath("/proc/self/exe", NULL);
|
||||
|
||||
# elif (__FreeBSD__ || __FreeBSD_kernel__)
|
||||
|
||||
int mib[4];
|
||||
mib[0] = CTL_KERN;
|
||||
mib[1] = KERN_PROC;
|
||||
mib[2] = KERN_PROC_PATHNAME;
|
||||
mib[3] = -1;
|
||||
char path[PATH_MAX + 1];
|
||||
size_t cb = sizeof(path);
|
||||
|
||||
if (!sysctl(mib, 4, path, &cb, NULL, 0))
|
||||
{
|
||||
fn_exe = vlmcsd_strdup(path);
|
||||
}
|
||||
|
||||
# elif (__DragonFly__) && !defined(NO_PROCFS)
|
||||
|
||||
fn_exe = realpath("/proc/curproc/file", NULL);
|
||||
|
||||
# elif __NetBSD__ && !defined(NO_PROCFS)
|
||||
|
||||
fn_exe = realpath("/proc/curproc/exe", NULL);
|
||||
|
||||
# elif __sun__
|
||||
|
||||
fn_exe = getexecname();
|
||||
|
||||
# elif __APPLE__
|
||||
|
||||
char path[PATH_MAX + 1];
|
||||
uint32_t size = sizeof(path);
|
||||
|
||||
if (_NSGetExecutablePath(path, &size) == 0)
|
||||
{
|
||||
fn_exe = vlmcsd_strdup(path);
|
||||
}
|
||||
|
||||
# elif _WIN32
|
||||
|
||||
char path[512];
|
||||
GetModuleFileName(GetModuleHandle(NULL), path, 512);
|
||||
path[511] = 0;
|
||||
fn_exe = vlmcsd_strdup(path);
|
||||
|
||||
# else
|
||||
// Sorry no exe detection
|
||||
# endif
|
||||
}
|
||||
#endif // defined(DATA_FILE) && defined(NO_SIGHUP)
|
||||
|
||||
#if !defined(DATA_FILE) && !defined(NO_EXTERNAL_DATA)
|
||||
#ifdef _WIN32
|
||||
static void getDefaultDataFile()
|
||||
{
|
||||
char fileName[MAX_PATH];
|
||||
getExeName();
|
||||
strncpy(fileName, fn_exe, MAX_PATH);
|
||||
PathRemoveFileSpec(fileName);
|
||||
strncat(fileName, "\\vlmcsd.kmd", MAX_PATH);
|
||||
fn_data = vlmcsd_strdup(fileName);
|
||||
}
|
||||
#else // !_WIN32
|
||||
static void getDefaultDataFile()
|
||||
{
|
||||
char fileName[512];
|
||||
getExeName();
|
||||
|
||||
if (!fn_exe)
|
||||
{
|
||||
fn_data = (char*)"/etc/vlmcsd.kmd";
|
||||
return;
|
||||
}
|
||||
|
||||
char* fn_exe_copy = vlmcsd_strdup(fn_exe);
|
||||
strncpy(fileName, dirname(fn_exe_copy), 512);
|
||||
free(fn_exe_copy);
|
||||
strncat(fileName, "/vlmcsd.kmd", 500);
|
||||
fn_data = vlmcsd_strdup(fileName);
|
||||
}
|
||||
#endif // !_WIN32
|
||||
#endif // !defined(DATA_FILE) && !defined(NO_EXTERNAL_DATA)
|
||||
|
||||
void loadKmsData()
|
||||
{
|
||||
# ifndef NO_INTERNAL_DATA
|
||||
KmsData = (PVlmcsdHeader_t)DefaultKmsData;
|
||||
# endif // NO_INTERNAL_DATA
|
||||
|
||||
# ifndef NO_EXTERNAL_DATA
|
||||
long size;
|
||||
# ifndef NO_INTERNAL_DATA
|
||||
size = (long)getDefaultKmsDataSize();
|
||||
# endif // NO_INTERNAL_DATA
|
||||
|
||||
# ifndef DATA_FILE
|
||||
if (!fn_data) getDefaultDataFile();
|
||||
# endif // DATA_FILE
|
||||
|
||||
if (strcmp(fn_data, "-"))
|
||||
{
|
||||
FILE *file = fopen(fn_data, "rb");
|
||||
|
||||
if (!file)
|
||||
{
|
||||
# ifndef NO_INTERNAL_DATA
|
||||
if (ExplicitDataLoad)
|
||||
# endif // NO_INTERNAL_DATA
|
||||
{
|
||||
dataFileReadError();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (fseek(file, 0, SEEK_END)) dataFileReadError();
|
||||
size = ftell(file);
|
||||
if (size == -1L) dataFileReadError();
|
||||
|
||||
KmsData = (PVlmcsdHeader_t)vlmcsd_malloc(size);
|
||||
if (fseek(file, 0, SEEK_SET)) dataFileReadError();
|
||||
|
||||
size_t bytesRead = fread(KmsData, 1, size, file);
|
||||
if ((long)bytesRead != size) dataFileReadError();
|
||||
fclose(file);
|
||||
|
||||
# if !defined(NO_LOG) && !defined(NO_SOCKETS)
|
||||
if (!InetdMode) logger("Read KMS data file version %u.%u %s\n", (unsigned int)KmsData->MajorVer, (unsigned int)KmsData->MinorVer, fn_data);
|
||||
# endif // NO_LOG
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# endif // NO_EXTERNAL_DATA
|
||||
|
||||
# ifndef UNSAFE_DATA_LOAD
|
||||
if (((BYTE*)KmsData)[size - 1] != 0) dataFileFormatError();
|
||||
# endif // UNSAFE_DATA_LOAD
|
||||
|
||||
KmsData->MajorVer = LE16(KmsData->MajorVer);
|
||||
KmsData->MinorVer = LE16(KmsData->MinorVer);
|
||||
KmsData->AppItemCount = LE32(KmsData->AppItemCount);
|
||||
KmsData->KmsItemCount = LE32(KmsData->KmsItemCount);
|
||||
KmsData->SkuItemCount = LE32(KmsData->SkuItemCount);
|
||||
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < vlmcsd_countof(KmsData->Datapointers); i++)
|
||||
{
|
||||
KmsData->Datapointers[i].Pointer = (BYTE*)KmsData + LE64(KmsData->Datapointers[i].Offset);
|
||||
# ifndef UNSAFE_DATA_LOAD
|
||||
if ((BYTE*)KmsData->Datapointers[i].Pointer > (BYTE*)KmsData + size) dataFileFormatError();
|
||||
# endif // UNSAFE_DATA_LOAD
|
||||
}
|
||||
|
||||
for (i = 0; i < KmsData->CsvlkCount; i++)
|
||||
{
|
||||
PCsvlkData_t csvlkData = &KmsData->CsvlkData[i];
|
||||
csvlkData->EPid = (char*)KmsData + LE64(csvlkData->EPidOffset);
|
||||
# ifndef UNSAFE_DATA_LOAD
|
||||
if (csvlkData->EPid > (char*)KmsData + size) dataFileFormatError();
|
||||
# endif // UNSAFE_DATA_LOAD
|
||||
|
||||
# ifndef NO_RANDOM_EPID
|
||||
csvlkData->GroupId = LE32(csvlkData->GroupId);
|
||||
csvlkData->MinKeyId = LE32(csvlkData->MinKeyId);
|
||||
csvlkData->MaxKeyId = LE32(csvlkData->MaxKeyId);
|
||||
# endif // NO_RANDOM_EPID
|
||||
}
|
||||
|
||||
const uint32_t totalItemCount = KmsData->AppItemCount + KmsData->KmsItemCount + KmsData->SkuItemCount;
|
||||
|
||||
# ifndef NO_EXTERNAL_DATA
|
||||
if (
|
||||
memcmp(KmsData->Magic, "KMD", sizeof(KmsData->Magic)) ||
|
||||
KmsData->MajorVer != 1
|
||||
# ifndef UNSAFE_DATA_LOAD
|
||||
||
|
||||
sizeof(VlmcsdHeader_t) + totalItemCount * sizeof(VlmcsdData_t) >= ((uint64_t)size)
|
||||
# endif //UNSAFE_DATA_LOAD
|
||||
)
|
||||
{
|
||||
dataFileFormatError();
|
||||
}
|
||||
# endif // NO_EXTERNAL_DATA
|
||||
|
||||
for (i = 0; i < totalItemCount; i++)
|
||||
{
|
||||
PVlmcsdData_t item = &KmsData->AppItemList[i];
|
||||
item->Name = (char*)KmsData + LE64(item->NameOffset);
|
||||
|
||||
# ifndef UNSAFE_DATA_LOAD
|
||||
if (
|
||||
item->Name >= (char*)KmsData + (uint64_t)size ||
|
||||
(KmsData->AppItemCount && item->AppIndex >= KmsData->AppItemCount) ||
|
||||
item->KmsIndex >= KmsData->KmsItemCount
|
||||
)
|
||||
{
|
||||
dataFileFormatError();
|
||||
}
|
||||
# endif // UNSAFE_DATA_LOAD
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef NO_SOCKETS
|
||||
void exitOnWarningLevel(const int_fast8_t level)
|
||||
{
|
||||
if (ExitLevel >= level)
|
||||
{
|
||||
printerrorf("Fatal: Exiting on warning level %i or greater\n", (int)ExitLevel);
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
#endif // !NO_SOCKETS
|
||||
|
||||
#endif // IS_LIBRARY
|
||||
|
||||
|
||||
#if __ANDROID__ && !defined(USE_THREADS) // Bionic does not wrap these syscalls (intentionally because Google fears, developers don't know how to use it)
|
||||
|
||||
#ifdef __NR_shmget
|
||||
int shmget(key_t key, size_t size, int shmflg)
|
||||
{
|
||||
return syscall(__NR_shmget, key, size, shmflg);
|
||||
}
|
||||
#endif // __NR_shmget
|
||||
|
||||
#ifdef __NR_shmat
|
||||
void *shmat(int shmid, const void *shmaddr, int shmflg)
|
||||
{
|
||||
return (void *)syscall(__NR_shmat, shmid, shmaddr, shmflg);
|
||||
}
|
||||
#endif // __NR_shmat
|
||||
|
||||
#ifdef __NR_shmdt
|
||||
int shmdt(const void *shmaddr)
|
||||
{
|
||||
return syscall(__NR_shmdt, shmaddr);
|
||||
}
|
||||
#endif // __NR_shmdt
|
||||
|
||||
#ifdef __NR_shmctl
|
||||
int shmctl(int shmid, int cmd, /*struct shmid_ds*/void *buf)
|
||||
{
|
||||
return syscall(__NR_shmctl, shmid, cmd, buf);
|
||||
}
|
||||
#endif // __NR_shmctl
|
||||
|
||||
#endif // __ANDROID__ && !defined(USE_THREADS)
|
||||
|
||||
|
||||
|
@ -9,6 +9,10 @@
|
||||
#include <stdint.h>
|
||||
#include "types.h"
|
||||
|
||||
#if __ANDROID__
|
||||
#include <sys/syscall.h>
|
||||
#endif // __ANDROID__
|
||||
|
||||
#define GUID_LE 0
|
||||
#define GUID_BE 1
|
||||
#define GUID_SWAP 2
|
||||
@ -16,20 +20,38 @@
|
||||
BOOL stringToInt(const char *const szValue, const unsigned int min, const unsigned int max, unsigned int *const value);
|
||||
unsigned int getOptionArgumentInt(const char o, const unsigned int min, const unsigned int max);
|
||||
void optReset(void);
|
||||
__pure DWORD timeSpanString2Seconds(const char *const restrict argument);
|
||||
#define timeSpanString2Minutes(x) (timeSpanString2Seconds(x) / 60)
|
||||
char* win_strerror(const int message);
|
||||
int ucs2_to_utf8_char (const WCHAR ucs2_le, char *utf8);
|
||||
size_t utf8_to_ucs2(WCHAR* const ucs2_le, const char* const utf8, const size_t maxucs2, const size_t maxutf8);
|
||||
WCHAR utf8_to_ucs2_char (const unsigned char * input, const unsigned char ** end_ptr);
|
||||
BOOL ucs2_to_utf8(const WCHAR* const ucs2_le, char* utf8, size_t maxucs2, size_t maxutf8);
|
||||
int_fast8_t string2Uuid(const char *const restrict input, GUID *const restrict guid);
|
||||
int_fast8_t string2UuidLE(const char *const restrict input, GUID *const restrict guid);
|
||||
void randomNumberInit();
|
||||
void LEGUID(GUID *const restrict result, const GUID* const restrict guid);
|
||||
void parseAddress(char *const addr, char** szHost, char** szPort);
|
||||
__noreturn void OutOfMemory(void);
|
||||
void* vlmcsd_malloc(size_t len);
|
||||
void hex2bin(BYTE *const bin, const char *hex, const size_t maxbin);
|
||||
void loadKmsData();
|
||||
#if !defined(DATA_FILE) || !defined(NO_SIGHUP)
|
||||
void getExeName();
|
||||
#endif // !defined(DATA_FILE) || !defined(NO_SIGHUP)
|
||||
__pure BOOL getArgumentBool(int_fast8_t *result, const char *const argument);
|
||||
__pure int IsEqualGuidLE(const GUID *const restrict first, const GUID *const restrict second);
|
||||
char* vlmcsd_strdup(const char* src);
|
||||
|
||||
#if defined(NO_SOCKETS) || IS_LIBRARY
|
||||
#define exitOnWarningLevel(x)
|
||||
#else // !NO_SOCKETS
|
||||
void exitOnWarningLevel(const int_fast8_t level);
|
||||
#endif // !NO_SOCKETS
|
||||
|
||||
|
||||
#if __ANDROID__ && !defined(USE_THREADS) // Bionic does not wrap these syscalls (intentionally because Google fears, developers don't know how to use it)
|
||||
int shmget(key_t key, size_t size, int shmflg);
|
||||
void *shmat(int shmid, const void *shmaddr, int shmflg);
|
||||
int shmdt(const void *shmaddr);
|
||||
int shmctl(int shmid, int cmd, /*struct shmid_ds*/void *buf);
|
||||
#endif // __ANDROID__ && !defined(USE_THREADS)
|
||||
|
||||
#endif // HELPERS_H
|
||||
|
175
src/kms.h
175
src/kms.h
@ -7,11 +7,11 @@
|
||||
#include CONFIG
|
||||
|
||||
#if _MSC_VER
|
||||
#include <time.h>
|
||||
//#include <time.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif // _MSC_VER
|
||||
#include <stdlib.h>
|
||||
//#include <stdlib.h>
|
||||
#include "types.h"
|
||||
//
|
||||
// REQUEST... types are actually fixed size
|
||||
@ -54,6 +54,15 @@
|
||||
#define ActivationInterval VLActivationInterval
|
||||
#define RenewalInterval VLRenewalInterval
|
||||
|
||||
#define MAX_CLIENTS 671
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GUID Guid[MAX_CLIENTS];
|
||||
int_fast16_t CurrentCount;
|
||||
int_fast16_t MaxCount;
|
||||
int_fast16_t CurrentPosition;
|
||||
} ClientList_t, *PClientList_t;
|
||||
|
||||
typedef struct {
|
||||
VERSION_INFO;
|
||||
@ -219,56 +228,113 @@ typedef union
|
||||
|
||||
typedef BYTE hwid_t[8];
|
||||
|
||||
typedef struct
|
||||
typedef struct CsvlkData
|
||||
{
|
||||
GUID guid;
|
||||
const char* name;
|
||||
const char* pid;
|
||||
union
|
||||
{
|
||||
uint64_t EPidOffset;
|
||||
char* EPid;
|
||||
};
|
||||
|
||||
uint32_t GroupId;
|
||||
uint32_t MinKeyId;
|
||||
uint32_t MaxKeyId;
|
||||
uint8_t MinActiveClients;
|
||||
uint8_t Reserved[3];
|
||||
|
||||
} CsvlkData_t, *PCsvlkData_t;
|
||||
|
||||
typedef struct VlmcsdData
|
||||
{
|
||||
union
|
||||
{
|
||||
GUID Guid;
|
||||
uint8_t GuidBytes[16];
|
||||
};
|
||||
|
||||
union
|
||||
{
|
||||
uint64_t NameOffset;
|
||||
char* Name;
|
||||
};
|
||||
|
||||
uint8_t AppIndex;
|
||||
uint8_t KmsIndex;
|
||||
} KmsIdList;
|
||||
uint8_t ProtocolVersion;
|
||||
uint8_t NCountPolicy;
|
||||
uint8_t IsRetail;
|
||||
uint8_t IsPreview;
|
||||
uint8_t EPidIndex;
|
||||
uint8_t reserved;
|
||||
|
||||
#define KMS_PARAM_MAJOR AppIndex
|
||||
#define KMS_PARAM_REQUIREDCOUNT KmsIndex
|
||||
} VlmcsdData_t, *PVlmcsdData_t;
|
||||
|
||||
#define APP_ID_WINDOWS 0
|
||||
#define APP_ID_OFFICE2010 1
|
||||
#define APP_ID_OFFICE2013 2
|
||||
typedef struct
|
||||
{
|
||||
union
|
||||
{
|
||||
uint64_t Offset;
|
||||
void* Pointer;
|
||||
};
|
||||
} DataPointer_t;
|
||||
|
||||
#define EPID_INDEX_WINDOWS APP_ID_WINDOWS
|
||||
#define EPID_INDEX_OFFICE2010 APP_ID_OFFICE2010
|
||||
#define EPID_INDEX_OFFICE2013 APP_ID_OFFICE2013
|
||||
#define KMS_OPTIONS_USENDR64 1 << 0
|
||||
|
||||
typedef struct VlmcsdHeader
|
||||
{
|
||||
BYTE Magic[4];
|
||||
VERSION_INFO;
|
||||
uint8_t CsvlkCount;
|
||||
uint8_t Flags;
|
||||
uint8_t Reserved[2];
|
||||
|
||||
union
|
||||
{
|
||||
int32_t Counts[3];
|
||||
|
||||
struct
|
||||
{
|
||||
int32_t AppItemCount;
|
||||
int32_t KmsItemCount;
|
||||
int32_t SkuItemCount;
|
||||
};
|
||||
};
|
||||
|
||||
union
|
||||
{
|
||||
DataPointer_t Datapointers[3];
|
||||
|
||||
struct
|
||||
{
|
||||
union
|
||||
{
|
||||
uint64_t AppItemOffset;
|
||||
PVlmcsdData_t AppItemList;
|
||||
};
|
||||
|
||||
union
|
||||
{
|
||||
uint64_t KmsItemOffset;
|
||||
PVlmcsdData_t KmsItemList;
|
||||
};
|
||||
|
||||
union
|
||||
{
|
||||
uint64_t SkuItemOffset;
|
||||
PVlmcsdData_t SkuItemList;
|
||||
};
|
||||
|
||||
CsvlkData_t CsvlkData[1];
|
||||
};
|
||||
};
|
||||
|
||||
} VlmcsdHeader_t, *PVlmcsdHeader_t;
|
||||
|
||||
#define EPID_INDEX_WINDOWS 0
|
||||
#define EPID_INDEX_OFFICE2010 1
|
||||
#define EPID_INDEX_OFFICE2013 2
|
||||
#define EPID_INDEX_OFFICE2016 3
|
||||
|
||||
// Update these numbers in License Manager
|
||||
#define KMS_ID_OFFICE2010 0
|
||||
#define KMS_ID_OFFICE2013 1
|
||||
#define KMS_ID_OFFICE2013_BETA 2
|
||||
#define KMS_ID_OFFICE2016 3
|
||||
#define KMS_ID_VISTA 4
|
||||
#define KMS_ID_WIN7 5
|
||||
#define KMS_ID_WIN8_VL 6
|
||||
#define KMS_ID_WIN_BETA 7
|
||||
#define KMS_ID_WIN8_RETAIL 8
|
||||
#define KMS_ID_WIN81_VL 9
|
||||
#define KMS_ID_WIN81_RETAIL 10
|
||||
#define KMS_ID_WIN2008A 11
|
||||
#define KMS_ID_WIN2008B 12
|
||||
#define KMS_ID_WIN2008C 13
|
||||
#define KMS_ID_WIN2008R2A 14
|
||||
#define KMS_ID_WIN2008R2B 15
|
||||
#define KMS_ID_WIN2008R2C 16
|
||||
#define KMS_ID_WIN2012 17
|
||||
#define KMS_ID_WIN2012R2 18
|
||||
#define KMS_ID_WIN_SRV_BETA 19
|
||||
#define KMS_ID_WIN10_VL 20
|
||||
#define KMS_ID_WIN10_RETAIL 21
|
||||
#define KMS_ID_WIN2016 22
|
||||
#define KMS_ID_WIN10_LTSB2016 23
|
||||
|
||||
#define PWINGUID &AppList[APP_ID_WINDOWS].guid
|
||||
#define POFFICE2010GUID &AppList[APP_ID_OFFICE2010].guid
|
||||
#define POFFICE2013GUID &AppList[APP_ID_OFFICE2013].guid
|
||||
#define EPID_INDEX_WINCHINAGOV 4
|
||||
|
||||
typedef HRESULT(__stdcall *RequestCallback_t)(const REQUEST *const baseRequest, RESPONSE *const baseResponse, BYTE *const hwId, const char* const ipstr);
|
||||
|
||||
@ -282,20 +348,21 @@ RESPONSE_RESULT DecryptResponseV6(RESPONSE_V6* Response_v6, int responseSize, BY
|
||||
RESPONSE_RESULT DecryptResponseV4(RESPONSE_V4* Response_v4, const int responseSize, BYTE* const response, const BYTE* const request);
|
||||
void getUnixTimeAsFileTime(FILETIME *const ts);
|
||||
__pure int64_t fileTimeToUnixTime(const FILETIME *const ts);
|
||||
const char* getProductNameHE(const GUID *const guid, const KmsIdList *const List, ProdListIndex_t maxList, ProdListIndex_t *const i);
|
||||
const char* getProductNameLE(const GUID *const guid, const KmsIdList *const List, ProdListIndex_t maxList, ProdListIndex_t *const i);
|
||||
__pure ProdListIndex_t getExtendedProductListSize();
|
||||
__pure ProdListIndex_t getAppListSize(void);
|
||||
__pure ProdListIndex_t getProductListSize(void);
|
||||
|
||||
extern const KmsIdList ProductList[];
|
||||
extern const KmsIdList AppList[];
|
||||
extern const KmsIdList ExtendedProductList[];
|
||||
#ifndef IS_LIBRARY
|
||||
int32_t getProductIndex(const GUID* guid, const PVlmcsdData_t list, const int32_t count, char** name, char** ePid);
|
||||
#endif // IS_LIBRARY
|
||||
|
||||
#ifndef NO_STRICT_MODES
|
||||
void InitializeClientLists();
|
||||
void CleanUpClientLists();
|
||||
#endif // !NO_STRICT_MODES
|
||||
|
||||
extern RequestCallback_t CreateResponseBase;
|
||||
|
||||
#ifdef _PEDANTIC
|
||||
uint16_t IsValidLcid(const uint16_t Lcid);
|
||||
uint16_t IsValidLcid(const uint16_t lcid);
|
||||
uint16_t IsValidHostBuild(const uint16_t hostBuild);
|
||||
#endif // _PEDANTIC
|
||||
|
||||
#endif // __kms_h
|
||||
|
930
src/kmsdata-full.c
Normal file
930
src/kmsdata-full.c
Normal file
@ -0,0 +1,930 @@
|
||||
#ifndef CONFIG
|
||||
#define CONFIG "config.h"
|
||||
#endif // CONFIG
|
||||
#include CONFIG
|
||||
|
||||
#ifndef NO_INTERNAL_DATA
|
||||
|
||||
#include "kmsdata.h"
|
||||
|
||||
uint8_t DefaultKmsData[] =
|
||||
{
|
||||
0x4B, 0x4D, 0x44, 0x00, 0x06, 0x00, 0x01, 0x00, 0x06, 0x01, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, // KMD.............
|
||||
0x1D, 0x00, 0x00, 0x00, 0xCA, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ....<2E>...<2E>.......
|
||||
0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // .......<2E>.......
|
||||
0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xCE, 0x00, 0x00, 0x00, 0xC0, 0x97, 0xD7, 0x20, // ........<2E>...<2E>.<2E>
|
||||
0xBF, 0xC4, 0x08, 0x22, 0x32, 0x00, 0x00, 0x00, 0x3A, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // <20><>."2...:.......
|
||||
0x60, 0x00, 0x00, 0x00, 0xC0, 0x7F, 0xDC, 0x0B, 0x7F, 0x6A, 0xFE, 0x0C, 0x0A, 0x00, 0x00, 0x00, // `...<2E>.<2E>..j<>.....
|
||||
0x77, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xCE, 0x00, 0x00, 0x00, 0x80, 0x8E, 0xF2, 0x0D, // w.......<2E>.....<2E>.
|
||||
0xFF, 0x3F, 0x42, 0x0F, 0x0A, 0x00, 0x00, 0x00, 0xB4, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // <20>?B.....<2E>.......
|
||||
0xCE, 0x00, 0x00, 0x00, 0x40, 0x17, 0x0C, 0x1A, 0xBF, 0xC8, 0x5B, 0x1B, 0x0A, 0x00, 0x00, 0x00, // <20>...@...<2E><>[.....
|
||||
0xF1, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x0F, 0x00, 0x00, 0xC0, 0xE1, 0xE4, 0x00, // <20>...........<2E><><EFBFBD>.
|
||||
0xFF, 0xC9, 0x9A, 0x3B, 0x32, 0x00, 0x00, 0x00, 0x2F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // <20><>.;2.../.......
|
||||
0xCE, 0x00, 0x00, 0x00, 0x80, 0x5A, 0xB2, 0x27, 0x7F, 0x87, 0xE3, 0x28, 0x0A, 0x00, 0x00, 0x00, // <20>....Z<>'..<2E>(....
|
||||
0x34, 0x27, 0xC9, 0x55, 0x82, 0xD6, 0x71, 0x4D, 0x98, 0x3E, 0xD6, 0xEC, 0x3F, 0x16, 0x05, 0x9F, // 4'<27>U.<2E>qM.><3E><>?...
|
||||
0x6C, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x00, // l..........2....
|
||||
0x81, 0x28, 0xA5, 0x59, 0x89, 0xA9, 0x9D, 0x47, 0xAF, 0x46, 0xF2, 0x75, 0xC6, 0x37, 0x06, 0x63, // .(<28>Y.<2E>.G<>F<EFBFBD>u<EFBFBD>7.c
|
||||
0x74, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x01, 0x00, // t...............
|
||||
0x15, 0xCE, 0xF1, 0x0F, 0x89, 0xA9, 0x9D, 0x47, 0xAF, 0x46, 0xF2, 0x75, 0xC6, 0x37, 0x06, 0x63, // .<2E><>..<2E>.G<>F<EFBFBD>u<EFBFBD>7.c
|
||||
0x7F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x05, 0x00, // ................
|
||||
0xFB, 0xB1, 0x49, 0x84, 0xEA, 0xF0, 0x7A, 0x49, 0x99, 0xAB, 0x66, 0xCA, 0x96, 0xE9, 0xA0, 0xF5, // <20><>I.<2E><>zI.<2E>f<EFBFBD>.<2E>.<2E>
|
||||
0x8B, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // ................
|
||||
0x59, 0x56, 0xB1, 0x11, 0x03, 0xE6, 0xF1, 0x4C, 0x9C, 0x1F, 0xF0, 0xEC, 0x01, 0xB8, 0x18, 0x88, // YV<59>..<2E><>L..<2E><>.<2E>..
|
||||
0x9F, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // ................
|
||||
0x36, 0xD6, 0x7C, 0xD2, 0x62, 0x19, 0xE9, 0x44, 0x8B, 0x4F, 0x27, 0xB6, 0xC2, 0x3E, 0xFB, 0x85, // 6<>|<7C>b.<2E>D.O'<27><>><3E>.
|
||||
0xB8, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>...............
|
||||
0x23, 0xBF, 0xA0, 0x7B, 0xF5, 0xD0, 0x72, 0x40, 0x91, 0xD9, 0xD5, 0x5A, 0xF5, 0xA4, 0x81, 0xB6, // #<23>.{<7B><>r@.<2E><>Z<EFBFBD><5A>.<2E>
|
||||
0xD4, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x19, 0x00, 0x00, 0x04, 0x00, // <20>...............
|
||||
0xC0, 0xE3, 0x9F, 0x96, 0xEC, 0xA3, 0x1A, 0x49, 0x9F, 0x25, 0x42, 0x36, 0x05, 0xDE, 0xB3, 0x65, // <20><>..<2E><>.I.%B6.e
|
||||
0xF0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>...............
|
||||
0x58, 0x13, 0xC5, 0xE1, 0x3E, 0xFE, 0x03, 0x42, 0xA4, 0xA2, 0x3B, 0x6B, 0x20, 0xC9, 0x73, 0x4E, // X.<2E><>><3E>.B<><42>;k <20>sN
|
||||
0x09, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // . ..............
|
||||
0x4F, 0x13, 0xE2, 0x58, 0x11, 0x8E, 0x17, 0x4D, 0x9C, 0xB2, 0x91, 0x06, 0x9C, 0x15, 0x11, 0x48, // O.<2E>X...M.<2E>.....H
|
||||
0x1D, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // . ..............
|
||||
0x19, 0x52, 0xDE, 0x7F, 0xFA, 0xFB, 0x4A, 0x48, 0x82, 0xC9, 0x34, 0xD1, 0xAD, 0x53, 0xE8, 0x56, // .R<>.<2E><>JH.<2E>4ѭS<D1AD>V
|
||||
0x36, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // 6 ..............
|
||||
0x3B, 0x7B, 0xB9, 0xBB, 0xA4, 0x8C, 0x28, 0x4A, 0x97, 0x17, 0x89, 0xFA, 0xBD, 0x42, 0xC4, 0xAC, // ;{<7B><><EFBFBD>.(J...<2E><>BĬ
|
||||
0x40, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x19, 0x01, 0x00, 0x00, 0x00, // @ ..............
|
||||
0x58, 0xB3, 0x40, 0x3C, 0x48, 0x59, 0xAF, 0x45, 0x92, 0x3B, 0x53, 0xD2, 0x1F, 0xCC, 0x7E, 0x79, // X<>@<HY<48>E.;S<>.<2E>~y
|
||||
0x53, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x19, 0x00, 0x00, 0x00, 0x00, // S ..............
|
||||
0x90, 0x68, 0x64, 0x6D, 0x06, 0x36, 0x1A, 0x46, 0x86, 0xAB, 0x59, 0x8B, 0xB8, 0x4A, 0xCE, 0x82, // .hdm.6.F.<2E>Y.<2E>J<EFBFBD>.
|
||||
0x66, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // f ..............
|
||||
0x80, 0xC7, 0x8F, 0xCB, 0x05, 0x2C, 0x5A, 0x49, 0x97, 0x10, 0x85, 0xAF, 0xFF, 0xC9, 0x04, 0xD7, // .<2E>.<2E>.,ZI...<2E><><EFBFBD>.<2E>
|
||||
0x7B, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // { ..............
|
||||
0xBB, 0xA0, 0x94, 0x5F, 0xA0, 0xD5, 0x81, 0x40, 0xA6, 0x85, 0x58, 0x19, 0x41, 0x8B, 0x2F, 0xE0, // <20>.._.<2E>.@<40>.X.A./<2F>
|
||||
0x90, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x19, 0x00, 0x01, 0x00, 0x00, // . ..............
|
||||
0xE4, 0x56, 0xE1, 0x33, 0x6F, 0xB7, 0x52, 0x4A, 0x9F, 0x91, 0xF6, 0x41, 0xDD, 0x95, 0xAC, 0x48, // <20>V<EFBFBD>3o<33>RJ..<2E>A<EFBFBD>.<2E>H
|
||||
0xA0, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // . ..............
|
||||
0x87, 0x33, 0xE5, 0x8F, 0x87, 0x30, 0x47, 0x44, 0x89, 0x85, 0xF7, 0x51, 0x32, 0x21, 0x5A, 0xC9, // .3<EFBFBD>..0GD..<2E>Q2!Z<>
|
||||
0xC4, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // <20> ..............
|
||||
0xF3, 0xFD, 0x21, 0x8A, 0xC5, 0xCB, 0xEB, 0x44, 0x83, 0xF3, 0xFE, 0x28, 0x4E, 0x66, 0x80, 0xA7, // <20><>!.<2E><><EFBFBD>D.<2E><>(Nf.<2E>
|
||||
0xF4, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // <20> ..............
|
||||
0xAF, 0xCC, 0xC6, 0x0F, 0x0E, 0xFF, 0xAE, 0x4F, 0x9D, 0x08, 0x43, 0x70, 0x78, 0x5B, 0xF7, 0xED, // <20><><EFBFBD>..<2E><>O..Cpx[<5B><>
|
||||
0x17, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // .!..............
|
||||
0xB6, 0xF5, 0x87, 0xCA, 0x46, 0xCD, 0xC0, 0x40, 0xB0, 0x6D, 0x8E, 0xCD, 0x57, 0xA4, 0x37, 0x3F, // <20><>.<2E>F<EFBFBD><46>@<40>m.<2E>W<EFBFBD>7?
|
||||
0x3E, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // >!..............
|
||||
0x89, 0x26, 0xCA, 0xB2, 0xA8, 0xA9, 0xD7, 0x42, 0x93, 0x8D, 0xCF, 0x8E, 0x9F, 0x20, 0x19, 0x58, // .&ʲ<><CAB2><EFBFBD>B..<2E>.. .X
|
||||
0x71, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // q!..............
|
||||
0x71, 0xCB, 0x65, 0x86, 0x8C, 0x46, 0xA3, 0x4A, 0xA3, 0x37, 0xCB, 0x9B, 0xC9, 0xD5, 0xEA, 0xAC, // q<>e..F<>J<EFBFBD>7<EFBFBD>.<2E><><EFBFBD><EFBFBD>
|
||||
0x97, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x05, 0x00, 0x00, 0x00, 0x00, // .!..............
|
||||
0xD3, 0xEF, 0x56, 0x84, 0x04, 0x0C, 0x89, 0x40, 0x87, 0x40, 0x5B, 0x72, 0x38, 0x53, 0x5A, 0x65, // <20><>V....@.@[r8SZe
|
||||
0xAB, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>!..............
|
||||
0x69, 0xC0, 0x9F, 0x6E, 0x7D, 0x25, 0xC4, 0x4B, 0xB4, 0xA7, 0x75, 0x05, 0x14, 0xD3, 0x27, 0x43, // i<>.n}%<25>K<EFBFBD><4B>u..<2E>'C
|
||||
0xC2, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>!..............
|
||||
0x70, 0x52, 0x5F, 0x6D, 0xAC, 0x31, 0x3E, 0x43, 0xB9, 0x0A, 0x39, 0x89, 0x29, 0x23, 0xC6, 0x57, // pR_m<5F>1>C<>.9.)#<23>W
|
||||
0xD6, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x01, 0x00, 0x00, // <20>!..............
|
||||
0xDC, 0x64, 0x2A, 0x21, 0xB1, 0x43, 0x3D, 0x4D, 0xA3, 0x0C, 0x2F, 0xC6, 0x9D, 0x20, 0x95, 0xC6, // <20>d*!<21>C=M<>./<2F>. .<2E>
|
||||
0xED, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>!..............
|
||||
0x46, 0xF9, 0x5A, 0xE8, 0x25, 0x2E, 0xB7, 0x47, 0x83, 0xE1, 0xBE, 0xBC, 0xEB, 0xEA, 0xC6, 0x11, // F<>Z<EFBFBD>%.<2E>G.ᾼ<><E1BEBC><EFBFBD>.
|
||||
0xFB, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // <20>!..............
|
||||
0xBF, 0xF1, 0xA6, 0xE6, 0x40, 0x9D, 0xC3, 0x40, 0xAA, 0x9F, 0xC7, 0x7B, 0xA2, 0x15, 0x78, 0xC0, // <20><><EFBFBD><EFBFBD>@.<2E>@<40>.<2E>{<7B>.x<>
|
||||
0x07, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // ."..............
|
||||
0x68, 0x79, 0x4C, 0xAA, 0xDA, 0xB9, 0x80, 0x46, 0x92, 0xB6, 0xAC, 0xB2, 0x5E, 0x2F, 0x86, 0x6C, // hyL<79>ڹ.F.<2E><><EFBFBD>^/.l
|
||||
0x13, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // ."..............
|
||||
0x1B, 0xF6, 0xB5, 0x85, 0x0B, 0x32, 0xE3, 0x4B, 0x81, 0x4A, 0xB7, 0x6B, 0x2B, 0xFA, 0xFC, 0x82, // .<2E><>..2<EFBFBD>K.J<>k+<2B><>.
|
||||
0x2D, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // -"..............
|
||||
0xB1, 0x9E, 0x7D, 0x61, 0x36, 0xEF, 0x82, 0x4F, 0x86, 0xE0, 0xA6, 0x5A, 0xE0, 0x7B, 0x96, 0xC6, // <20>.}a6<61>.O.<2E><>Z<EFBFBD>{.<2E>
|
||||
0x39, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // 9"..............
|
||||
0x62, 0xEB, 0xE8, 0x8D, 0xE0, 0xBB, 0xAC, 0x40, 0xAC, 0x17, 0xF7, 0x55, 0x95, 0x07, 0x1E, 0xA3, // b<><62>.@<40>.<2E>U...<2E>
|
||||
0x45, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // E"..............
|
||||
0xF0, 0xC1, 0x9C, 0xA9, 0x19, 0x77, 0x06, 0x43, 0x96, 0x45, 0x29, 0x41, 0x02, 0xFB, 0xFF, 0x95, // <20><>.<2E>.w.C.E)A.<2E><>.
|
||||
0x5F, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // _"..............
|
||||
0x55, 0xAE, 0xE1, 0x34, 0xF8, 0x27, 0x50, 0x49, 0x88, 0x77, 0x7A, 0x03, 0xBE, 0x5F, 0xB1, 0x81, // U<><55>4<EFBFBD>'PI.wz.<2E>_<EFBFBD>.
|
||||
0x7E, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // ~"..............
|
||||
0xBB, 0x3C, 0x4D, 0x03, 0x4B, 0x5D, 0x45, 0x42, 0xB3, 0xF8, 0xF8, 0x45, 0x71, 0x31, 0x40, 0x78, // <20><M.K]EB<45><42><EFBFBD>Eq1@x
|
||||
0x9D, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // ."..............
|
||||
0xFD, 0xEA, 0x32, 0xDE, 0xEE, 0xAA, 0x62, 0x46, 0x94, 0x44, 0xC1, 0xBE, 0xFB, 0x41, 0xBD, 0xE2, // <20><>2<EFBFBD><32><EFBFBD>bF.D<><44><EFBFBD>A<EFBFBD><41>
|
||||
0xBC, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>"..............
|
||||
0xE5, 0x62, 0xC3, 0x90, 0xA1, 0x0D, 0xFD, 0x4B, 0xB5, 0x3B, 0xB8, 0x7D, 0x30, 0x9A, 0xDE, 0x43, // <20>b<EFBFBD>.<2E>.<2E>K<EFBFBD>;<3B>}0.<2E>C
|
||||
0xD9, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>"..............
|
||||
0x7C, 0x95, 0xE3, 0x73, 0x0C, 0xFC, 0x0D, 0x40, 0x91, 0x84, 0x5F, 0x7B, 0x6F, 0x2E, 0xB4, 0x09, // |.<2E>s.<2E>.@.._{o.<2E>.
|
||||
0x0E, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // .#..............
|
||||
0xB3, 0xFA, 0xD2, 0x32, 0xA8, 0xE4, 0xC2, 0x42, 0x92, 0x3B, 0x4B, 0xF4, 0xFD, 0x13, 0xE6, 0xEE, // <20><><EFBFBD>2<EFBFBD><32><EFBFBD>B.;K<><4B>.<2E><>
|
||||
0x41, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // A#..............
|
||||
0x33, 0xA3, 0x03, 0x71, 0xC8, 0xB8, 0xCC, 0x49, 0x93, 0xCE, 0xD3, 0x7C, 0x09, 0x68, 0x7F, 0x92, // 3<>.qȸ<71>I.<2E><>|.h..
|
||||
0x61, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // a#..............
|
||||
0x83, 0xD3, 0xB2, 0xE0, 0x12, 0xD1, 0x3F, 0x41, 0x8A, 0x80, 0x97, 0xF3, 0x73, 0xA5, 0x82, 0x0C, // .Ӳ<>.<2E>?A...<2E>s<EFBFBD>..
|
||||
0x83, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06, 0x19, 0x00, 0x00, 0x04, 0x00, // .#..............
|
||||
0xFB, 0x54, 0x84, 0xE3, 0xA4, 0x41, 0x59, 0x4F, 0xA5, 0xDC, 0x25, 0x08, 0x0E, 0x35, 0x47, 0x30, // <20>T.<2E><>AYO<59><4F>%..5G0
|
||||
0x9B, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06, 0x19, 0x00, 0x00, 0x04, 0x00, // .#..............
|
||||
0x60, 0x5A, 0x5A, 0x2D, 0x40, 0x30, 0xBF, 0x48, 0xBE, 0xB0, 0xFC, 0xD7, 0x70, 0xC2, 0x0C, 0xE0, // `ZZ-@0<>H<EFBFBD><48><EFBFBD><EFBFBD>p<EFBFBD>.<2E>
|
||||
0xB4, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>#..............
|
||||
0x83, 0x6D, 0x77, 0x9F, 0x56, 0x71, 0xB2, 0x45, 0x8A, 0x5C, 0x35, 0x9B, 0x9C, 0x9F, 0x22, 0xA3, // .mw.Vq<56>E.\5..."<22>
|
||||
0xD4, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>#..............
|
||||
0x99, 0x7C, 0xE9, 0x58, 0x77, 0xF3, 0xF1, 0x4E, 0x81, 0xD5, 0x4A, 0xD5, 0x52, 0x2B, 0x5F, 0xD8, // .|<7C>Xw<58><77>N.<2E>J<EFBFBD>R+_<>
|
||||
0xF6, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // <20>#..............
|
||||
0x44, 0x75, 0x10, 0xA9, 0xA0, 0xF4, 0x53, 0x40, 0xA9, 0x6A, 0x14, 0x79, 0xAB, 0xDE, 0xF9, 0x12, // Du.<2E>.<2E>S@<40>j.y<><79><EFBFBD>.
|
||||
0x06, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // .$..............
|
||||
0x51, 0x17, 0x9E, 0x7B, 0xDA, 0xA8, 0x75, 0x4F, 0x95, 0x60, 0x5F, 0xAD, 0xFE, 0x3D, 0x8E, 0x38, // Q..{ڨuO.`_<><5F>=.8
|
||||
0x27, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // '$..............
|
||||
0x57, 0x8A, 0x91, 0xCD, 0x1B, 0xA4, 0x82, 0x4C, 0x8D, 0xCE, 0x1A, 0x53, 0x8E, 0x22, 0x1A, 0x83, // W..<2E>.<2E>.L.<2E>.S."..
|
||||
0x39, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // 9$..............
|
||||
0x88, 0x22, 0xC4, 0xE0, 0x0C, 0x98, 0x88, 0x47, 0xA0, 0x14, 0xC0, 0x80, 0xD2, 0xE1, 0x92, 0x6E, // ."<22><>...G..<2E>.<2E><>.n
|
||||
0x59, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // Y$..............
|
||||
0x55, 0x23, 0x10, 0x3C, 0x27, 0xD0, 0xC6, 0x42, 0xAD, 0x23, 0x2E, 0x7E, 0xF8, 0xA0, 0x25, 0x85, // U#.<'<27><>B<EFBFBD>#.~<7E>.%.
|
||||
0x6E, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // n$..............
|
||||
0x21, 0x11, 0x11, 0x73, 0x38, 0x56, 0xF6, 0x40, 0xBC, 0x11, 0xF1, 0xD7, 0xB0, 0xD6, 0x43, 0x00, // !..s8V<38>@<40>.<2E>װ<EFBFBD>C.
|
||||
0x85, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // .$..............
|
||||
0x6C, 0xA4, 0x51, 0x7B, 0x04, 0x0C, 0x8F, 0x4E, 0x9A, 0xF4, 0x84, 0x96, 0xCC, 0xA9, 0x0D, 0x5E, // l<>Q{...N.<2E>..̩.^
|
||||
0x9B, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // .$..............
|
||||
0xB7, 0x38, 0xB8, 0x87, 0xB6, 0x41, 0x90, 0x45, 0x83, 0x18, 0x57, 0x97, 0x95, 0x1D, 0x85, 0x29, // <20>8<EFBFBD>.<2E>A.E..W....)
|
||||
0xBB, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>$..............
|
||||
0xE2, 0xE3, 0x72, 0xE2, 0x2F, 0x73, 0x65, 0x4C, 0xA8, 0xF0, 0x48, 0x47, 0x47, 0xD0, 0xD9, 0x47, // <20><>r<EFBFBD>/seL<65><4C>HGG<47><47>G
|
||||
0xDD, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>$..............
|
||||
0x92, 0xC0, 0xBB, 0x82, 0x50, 0xBC, 0x16, 0x4E, 0x8E, 0x18, 0xB7, 0x4F, 0xC4, 0x86, 0xAE, 0xC3, // .<2E><>.P<>.N..<2E>O<EFBFBD>.<2E><>
|
||||
0xF5, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>$..............
|
||||
0xD3, 0x71, 0x15, 0x4B, 0xFB, 0xBA, 0x40, 0x4B, 0x80, 0x87, 0xA9, 0x61, 0xBE, 0x2C, 0xAF, 0x65, // <20>q.K<><4B>@K..<2E>a<EFBFBD>,<2C>e
|
||||
0x19, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // .%..............
|
||||
0x92, 0x73, 0xE6, 0x2D, 0xA7, 0xB7, 0x2A, 0x46, 0xB1, 0xCA, 0x10, 0x8D, 0xD1, 0x89, 0xF5, 0x88, // .s<>-<2D><>*F<><46>..<2E>.<2E>.
|
||||
0x3F, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // ?%..............
|
||||
0x82, 0xFC, 0x1A, 0x3F, 0xAC, 0xF8, 0x6C, 0x4F, 0x80, 0x05, 0x1D, 0x23, 0x3E, 0x60, 0x6E, 0xEE, // .<2E>.?<3F><>lO...#>`n<>
|
||||
0x57, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // W%..............
|
||||
0x8C, 0xB1, 0x00, 0x53, 0x33, 0x2E, 0xC2, 0x4D, 0x82, 0x91, 0x47, 0xFF, 0xCE, 0xC7, 0x46, 0xDD, // .<2E>.S3.<2E>M..G<><47><EFBFBD>F<EFBFBD>
|
||||
0x79, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // y%..............
|
||||
0xBF, 0x5A, 0x0B, 0xA8, 0xAD, 0x76, 0x8B, 0x42, 0xB0, 0x5D, 0xA4, 0x7D, 0x2D, 0xFF, 0xEE, 0xBF, // <20>Z.<2E><>v.B<>]<5D>}-<2D><><EFBFBD>
|
||||
0x9D, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // .%..............
|
||||
0x01, 0x82, 0x80, 0xFF, 0xC6, 0xFE, 0xD4, 0x4F, 0xAE, 0x16, 0xAB, 0xBD, 0xDA, 0xDE, 0x57, 0x06, // ...<2E><><EFBFBD><EFBFBD>O<EFBFBD>.<2E><><EFBFBD><EFBFBD>W.
|
||||
0xB7, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>%..............
|
||||
0x05, 0xAB, 0xF2, 0x43, 0x87, 0x7C, 0x56, 0x4D, 0xB2, 0x7C, 0x44, 0xD0, 0xF9, 0xA3, 0xDA, 0xBD, // .<2E><>C.|VM<56>|D<><44><EFBFBD>ڽ
|
||||
0xD7, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>%..............
|
||||
0x65, 0x8E, 0x86, 0xEC, 0xDF, 0xFA, 0x59, 0x47, 0xB2, 0x3E, 0x93, 0xFE, 0x37, 0xF2, 0xCC, 0x29, // e..<2E><><EFBFBD>YG<59>>.<2E>7<EFBFBD><37>)
|
||||
0xF5, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>%..............
|
||||
0xEA, 0x50, 0xDB, 0xE4, 0xA1, 0xBD, 0x66, 0x45, 0xB0, 0x47, 0x0C, 0xA5, 0x0A, 0xBC, 0x6F, 0x07, // <20>P<EFBFBD>䡽fE<66>G.<2E>.<2E>o.
|
||||
0x20, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // &..............
|
||||
0x14, 0xF8, 0xF4, 0x0D, 0x57, 0x3F, 0x8B, 0x4B, 0x9A, 0x9D, 0xFD, 0xDA, 0xDC, 0xD6, 0x9F, 0xAC, // .<2E><>.W?.K..<2E><><EFBFBD><EFBFBD>.<2E>
|
||||
0x39, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // 9&..............
|
||||
0x09, 0xE5, 0x2E, 0xAE, 0x34, 0x1B, 0xC0, 0x41, 0xAC, 0xB7, 0x6D, 0x46, 0x50, 0x16, 0x89, 0x15, // .<2E>.<2E>4.<2E>A<EFBFBD><41>mFP...
|
||||
0x4D, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // M&..............
|
||||
0x08, 0xED, 0xBB, 0x46, 0x7B, 0x9C, 0xFC, 0x48, 0xA6, 0x14, 0x95, 0x25, 0x05, 0x73, 0xF4, 0xEA, // .<2E><>F{.<2E>H<EFBFBD>..%.s<><73>
|
||||
0x62, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // b&..............
|
||||
0x05, 0xD6, 0xB6, 0x1C, 0xB3, 0x11, 0x14, 0x4E, 0xBB, 0x30, 0xDA, 0x91, 0xC8, 0xE3, 0x98, 0x3A, // .ֶ.<2E>..N<>0<EFBFBD>.<2E><>.:
|
||||
0x79, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // y&..............
|
||||
0x80, 0x99, 0x2E, 0xB9, 0xD5, 0xB9, 0x21, 0x48, 0x9C, 0x94, 0x14, 0x0F, 0x63, 0x2F, 0x63, 0x12, // ...<2E>չ!H....c/c.
|
||||
0x90, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // .&..............
|
||||
0x29, 0x15, 0x04, 0x5A, 0xF8, 0xFE, 0x07, 0x4D, 0xB0, 0x6F, 0xB5, 0x9B, 0x57, 0x3B, 0x32, 0xD2, // )..Z<><5A>.M<>o<EFBFBD>.W;2<>
|
||||
0xA7, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>&..............
|
||||
0x0D, 0x9A, 0xA0, 0x54, 0x7B, 0xD5, 0x10, 0x4C, 0x8B, 0x69, 0xA8, 0x42, 0xD6, 0x59, 0x0A, 0xD5, // ...T{<7B>.L.i<>B<EFBFBD>Y.<2E>
|
||||
0xC0, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>&..............
|
||||
0x96, 0x78, 0x53, 0xDB, 0x6F, 0x37, 0xAE, 0x48, 0xA4, 0x92, 0x53, 0xD0, 0x54, 0x77, 0x73, 0xD0, // .xS<78>o7<6F>H<EFBFBD>.S<>Tws<77>
|
||||
0xD9, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>&..............
|
||||
0x6A, 0x29, 0xA8, 0xE1, 0x37, 0xDB, 0xD1, 0x44, 0x8C, 0xCE, 0x7B, 0xC9, 0x61, 0xD5, 0x9C, 0x54, // j)<29><>7<EFBFBD><37>D.<2E>{<7B>a<EFBFBD>.T
|
||||
0xF5, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>&..............
|
||||
0xAA, 0xD3, 0x6D, 0xAA, 0xB4, 0xC2, 0xE2, 0x40, 0xA5, 0x44, 0xA6, 0xBB, 0xB3, 0xF5, 0xC3, 0x95, // <20><>m<EFBFBD><6D><EFBFBD><EFBFBD>@<40>D<EFBFBD><44><EFBFBD><EFBFBD><EFBFBD>.
|
||||
0x11, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // .'..............
|
||||
0xBF, 0xD6, 0x4E, 0xC0, 0xC8, 0x55, 0x47, 0x4B, 0x9F, 0x8E, 0x5A, 0x1F, 0x31, 0xCE, 0xEE, 0x60, // <20><>N<EFBFBD><4E>UGK..Z.1<EFBFBD><EFBFBD>`
|
||||
0x22, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x05, 0x19, 0x01, 0x00, 0x00, 0x00, // "'..............
|
||||
0xA2, 0x84, 0x55, 0x9D, 0x85, 0x2D, 0x9A, 0x41, 0x98, 0x2C, 0xA0, 0x08, 0x88, 0xBB, 0x9D, 0xDF, // <20>.U..-.A.,...<2E>.<2E>
|
||||
0x31, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x05, 0x19, 0x01, 0x00, 0x00, 0x00, // 1'..............
|
||||
0xA0, 0x90, 0x73, 0x19, 0xF6, 0x65, 0x95, 0x4A, 0xBD, 0xC4, 0x55, 0xD5, 0x8A, 0x3B, 0x02, 0x53, // ..s.<2E>e.J<><4A>U<EFBFBD>.;.S
|
||||
0x51, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x05, 0x19, 0x01, 0x00, 0x00, 0x00, // Q'..............
|
||||
0xD4, 0xFC, 0x60, 0x88, 0x7B, 0xA7, 0x20, 0x4A, 0x90, 0x45, 0xA1, 0x50, 0xFF, 0x11, 0xD6, 0x09, // <20><>`.{<7B> J.E<>P<EFBFBD>.<2E>.
|
||||
0x62, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x05, 0x19, 0x01, 0x00, 0x00, 0x00, // b'..............
|
||||
0xA3, 0x18, 0x00, 0xA0, 0x0F, 0xF2, 0x32, 0x46, 0xBF, 0x7C, 0x8D, 0xAA, 0x53, 0x51, 0xC9, 0x14, // <20>....<2E>2F<32>|.<2E>SQ<53>.
|
||||
0x81, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x05, 0x19, 0x01, 0x00, 0x00, 0x00, // .'..............
|
||||
0xAF, 0x8B, 0x01, 0x10, 0x21, 0xCE, 0x60, 0x40, 0x80, 0xBD, 0x47, 0xFE, 0x74, 0xED, 0x4D, 0xAB, // <20>...!<21>`@.<2E>G<EFBFBD>t<EFBFBD>M<EFBFBD>
|
||||
0x9C, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x05, 0x19, 0x00, 0x00, 0x00, 0x00, // .'..............
|
||||
0x48, 0x18, 0xDB, 0x18, 0xE0, 0x12, 0x67, 0x41, 0xB9, 0xD7, 0xDA, 0x7F, 0xCD, 0xA5, 0x07, 0xDB, // H.<2E>.<2E>.gA<67><41><EFBFBD>.ͥ.<2E>
|
||||
0xC5, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x05, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>'..............
|
||||
0xEC, 0x1B, 0x8E, 0x45, 0x7A, 0x83, 0xF6, 0x45, 0xB9, 0xD5, 0x92, 0x5E, 0xD5, 0xD2, 0x99, 0xDE, // <20>..Ez.<2E>E<EFBFBD><45>.^<5E><>.<2E>
|
||||
0xEC, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x05, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>'..............
|
||||
0xE7, 0x97, 0x49, 0xE1, 0x0A, 0x80, 0xF7, 0x4C, 0xAD, 0x10, 0xDE, 0x4B, 0x45, 0xB5, 0x78, 0xDB, // <20>.I<>..<2E>L<EFBFBD>.<2E>KE<4B>x<EFBFBD>
|
||||
0x01, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x05, 0x19, 0x00, 0x00, 0x00, 0x00, // .(..............
|
||||
0x6D, 0xCD, 0x8B, 0xA9, 0x43, 0x53, 0x03, 0x46, 0x8A, 0xFE, 0x59, 0x08, 0xE4, 0x61, 0x11, 0x12, // m<>.<2E>CS.F.<2E>Y.<2E>a..
|
||||
0x18, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x05, 0x19, 0x00, 0x00, 0x00, 0x00, // .(..............
|
||||
0xC1, 0x45, 0xF2, 0xEB, 0xA8, 0x29, 0xAF, 0x4D, 0x9C, 0xB1, 0x38, 0xDF, 0xC6, 0x08, 0xA8, 0xC8, // <20>E<EFBFBD><45><EFBFBD>)<29>M.<2E>8<EFBFBD><38>.<2E><>
|
||||
0x2F, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x05, 0x19, 0x00, 0x00, 0x00, 0x00, // /(..............
|
||||
0x38, 0x32, 0x1C, 0xFE, 0x2A, 0x43, 0xA1, 0x43, 0x8E, 0x25, 0x97, 0xE7, 0xD1, 0xEF, 0x10, 0xF3, // 82.<2E>*C<>C.%.<2E><><EFBFBD>.<2E>
|
||||
0x48, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // H(..............
|
||||
0x6A, 0x45, 0xEE, 0xFF, 0x87, 0xCD, 0x90, 0x43, 0x8E, 0x07, 0x16, 0x14, 0x6C, 0x67, 0x2F, 0xD0, // jE<6A><45>.<2E>.C....lg/<2F>
|
||||
0x59, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // Y(..............
|
||||
0x4F, 0xB7, 0x78, 0xDB, 0x1C, 0xEF, 0x92, 0x48, 0xAB, 0xFE, 0x1E, 0x66, 0xB8, 0x23, 0x1D, 0xF6, // O<>x<EFBFBD>.<2E>.H<><48>.f<>#.<2E>
|
||||
0x6E, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // n(..............
|
||||
0x64, 0x8A, 0x55, 0x78, 0x19, 0xDC, 0xFE, 0x43, 0xA0, 0xD0, 0x80, 0x75, 0xB2, 0xA3, 0x70, 0xA3, // d.Ux.<2E><>C.<2E>.u<><75>p<EFBFBD>
|
||||
0x90, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // .(..............
|
||||
0x1D, 0x6A, 0x2C, 0xC7, 0x52, 0xF2, 0x7E, 0x4E, 0xBD, 0xD1, 0x3F, 0xCA, 0x34, 0x2A, 0xCB, 0x35, // .j,<2C>R<EFBFBD>~N<><4E>?<3F>4*<2A>5
|
||||
0xA3, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // <20>(..............
|
||||
0xB5, 0x87, 0x8D, 0xE5, 0x26, 0x81, 0x80, 0x45, 0x80, 0xFB, 0x86, 0x1B, 0x22, 0xF7, 0x92, 0x96, // <20>..<2E>&..E.<2E>.."<22>..
|
||||
0xC4, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // <20>(..............
|
||||
0xC7, 0x91, 0xB4, 0xCA, 0x18, 0xA9, 0x60, 0x4F, 0xB5, 0x02, 0xDA, 0xB7, 0x5E, 0x33, 0x4F, 0x40, // <20>.<2E><>.<2E>`O<>.ڷ^3O@
|
||||
0xE5, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // <20>(..............
|
||||
0x3D, 0xE6, 0x6C, 0x09, 0xAC, 0x4F, 0xA9, 0x48, 0x82, 0xA9, 0x61, 0xAE, 0x9E, 0x80, 0x0E, 0x5F, // =<3D>l.<2E>O<EFBFBD>H.<2E>a<EFBFBD>..._
|
||||
0x08, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x06, 0x19, 0x01, 0x00, 0x00, 0x00, // .)..............
|
||||
0x32, 0x2B, 0x94, 0xE9, 0x55, 0x2E, 0x97, 0x41, 0xB0, 0xBD, 0x5F, 0xF5, 0x8C, 0xBA, 0x88, 0x60, // 2+.<2E>U..A<><41>_<EFBFBD>.<2E>.`
|
||||
0x25, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // %)..............
|
||||
0x12, 0x82, 0x99, 0xBA, 0x0A, 0x46, 0xDB, 0x44, 0xBF, 0xB5, 0x71, 0xBF, 0x09, 0xD1, 0xC6, 0x8B, // ...<2E>.F<>D<EFBFBD><44>q<EFBFBD>.<2E><>.
|
||||
0x40, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // @)..............
|
||||
0xD6, 0xEC, 0xDD, 0xC6, 0x54, 0x23, 0x19, 0x4C, 0x90, 0x9B, 0x30, 0x6A, 0x30, 0x58, 0x48, 0x4E, // <20><><EFBFBD><EFBFBD>T#.L..0j0XHN
|
||||
0x6C, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // l)..............
|
||||
0xA3, 0xE3, 0xF5, 0xB8, 0x33, 0xED, 0x08, 0x46, 0x81, 0xE1, 0x37, 0xD6, 0xC9, 0xDC, 0xFD, 0x9C, // <20><><EFBFBD><EFBFBD>3<EFBFBD>.F.<2E>7<EFBFBD><37><EFBFBD><EFBFBD>.
|
||||
0x89, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // .)..............
|
||||
0xAF, 0x1A, 0x67, 0x81, 0xD1, 0x79, 0xB1, 0x4E, 0xB0, 0x04, 0x8C, 0xBB, 0xE1, 0x73, 0xAF, 0xEA, // <20>.g.<2E>y<EFBFBD>N<EFBFBD>..<2E><>s<EFBFBD><73>
|
||||
0xB4, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>)..............
|
||||
0x5C, 0x70, 0x3E, 0x11, 0x49, 0xFA, 0xA4, 0x48, 0xBE, 0xEA, 0x7D, 0xD8, 0x79, 0xB4, 0x6B, 0x14, // \p>.I<><49>H<EFBFBD><48>}<7D>y<EFBFBD>k.
|
||||
0xCB, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>)..............
|
||||
0x81, 0x69, 0x6B, 0xC0, 0xFD, 0xD7, 0x35, 0x4A, 0xB7, 0xB4, 0x05, 0x47, 0x42, 0xB7, 0xAF, 0x67, // .ik<69><6B><EFBFBD>5J<35><4A>.GB<47><42>g
|
||||
0xE4, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>)..............
|
||||
0x9F, 0xD7, 0x76, 0x74, 0x48, 0x8E, 0xB4, 0x49, 0xAB, 0x63, 0x4D, 0x0B, 0x81, 0x3A, 0x16, 0xE4, // .<2E>vtH.<2E>I<EFBFBD>cM..:.<2E>
|
||||
0xFD, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>)..............
|
||||
0x54, 0x2D, 0xB8, 0x0A, 0xF4, 0x47, 0xCB, 0x4A, 0x81, 0x8C, 0xCC, 0x5B, 0xF0, 0xEC, 0xB6, 0x49, // T-<2D>.<2E>G<EFBFBD>J..<2E>[<5B><><EFBFBD>I
|
||||
0x18, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // .*..............
|
||||
0x90, 0x85, 0xE8, 0xF7, 0xC7, 0xDF, 0x78, 0x4C, 0xBC, 0xCB, 0x6F, 0x38, 0x65, 0xB9, 0x9D, 0x1A, // ..<2E><><EFBFBD><EFBFBD>xL<78><4C>o8e<38>..
|
||||
0x43, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // C*..............
|
||||
0x9F, 0x2D, 0x4E, 0xCD, 0x59, 0x50, 0x50, 0x4A, 0xA9, 0x2D, 0x05, 0xD5, 0xBB, 0x12, 0x67, 0xC7, // .-N<>YPPJ<50>-.ջ.g<>
|
||||
0x6C, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0B, 0x06, 0x19, 0x00, 0x00, 0x00, 0x00, // l*..............
|
||||
0xC7, 0x52, 0xE9, 0xCD, 0x96, 0x2F, 0x9D, 0x4D, 0x8F, 0x2B, 0x2D, 0x34, 0x9F, 0x64, 0xFC, 0x51, // <20>R<EFBFBD><52>./.M.+-4.d<>Q
|
||||
0x95, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x05, 0x19, 0x00, 0x01, 0x00, 0x00, // .*..............
|
||||
0x6B, 0x3E, 0x38, 0xA4, 0xDA, 0xDA, 0x3D, 0x42, 0xA4, 0x3D, 0xF2, 0x56, 0x78, 0x42, 0x96, 0x76, // k>8<><38><EFBFBD>=B<>=<3D>VxB.v
|
||||
0xB3, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x05, 0x19, 0x00, 0x01, 0x00, 0x00, // <20>*..............
|
||||
0x7B, 0xA0, 0x59, 0xCF, 0x2A, 0x1A, 0xE0, 0x4B, 0xBF, 0xE0, 0x42, 0x3B, 0x58, 0x23, 0xE6, 0x63, // {.Y<>*.<2E>K<EFBFBD><4B>B;X#<23>c
|
||||
0xD3, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x05, 0x19, 0x00, 0x01, 0x00, 0x00, // <20>*..............
|
||||
0x7F, 0x33, 0x9C, 0x2B, 0x1D, 0x7A, 0x71, 0x42, 0x90, 0xA3, 0xC6, 0x85, 0x5A, 0x2B, 0x8A, 0x1C, // .3.+.zqB.<2E><>.Z+..
|
||||
0xF7, 0x2A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x05, 0x19, 0x00, 0x01, 0x00, 0x00, // <20>*..............
|
||||
0x72, 0xAD, 0x1E, 0x63, 0xAB, 0xA8, 0xF8, 0x4D, 0xBB, 0xDF, 0x37, 0x20, 0x29, 0x98, 0x9B, 0xDD, // r<>.c<><63><EFBFBD>M<EFBFBD><4D>7 )..<2E>
|
||||
0x0B, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x05, 0x19, 0x00, 0x01, 0x00, 0x00, // .+..............
|
||||
0x7C, 0x9F, 0xFA, 0xDD, 0x9E, 0xF0, 0xB9, 0x40, 0x8C, 0x1A, 0xBE, 0x87, 0x7A, 0x9A, 0x7F, 0x4B, // |.<2E><>.<2E><>@..<2E>.z..K
|
||||
0x23, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0D, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // #+..............
|
||||
0x56, 0x11, 0xFB, 0x7A, 0x1D, 0x2C, 0xFC, 0x40, 0xB2, 0x60, 0xAA, 0xB7, 0x44, 0x2B, 0x62, 0xFE, // V.<2E>z.,<2C>@<40>`<60><>D+b<>
|
||||
0x3B, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0D, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // ;+..............
|
||||
0xD4, 0x42, 0x25, 0xAD, 0x54, 0x91, 0x6D, 0x4C, 0x8A, 0x44, 0x30, 0xF1, 0x1E, 0xE9, 0x69, 0x89, // <20>B%<25>T.mL.D0<44>.<2E>i.
|
||||
0x5F, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // _+..............
|
||||
0xD0, 0xE3, 0x01, 0x24, 0x0A, 0xC5, 0x58, 0x4B, 0x87, 0xB2, 0x7E, 0x79, 0x4B, 0x7D, 0x26, 0x07, // <20><>.$.<2E>XK.<2E>~yK}&.
|
||||
0x7C, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // |+..............
|
||||
0x90, 0x4D, 0xAF, 0xC1, 0xBC, 0xD1, 0xCA, 0x44, 0x85, 0xD4, 0x00, 0x3B, 0xA3, 0x3D, 0xB3, 0xB9, // .M<><4D><EFBFBD><EFBFBD><EFBFBD>D.<2E>.;<3B>=<3D><>
|
||||
0xA9, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>+..............
|
||||
0x0A, 0x49, 0x98, 0x81, 0xD0, 0xAD, 0xB2, 0x47, 0xB3, 0xBA, 0x31, 0x6B, 0x12, 0xD6, 0x47, 0xB4, // .I..Э<>G<EFBFBD><47>1k.<2E>G<EFBFBD>
|
||||
0xC8, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>+..............
|
||||
0x20, 0xE2, 0xB6, 0x68, 0x09, 0xCF, 0x6B, 0x46, 0x92, 0xD3, 0x45, 0xCD, 0x96, 0x4B, 0x95, 0x09, // <20><>h.<2E>kF.<2E>E<EFBFBD>.K..
|
||||
0xF7, 0x2B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>+..............
|
||||
0x77, 0xEF, 0x09, 0xFD, 0x47, 0x56, 0xFF, 0x4E, 0x80, 0x9C, 0xAF, 0x2B, 0x64, 0x65, 0x9A, 0x45, // w<>.<2E>GV<47>N..<2E>+de.E
|
||||
0x16, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // .,..............
|
||||
0x6B, 0x17, 0xEF, 0x01, 0x0D, 0x3E, 0x2A, 0x42, 0xB4, 0xF8, 0x4E, 0xA8, 0x80, 0x03, 0x5E, 0x8F, // k.<2E>..>*B<><42>N<EFBFBD>..^.
|
||||
0x45, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // E,..............
|
||||
0x5C, 0x51, 0x72, 0xF7, 0x87, 0x0E, 0xD5, 0x48, 0xA6, 0x76, 0xE6, 0x96, 0x2C, 0x3E, 0x11, 0x95, // \Qr<51>..<2E>H<EFBFBD>v<EFBFBD>.,>..
|
||||
0x65, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // e,..............
|
||||
0xD9, 0x8B, 0x8B, 0xA7, 0x17, 0x80, 0xF5, 0x4D, 0xB8, 0x6A, 0x09, 0xF7, 0x56, 0xAF, 0xFA, 0x7C, // <20>..<2E>..<2E>M<EFBFBD>j.<2E>V<EFBFBD><56>|
|
||||
0x84, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // .,..............
|
||||
0xF3, 0x8C, 0xA1, 0xCD, 0x96, 0xC1, 0xAD, 0x46, 0xB2, 0x89, 0x60, 0xC0, 0x72, 0x86, 0x99, 0x94, // <20>.<2E><>.<2E><>F<EFBFBD>.`<60>r...
|
||||
0x9F, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // .,..............
|
||||
0xB9, 0x1F, 0x53, 0x68, 0x11, 0x55, 0x89, 0x49, 0x97, 0xBE, 0xD1, 0x1A, 0x0F, 0x55, 0x63, 0x3F, // <20>.Sh.U.I.<2E><>..Uc?
|
||||
0xC2, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>,..............
|
||||
0x3D, 0x2B, 0x0E, 0x62, 0xE7, 0x09, 0xFD, 0x42, 0x80, 0x2A, 0x17, 0xA1, 0x36, 0x52, 0xFE, 0x7A, // =+.b<>.<2E>B.*.<2E>6R<36>z
|
||||
0xE2, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>,..............
|
||||
0x1B, 0xE6, 0x82, 0x74, 0x89, 0xC5, 0x7F, 0x4B, 0x8E, 0xCC, 0x46, 0xD4, 0x55, 0xAC, 0x3B, 0x87, // .<2E>.t.<2E>.K.<2E>F<EFBFBD>U<EFBFBD>;.
|
||||
0x04, 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // .-..............
|
||||
0x1C, 0x85, 0x26, 0x8A, 0x7E, 0x1C, 0xD3, 0x48, 0xA6, 0x87, 0xFB, 0xCA, 0x9B, 0x9A, 0xC1, 0x6B, // ..&.~.<2E>H<EFBFBD>.<2E><>..<2E>k
|
||||
0x26, 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x04, 0x05, 0x00, 0x00, 0x00, 0x00, // &-..............
|
||||
0x60, 0x3D, 0x64, 0xD3, 0x42, 0x0C, 0x2D, 0x41, 0xA7, 0xD6, 0x52, 0xE6, 0x63, 0x53, 0x27, 0xF6, // `=d<>B.-A<><41>R<EFBFBD>cS'<27>
|
||||
0x54, 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x05, 0x05, 0x00, 0x00, 0x00, 0x00, // T-..............
|
||||
0x83, 0x1C, 0xFD, 0x95, 0xF5, 0x7D, 0x4A, 0x49, 0xBE, 0x8B, 0x13, 0x00, 0xE1, 0xC9, 0xD1, 0xCD, // ..<2E>.<2E>}JI<4A>...<2E><><EFBFBD><EFBFBD>
|
||||
0x73, 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x05, 0x05, 0x00, 0x00, 0x00, 0x00, // s-..............
|
||||
0xC7, 0x86, 0x54, 0x7D, 0x20, 0xE1, 0x71, 0x47, 0xB7, 0xF1, 0x7B, 0x56, 0xC6, 0xD3, 0x17, 0x0C, // <20>.T} <20>qG<71><47>{V<><56>..
|
||||
0x9A, 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x05, 0x05, 0x00, 0x00, 0x00, 0x00, // .-..............
|
||||
0x41, 0xEC, 0xF5, 0xF0, 0x55, 0x0D, 0x32, 0x47, 0xAF, 0x02, 0x44, 0x0A, 0x44, 0xA3, 0xCF, 0x0F, // A<><41><EFBFBD>U.2G<EFBFBD>.D.D<><44>.
|
||||
0xC2, 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x05, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>-..............
|
||||
0xBE, 0xA2, 0x43, 0xB7, 0xD4, 0x68, 0xD3, 0x4D, 0xAF, 0x32, 0x92, 0x42, 0x5B, 0x7B, 0xB6, 0x23, // <20><>C<EFBFBD><43>h<EFBFBD>M<EFBFBD>2.B[{<7B>#
|
||||
0xDF, 0x2D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>-..............
|
||||
0x44, 0x13, 0x09, 0x00, 0xA4, 0x1E, 0x37, 0x4F, 0xB7, 0x89, 0x01, 0x75, 0x0B, 0xA6, 0x98, 0x8C, // D...<2E>.7O<EFBFBD>..u.<2E>..
|
||||
0x04, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // ................
|
||||
0xA4, 0x6B, 0xDB, 0x21, 0x7B, 0x9A, 0x14, 0x4A, 0x9E, 0x29, 0x64, 0xA6, 0x0C, 0x59, 0x30, 0x1D, // <20>k<EFBFBD>!{..J.)d<>.Y0.
|
||||
0x26, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // &...............
|
||||
0x4E, 0x04, 0xCA, 0xB3, 0x58, 0xA3, 0x68, 0x4D, 0x98, 0x83, 0xAA, 0xA2, 0x94, 0x1A, 0xCA, 0x99, // N.ʳX<CAB3>hM..<2E><>..<2E>.
|
||||
0x48, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // H...............
|
||||
0x1B, 0x34, 0xBF, 0x3D, 0x6C, 0x5F, 0xA7, 0x4F, 0xB9, 0x36, 0x69, 0x9D, 0xCE, 0x9E, 0x26, 0x3F, // .4<EFBFBD>=l_<6C>O<EFBFBD>6i.<2E>.&?
|
||||
0x68, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // h...............
|
||||
0xF4, 0x33, 0x44, 0x7B, 0xE7, 0xB1, 0x88, 0x47, 0x89, 0x5A, 0xC4, 0x53, 0x78, 0xD3, 0x82, 0x53, // <20>3D{<7B><>.G.Z<>Sx<53>.S
|
||||
0x87, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // ................
|
||||
0x79, 0x67, 0xC5, 0x21, 0x49, 0xB4, 0x20, 0x4D, 0xAD, 0xFC, 0xEE, 0xCE, 0x0E, 0x1A, 0xD7, 0x4B, // yg<79>!I<> M<><4D><EFBFBD><EFBFBD>..<2E>K
|
||||
0xA9, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>...............
|
||||
0x0F, 0x1B, 0x5A, 0x2B, 0xAB, 0xA5, 0x54, 0x4C, 0xAC, 0x2F, 0xA6, 0xD9, 0x48, 0x24, 0xA2, 0x83, // ..Z+<2B><>TL<54>/<2F><>H$<24>.
|
||||
0xC8, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>...............
|
||||
0x10, 0x54, 0x1C, 0x8C, 0x39, 0x9F, 0x05, 0x48, 0x8C, 0x9D, 0x63, 0xA0, 0x77, 0x06, 0x35, 0x8F, // .T..9..H..c.w.5.
|
||||
0xE7, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // <20>...............
|
||||
0x6E, 0xAF, 0xD9, 0x43, 0x86, 0x5E, 0xE8, 0x4B, 0xA7, 0x97, 0xD0, 0x72, 0xA0, 0x46, 0x89, 0x6C, // n<><6E>C.^<5E>K<EFBFBD>.<2E>r.F.l
|
||||
0x04, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // ./..............
|
||||
0xE7, 0x08, 0x9C, 0xE4, 0x82, 0xDA, 0xF8, 0x42, 0xBD, 0xE2, 0xB5, 0x70, 0xFB, 0xCA, 0xE7, 0x6C, // <20>..<2E>.<2E><>B<EFBFBD><42><EFBFBD>p<EFBFBD><70><EFBFBD>l
|
||||
0x1E, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // ./..............
|
||||
0x22, 0xEF, 0xC5, 0x61, 0x4F, 0xF1, 0x53, 0x45, 0xA8, 0x24, 0xC4, 0xB3, 0x1E, 0x84, 0xB1, 0x00, // "<22><>aO<61>SE<53>$ij..<2E>.
|
||||
0x53, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, // S/..............
|
||||
0x44, 0x7C, 0x94, 0xBA, 0x9D, 0xD1, 0x86, 0x47, 0xB6, 0xAE, 0x22, 0x77, 0x0B, 0xC9, 0x4C, 0x54, // D|.<2E>.<2E>.G<><47>"w.<2E>LT
|
||||
0x86, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x06, 0x05, 0x00, 0x01, 0x00, 0x00, // ./..............
|
||||
0x06, 0x16, 0x3D, 0x4F, 0xEA, 0x3F, 0x01, 0x4C, 0xBE, 0x3C, 0x8D, 0x67, 0x1C, 0x40, 0x1E, 0x3B, // ..=O<>?.L<><.g.@.;
|
||||
0xAD, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>/..............
|
||||
0xC2, 0x2D, 0x68, 0x2C, 0x68, 0x8B, 0x63, 0x4F, 0xA1, 0x65, 0xAE, 0x29, 0x1D, 0x4C, 0xF1, 0x38, // <20>-h,h.cO<63>e<EFBFBD>).L<>8
|
||||
0xC4, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>/..............
|
||||
0x08, 0xFF, 0xD8, 0xCF, 0xD7, 0xC0, 0x2B, 0x45, 0x9F, 0x60, 0xEF, 0x5C, 0x70, 0xC3, 0x20, 0x94, // .<2E><><EFBFBD><EFBFBD><EFBFBD>+E.`<60>\p<> .
|
||||
0xDD, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>/..............
|
||||
0x50, 0x49, 0xF5, 0xD4, 0xF2, 0x26, 0xB4, 0x4F, 0xBA, 0x21, 0xFF, 0xAB, 0x16, 0xAF, 0xCA, 0xDE, // PI<50><49><EFBFBD>&<26>O<EFBFBD>!<21><>.<2E><><EFBFBD>
|
||||
0xF6, 0x2F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x17, 0x04, 0x19, 0x00, 0x00, 0x00, 0x00, // <20>/..............
|
||||
0x72, 0xE8, 0xE7, 0x8C, 0x8C, 0x18, 0x98, 0x4B, 0x9D, 0x90, 0xF8, 0xF9, 0x0B, 0x7A, 0xAD, 0x02, // r<><72>....K..<2E><>.z<>.
|
||||
0x11, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // .0..............
|
||||
0x70, 0xD4, 0xE5, 0xCE, 0x3B, 0x6E, 0xCC, 0x4F, 0x8C, 0x2B, 0xD1, 0x74, 0x28, 0x56, 0x8A, 0x9F, // p<><70><EFBFBD>;n<>O.+<2B>t(V..
|
||||
0x24, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // $0..............
|
||||
0xB8, 0xD0, 0x47, 0x89, 0x3B, 0xC3, 0xE1, 0x43, 0x8C, 0x56, 0x9B, 0x67, 0x4C, 0x05, 0x28, 0x32, // <20><>G.;<3B><>C.V.gL.(2
|
||||
0x36, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // 60..............
|
||||
0x39, 0x66, 0x6B, 0xCA, 0xD6, 0x4A, 0xAE, 0x40, 0xA5, 0x75, 0x14, 0xDE, 0xE0, 0x7F, 0x64, 0x30, // 9fk<66><6B>J<EFBFBD>@<40>u.<2E><>.d0
|
||||
0x49, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // I0..............
|
||||
0x40, 0x96, 0xED, 0x09, 0x20, 0xF0, 0x0A, 0x40, 0xAC, 0xD8, 0xD7, 0xD8, 0x67, 0xDF, 0xD9, 0xC2, // @.<2E>. <20>.@<40><><EFBFBD><EFBFBD>g<EFBFBD><67><EFBFBD>
|
||||
0x5E, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // ^0..............
|
||||
0x49, 0x4E, 0x3D, 0xEF, 0x3D, 0xA5, 0x81, 0x4D, 0xA2, 0xB1, 0x2C, 0xA6, 0xC2, 0x55, 0x6B, 0x2C, // IN=<3D>=<3D>.M<><4D>,<2C><>Uk,
|
||||
0x72, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // r0..............
|
||||
0x5C, 0x6F, 0x58, 0xAB, 0x56, 0x52, 0x32, 0x46, 0x96, 0x2F, 0xFE, 0xFD, 0x8B, 0x49, 0xE6, 0xF4, // \oX<6F>VR2F./<2F><>.I<><49>
|
||||
0x86, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // .0..............
|
||||
0x92, 0xC1, 0xB7, 0xEC, 0xAB, 0x73, 0xED, 0x4D, 0xAC, 0xF4, 0x23, 0x99, 0xB0, 0x95, 0xD0, 0xCC, // .<2E><><EFBFBD><EFBFBD>s<EFBFBD>M<EFBFBD><4D>#.<2E>.<2E><>
|
||||
0x9A, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // .0..............
|
||||
0x1D, 0x3B, 0x59, 0x45, 0xB1, 0xDF, 0x91, 0x4E, 0xBB, 0xFB, 0x2D, 0x5D, 0x0C, 0xE2, 0x22, 0x7A, // .;YE<59><45>.N<><4E>-].<2E>"z
|
||||
0xAE, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // <20>0..............
|
||||
0x60, 0x77, 0x32, 0x6F, 0x5C, 0x8C, 0x7C, 0x41, 0x9B, 0x61, 0x83, 0x6A, 0x98, 0x28, 0x7E, 0x0C, // `w2o\.|A.a.j.(~.
|
||||
0xC5, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // <20>0..............
|
||||
0xF7, 0x3F, 0x13, 0xDF, 0x14, 0xBF, 0x95, 0x4F, 0xAF, 0xE3, 0x7B, 0x48, 0xE7, 0xE3, 0x31, 0xEF, // <20>?.<2E>.<2E>.O<><4F>{H<><48>1<EFBFBD>
|
||||
0xE3, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // <20>0..............
|
||||
0x61, 0xBF, 0xC7, 0x5D, 0xC9, 0x5E, 0x96, 0x49, 0x9C, 0xCB, 0xDF, 0x80, 0x6A, 0x2D, 0x0E, 0xFE, // a<><61>]<5D>^.I.<2E><>.j-.<2E>
|
||||
0xFB, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // <20>0..............
|
||||
0x75, 0x4F, 0x0C, 0xB5, 0x9B, 0x59, 0xE8, 0x43, 0x8D, 0xCD, 0x10, 0x81, 0xA7, 0x96, 0x72, 0x41, // uO.<2E>.Y<>C.<2E>..<2E>.rA
|
||||
0x18, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // .1..............
|
||||
0x87, 0x9E, 0x50, 0xEA, 0xA1, 0x07, 0x45, 0x4A, 0x9E, 0xDC, 0xEB, 0xA5, 0xA3, 0x9F, 0x36, 0xAF, // ..P<><50>.EJ.<2E>륣.6<EFBFBD>
|
||||
0x2E, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // .1..............
|
||||
0x78, 0xA6, 0xA2, 0x9D, 0x6B, 0xFB, 0x67, 0x4E, 0xAB, 0x84, 0x60, 0xDD, 0x6A, 0x9C, 0x81, 0x9A, // x<><78>.k<>gN<67>.`<60>j...
|
||||
0x50, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // P1..............
|
||||
0x05, 0x61, 0x23, 0x92, 0x67, 0xBB, 0x4F, 0x49, 0x94, 0xC7, 0x7F, 0x7A, 0x60, 0x79, 0x29, 0xBD, // .a#.g<>OI.<2E>.z`y)<29>
|
||||
0x65, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // e1..............
|
||||
0x9C, 0x38, 0x58, 0xE5, 0xC3, 0x83, 0x29, 0x4B, 0xAD, 0xFE, 0x5E, 0x4D, 0x7F, 0x46, 0xC3, 0x58, // .8X<EFBFBD><EFBFBD>.)K<><4B>^M.F<>X
|
||||
0x7F, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // .1..............
|
||||
0xFF, 0x33, 0xD8, 0x9E, 0x92, 0x4F, 0x36, 0x4F, 0xB3, 0x70, 0x86, 0x83, 0xA4, 0xF1, 0x32, 0x75, // <20>3<EFBFBD>..O6O<36>p..<2E><>2u
|
||||
0x95, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // .1..............
|
||||
0xE7, 0x82, 0x08, 0x2D, 0xE7, 0xA4, 0x3B, 0x42, 0x8C, 0xCC, 0x70, 0xD9, 0x1E, 0x01, 0x58, 0xB1, // <20>..-<2D><>;B.<2E>p<EFBFBD>..X<>
|
||||
0xB0, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x18, 0x04, 0x05, 0x00, 0x00, 0x01, 0x00, // <20>1..............
|
||||
0x2C, 0x62, 0xE7, 0x6E, 0xD8, 0x18, 0x05, 0x40, 0x9F, 0xB7, 0x92, 0xDB, 0x64, 0x4A, 0x27, 0x9B, // ,b<>n<EFBFBD>..@.<2E>.<2E>dJ'.
|
||||
0xC1, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // <20>1..............
|
||||
0x52, 0x1D, 0x46, 0xF7, 0x2B, 0x7C, 0xB2, 0x43, 0x87, 0x44, 0xEA, 0x95, 0x8E, 0x0B, 0xD0, 0x9A, // R.F<>+|<7C>C.D<>...<2E>.
|
||||
0xD4, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // <20>1..............
|
||||
0x40, 0x80, 0x0B, 0xA3, 0x8A, 0xD6, 0x3F, 0x42, 0xB0, 0xB5, 0x9C, 0xE2, 0x92, 0xEA, 0x5A, 0x8F, // @..<2E>.<2E>?B<><42>.<2E>.<2E>Z.
|
||||
0xE6, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // <20>1..............
|
||||
0xE3, 0x11, 0x9F, 0x1B, 0x5C, 0xC8, 0x1B, 0x4E, 0xBB, 0x29, 0x87, 0x9A, 0xD2, 0xC9, 0x09, 0xE3, // <20>...\<5C>.N<>)..<2E><>.<2E>
|
||||
0xFB, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // <20>1..............
|
||||
0x6B, 0x1C, 0x98, 0xDC, 0x8E, 0xFC, 0x0F, 0x42, 0xAA, 0x43, 0xF8, 0xF3, 0x3E, 0x5C, 0x09, 0x23, // k..<2E>.<2E>.B<>C<EFBFBD><43>>\.#
|
||||
0x0C, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // .2..............
|
||||
0xE6, 0xF3, 0xE1, 0xEF, 0xA2, 0xAE, 0x44, 0x41, 0xA2, 0x08, 0x32, 0xAA, 0x87, 0x2B, 0x65, 0x45, // <20><><EFBFBD>DA<44>.2<EFBFBD>.+eE
|
||||
0x1E, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // .2..............
|
||||
0xFA, 0x3A, 0x1C, 0x77, 0xC5, 0x50, 0x3F, 0x44, 0xB1, 0x51, 0xFF, 0x25, 0x46, 0xD8, 0x63, 0xA0, // <20>:.w<>P?D<>Q<EFBFBD>%F<>c.
|
||||
0x32, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // 22..............
|
||||
0x49, 0x26, 0x76, 0x8C, 0xD1, 0x97, 0x53, 0x49, 0xAD, 0x27, 0xB7, 0xE2, 0xC2, 0x5B, 0x97, 0x2E, // I&v.<2E>.SI<53>'<27><><EFBFBD>[..
|
||||
0x46, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // F2..............
|
||||
0x9C, 0xDA, 0x22, 0xB3, 0xE2, 0xA2, 0x58, 0x40, 0x9E, 0x4E, 0xF5, 0x9A, 0x69, 0x70, 0xBD, 0x69, // .<2E>"<22><><EFBFBD>X@.N<>.ip<69>i
|
||||
0x5D, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // ]2..............
|
||||
0x4A, 0x12, 0x5D, 0x4A, 0x20, 0xE6, 0xBA, 0x44, 0xB6, 0xFF, 0x65, 0x89, 0x61, 0xB3, 0x3B, 0x9A, // J.]J <20><>D<EFBFBD><44>e.a<>;.
|
||||
0x7B, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // {2..............
|
||||
0xD1, 0x28, 0x7A, 0x42, 0x7C, 0xD1, 0xBF, 0x4A, 0xB7, 0x17, 0x32, 0xC7, 0x80, 0xBA, 0x6F, 0x07, // <20>(zB|ѿJ<D1BF>.2<EFBFBD>.<2E>o.
|
||||
0x93, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // .2..............
|
||||
0xF1, 0x9F, 0xC7, 0x00, 0x50, 0x68, 0x3D, 0x44, 0xBF, 0x61, 0x71, 0xCD, 0xE0, 0xDE, 0x30, 0x5F, // <20>.<2E>.Ph=D<>aq<61><71><EFBFBD>0_
|
||||
0xB0, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // <20>2..............
|
||||
0x38, 0xFB, 0x3A, 0xB1, 0x79, 0xCD, 0xE5, 0x4A, 0x9F, 0x7F, 0xEE, 0xD0, 0x58, 0xD7, 0x50, 0xCA, // 8<>:<3A>y<EFBFBD><79>J..<2E><>X<EFBFBD>P<EFBFBD>
|
||||
0xC6, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // <20>2..............
|
||||
0x0E, 0xC1, 0x3A, 0xE1, 0xD0, 0x75, 0xFF, 0x4A, 0xA0, 0xCD, 0x76, 0x49, 0x82, 0xCF, 0x54, 0x1C, // .<2E>:<3A><>u<EFBFBD>J.<2E>vI.<2E>T.
|
||||
0xDB, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // <20>2..............
|
||||
0xF0, 0xFA, 0x4E, 0xAC, 0x1F, 0xF8, 0x61, 0x4F, 0xBD, 0xF7, 0xEA, 0x32, 0xB0, 0x2A, 0xB1, 0x17, // <20><>N<EFBFBD>.<2E>aO<61><4F><EFBFBD>2<EFBFBD>*<2A>.
|
||||
0xF1, 0x32, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // <20>2..............
|
||||
0xC6, 0xB1, 0xF5, 0xD9, 0x86, 0x53, 0x5A, 0x49, 0x88, 0xF9, 0x9A, 0xD6, 0xB4, 0x1A, 0xC9, 0xB3, // Ʊ<><C6B1>.SZI.<2E>.ִ.ɳ
|
||||
0x0C, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x19, 0x05, 0x05, 0x00, 0x00, 0x02, 0x00, // .3..............
|
||||
0xE2, 0x38, 0xB5, 0x44, 0x34, 0xFB, 0x32, 0x47, 0x81, 0xE4, 0x64, 0x4C, 0x17, 0xD2, 0xE7, 0x46, // <20>8<EFBFBD>D4<44>2G.<2E>dL.<2E><>F
|
||||
0x1D, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // .3..............
|
||||
0xA0, 0xBF, 0x73, 0x93, 0xB3, 0x97, 0x87, 0x45, 0xAB, 0x73, 0x30, 0x93, 0x44, 0x61, 0xD5, 0x5C, // .<2E>s.<2E>..E<>s0.Da<44>.
|
||||
0x3E, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // >3..............
|
||||
0xB4, 0x6E, 0x28, 0xAA, 0x6F, 0x55, 0xEB, 0x4E, 0x96, 0x7C, 0xC1, 0xB7, 0x71, 0xB7, 0x67, 0x3E, // <20>n(<28>oU<6F>N.|<7C><>q<EFBFBD>g>
|
||||
0x5E, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // ^3..............
|
||||
0x56, 0x82, 0xCC, 0x7C, 0xAA, 0xFB, 0xC6, 0x49, 0xB2, 0xA9, 0xF5, 0xAF, 0xB4, 0x25, 0x7C, 0xD2, // V.<2E>|<7C><><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>%|<7C>
|
||||
0x7F, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // .3..............
|
||||
0x17, 0xFE, 0x3D, 0xC5, 0x00, 0xCC, 0x67, 0x49, 0xB1, 0x88, 0xA0, 0x88, 0xA9, 0x65, 0x49, 0x4D, // .<2E>=<3D>.<2E>gI<67>...<2E>eIM
|
||||
0xA2, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // <20>3..............
|
||||
0x7D, 0xA8, 0x16, 0x28, 0xED, 0xE1, 0x97, 0x40, 0xB3, 0x11, 0xE2, 0x34, 0x1C, 0x57, 0xB1, 0x79, // }<7D>.(<28><>.@<40>.<2E>4.W<>y
|
||||
0xC1, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // <20>3..............
|
||||
0x08, 0xF9, 0xC0, 0x67, 0x4F, 0x18, 0x64, 0x4F, 0x82, 0x50, 0x12, 0xDB, 0x79, 0x7A, 0xB3, 0xC3, // .<2E><>gO.dO.P.<2E>yz<79><7A>
|
||||
0xE1, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // <20>3..............
|
||||
0x7A, 0x4E, 0xCE, 0x7B, 0x80, 0xDD, 0x82, 0x46, 0x98, 0xFA, 0xF9, 0x93, 0x72, 0x58, 0x03, 0xD2, // zN<7A>{.<2E>.F.<2E><>.rX.<2E>
|
||||
0x03, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // .4..............
|
||||
0x0A, 0x0C, 0xC1, 0x1E, 0xF6, 0x54, 0x3E, 0x45, 0xB8, 0x5A, 0x6F, 0xA1, 0xBB, 0xFE, 0xA9, 0xB7, // ..<2E>.<2E>T>E<>Zo<5A><6F><EFBFBD><EFBFBD><EFBFBD>
|
||||
0x25, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // %4..............
|
||||
0xBF, 0xB5, 0xD2, 0x87, 0x7B, 0xD4, 0xFB, 0x41, 0xAF, 0x62, 0x71, 0xC3, 0x82, 0xF5, 0xCC, 0x85, // <20><><EFBFBD>.{<7B><>A<EFBFBD>bq<62>.<2E><>.
|
||||
0x4A, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // J4..............
|
||||
0xA9, 0x50, 0xFE, 0x3C, 0x03, 0x0E, 0x29, 0x4B, 0x97, 0x54, 0x9F, 0x19, 0x3F, 0x07, 0xB7, 0x1F, // <20>P<EFBFBD><..)K.T..?.<2E>.
|
||||
0x76, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // v4..............
|
||||
0x57, 0x9E, 0xE4, 0x39, 0x68, 0xAE, 0xE3, 0x4E, 0xB0, 0x98, 0x26, 0x48, 0x0D, 0xF3, 0xDA, 0x96, // W.<2E>9h<39><68>N<EFBFBD>.&H.<2E><>.
|
||||
0x9C, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // .4..............
|
||||
0x17, 0x21, 0xAA, 0x15, 0x79, 0x8F, 0xA8, 0x49, 0x83, 0x17, 0x75, 0x30, 0x26, 0xD6, 0xA0, 0x54, // .!<21>.y.<2E>I..u0&<26>.T
|
||||
0xC7, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // <20>4..............
|
||||
0x0E, 0xD6, 0xBF, 0xCF, 0x5F, 0x0B, 0x7D, 0x42, 0x91, 0x7C, 0xA4, 0xDF, 0x42, 0xA8, 0x0E, 0x44, // .ֿ<>_.}B.|<7C><>B<EFBFBD>.D
|
||||
0xEB, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // <20>4..............
|
||||
0x81, 0xCC, 0x12, 0x70, 0x87, 0x88, 0xE9, 0x42, 0xB1, 0x7D, 0x4E, 0x5E, 0x42, 0x76, 0x0F, 0x0D, // .<2E>.p..<2E>B<EFBFBD>}N^Bv..
|
||||
0x0F, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // .5..............
|
||||
0xB6, 0x7E, 0x9C, 0xDE, 0x85, 0x5A, 0x0D, 0x42, 0x97, 0x03, 0xFF, 0xF1, 0x1B, 0xDD, 0x4D, 0x43, // <20>~.<2E>.Z.B..<2E><>.<2E>MC
|
||||
0x38, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1A, 0x05, 0x05, 0x00, 0x01, 0x00, 0x00, // 85..............
|
||||
0x0C, 0xFC, 0xC0, 0x67, 0xBA, 0xDE, 0x1B, 0x40, 0xBF, 0x8B, 0x9C, 0x8A, 0xD8, 0x39, 0x58, 0x04, // .<2E><>g<EFBFBD><67>.@<40>...<2E>9X.
|
||||
0x57, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // W5..............
|
||||
0x36, 0x5D, 0xE6, 0xC3, 0x1F, 0x14, 0x2F, 0x4D, 0xA3, 0x03, 0xA8, 0x42, 0xEE, 0x75, 0x6A, 0x29, // 6]<5D><>../M<>.<2E>B<EFBFBD>uj)
|
||||
0x6A, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // j5..............
|
||||
0xCB, 0xBC, 0xAA, 0x9C, 0xB1, 0x61, 0x4B, 0x4B, 0x8B, 0xEC, 0xD1, 0x0A, 0x3C, 0x3A, 0xC2, 0xCE, // ˼<>.<2E>aKK.<2E><>.<:<3A><>
|
||||
0x7C, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // |5..............
|
||||
0x6E, 0xEA, 0x14, 0xE9, 0xFA, 0xA5, 0x39, 0x44, 0xA3, 0x94, 0xA9, 0xBB, 0x32, 0x93, 0xCA, 0x09, // n<>.<2E><><EFBFBD>9D<39>.<2E><>2.<2E>.
|
||||
0x8E, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // .5..............
|
||||
0x59, 0xCE, 0xCA, 0xD8, 0xD2, 0x33, 0xC7, 0x4A, 0x9B, 0x1B, 0x9B, 0x72, 0x33, 0x9C, 0x51, 0xC8, // Y<><59><EFBFBD><EFBFBD>3<EFBFBD>J...r3.Q<>
|
||||
0xA2, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>5..............
|
||||
0x65, 0x92, 0x9D, 0xEC, 0x1E, 0x9D, 0xD0, 0x4E, 0x83, 0x8A, 0xCD, 0xC2, 0x0F, 0x25, 0x51, 0xA1, // e..<2E>..<2E>N..<2E><>.%Q<>
|
||||
0xB6, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>5..............
|
||||
0xBA, 0x1B, 0x0B, 0xD7, 0x93, 0xB8, 0x44, 0x45, 0x96, 0xE2, 0xB7, 0xA3, 0x18, 0x09, 0x1C, 0x33, // <20>..<2E>.<2E>DE.ⷣ...3
|
||||
0xCA, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>5..............
|
||||
0x6F, 0x59, 0x50, 0xD4, 0x4D, 0x89, 0xE0, 0x49, 0x96, 0x6A, 0xFD, 0x39, 0xED, 0x4C, 0x4C, 0x64, // oYP<59>M.<2E>I.j<>9<EFBFBD>LLd
|
||||
0xE1, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>5..............
|
||||
0x97, 0x41, 0x41, 0x4F, 0xC2, 0x0F, 0x01, 0x4C, 0xB6, 0x8A, 0x86, 0xCB, 0xB9, 0xAC, 0x25, 0x4C, // .AAO<41>..L<>..˹<>%L
|
||||
0xFF, 0x35, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>5..............
|
||||
0x10, 0x81, 0x9B, 0x82, 0x6F, 0x0E, 0x49, 0x43, 0xBC, 0xA4, 0x42, 0x80, 0x35, 0x77, 0x78, 0x8D, // ....o.IC<49><43>B.5wx.
|
||||
0x17, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // .6..............
|
||||
0xBC, 0xDA, 0x7D, 0xDA, 0xBE, 0x3F, 0x47, 0x44, 0x9E, 0x01, 0x6A, 0xB7, 0x44, 0x0B, 0x4C, 0xD4, // <20><>}ھ?GD..j<>D.L<>
|
||||
0x33, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // 36..............
|
||||
0x45, 0xCA, 0xBA, 0xCB, 0x6A, 0x55, 0x16, 0x44, 0xAD, 0x03, 0xBD, 0xA5, 0x98, 0xEA, 0xA7, 0xC8, // Eʺ<45>jU.D<>.<2E><>.<2E><><EFBFBD>
|
||||
0x50, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // P6..............
|
||||
0xCB, 0x06, 0x1A, 0x04, 0xB8, 0xC5, 0x72, 0x47, 0x80, 0x9F, 0x41, 0x6D, 0x03, 0xD1, 0x66, 0x54, // <20>...<2E><>rG..Am.<2E>fT
|
||||
0x71, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // q6..............
|
||||
0xE1, 0x4E, 0xE0, 0x83, 0x8D, 0xFA, 0x6D, 0x43, 0x89, 0x94, 0xD3, 0x1A, 0x86, 0x2C, 0xAB, 0x77, // <20>N<EFBFBD>..<2E>mC..<2E>..,<2C>w
|
||||
0x87, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // .6..............
|
||||
0x3D, 0xA2, 0xDF, 0xDE, 0xD1, 0x6E, 0xA6, 0x45, 0x85, 0xDC, 0x63, 0xCA, 0xE0, 0x54, 0x6D, 0xE6, // =<3D><><EFBFBD><EFBFBD>n<EFBFBD>E.<2E>c<EFBFBD><63>Tm<54>
|
||||
0xA6, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>6..............
|
||||
0xC1, 0x01, 0xF3, 0x6B, 0x4A, 0xB9, 0xE9, 0x43, 0xBA, 0x31, 0xD4, 0x94, 0x59, 0x8C, 0x47, 0xFB, // <20>.<2E>kJ<6B><4A>C<EFBFBD>1<EFBFBD>.Y.G<>
|
||||
0xBB, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>6..............
|
||||
0xE3, 0xAB, 0x34, 0xB2, 0x57, 0x08, 0x9C, 0x4F, 0xB0, 0x5A, 0x4D, 0xC3, 0x14, 0xF8, 0x55, 0x57, // <20><>4<EFBFBD>W..O<>ZM<5A>.<2E>UW
|
||||
0xD1, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>6..............
|
||||
0x21, 0x78, 0x2A, 0xAA, 0x27, 0x18, 0x2C, 0x4C, 0x8F, 0x1D, 0x45, 0x13, 0xA3, 0x4D, 0xDA, 0x97, // !x*<2A>'.,L..E.<2E>M<EFBFBD>.
|
||||
0xEB, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // <20>6..............
|
||||
0x20, 0xE6, 0x1F, 0x36, 0xF4, 0x64, 0xB5, 0x41, 0xBA, 0x77, 0x84, 0xF8, 0xE0, 0x79, 0xB1, 0xF7, // <20>.6<EFBFBD>d<EFBFBD>A<EFBFBD>w.<2E><>y<EFBFBD><79>
|
||||
0x06, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // .7..............
|
||||
0xDF, 0xBA, 0x11, 0xBB, 0xAA, 0xD8, 0x0E, 0x47, 0x93, 0x11, 0x20, 0xEA, 0xF8, 0x0F, 0xE5, 0xCC, // ߺ.<2E><><EFBFBD>.G.. <20><>.<2E><>
|
||||
0x25, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // %7..............
|
||||
0x85, 0x88, 0xC8, 0x0B, 0x8C, 0x71, 0x1D, 0x49, 0x92, 0x1F, 0x6F, 0x21, 0x43, 0x49, 0xE7, 0x9C, // ..<2E>..q.I..o!CI<43>.
|
||||
0x36, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // 67..............
|
||||
0x0C, 0x4D, 0x7C, 0xFC, 0x85, 0x2E, 0xB9, 0x4B, 0xAF, 0xD4, 0x01, 0xED, 0x14, 0x76, 0xB5, 0xE9, // .M|<7C>..<2E>K<EFBFBD><4B>.<2E>.v<><76>
|
||||
0x60, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // `7..............
|
||||
0x19, 0x66, 0x0F, 0x50, 0x93, 0xEF, 0x75, 0x4B, 0xBC, 0xB4, 0x82, 0x81, 0x99, 0x98, 0xA3, 0xCA, // .f.P.<2E>uK<75><4B>....<2E><>
|
||||
0x84, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1B, 0x06, 0x05, 0x00, 0x00, 0x03, 0x00, // .7..............
|
||||
0xEB, 0xCE, 0x9B, 0x9E, 0x36, 0xE7, 0x26, 0x4F, 0x88, 0xDE, 0x76, 0x3F, 0x87, 0xDC, 0xC4, 0x85, // <20><>..6<EFBFBD>&O.<2E>v?.<2E><>.
|
||||
0xA6, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // <20>7..............
|
||||
0xE9, 0x54, 0x78, 0x23, 0xFC, 0x79, 0x97, 0x44, 0xA0, 0xC1, 0xA7, 0x09, 0x69, 0x69, 0x1C, 0x6B, // <20>Tx#<23>y.D.<2E><>.ii.k
|
||||
0xB9, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // <20>7..............
|
||||
0x01, 0xA3, 0xF8, 0xC8, 0xF5, 0x19, 0x32, 0x41, 0x96, 0xCE, 0x2D, 0xE9, 0xD4, 0xAD, 0xBD, 0x33, // .<2E><><EFBFBD><EFBFBD>.2A.<2E>-<2D>ԭ<EFBFBD>3
|
||||
0xCB, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // <20>7..............
|
||||
0x61, 0xFD, 0x31, 0x31, 0x4F, 0x5E, 0x08, 0x43, 0x8D, 0x6D, 0x62, 0xBE, 0x19, 0x87, 0xC9, 0x2C, // a<>11O^.C.mb<6D>..<2E>,
|
||||
0xDF, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // <20>7..............
|
||||
0x5F, 0x8B, 0xDD, 0x85, 0xA4, 0xEA, 0xF3, 0x4A, 0xA6, 0x28, 0xCC, 0xE9, 0xE7, 0x7C, 0x9A, 0x03, // _.<2E>.<2E><><EFBFBD>J<EFBFBD>(<28><><EFBFBD>|..
|
||||
0xF6, 0x37, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // <20>7..............
|
||||
0x3F, 0xBF, 0xA2, 0x2C, 0x9E, 0x94, 0x6A, 0x44, 0x82, 0xC7, 0xE2, 0x5A, 0x15, 0xEC, 0x78, 0xC4, // ?<3F><>,..jD.<2E><>Z.<2E>x<EFBFBD>
|
||||
0x14, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // .8..............
|
||||
0xE3, 0xF0, 0x77, 0x17, 0x92, 0x73, 0x98, 0x41, 0x97, 0xEA, 0x8A, 0xE4, 0xDE, 0x6F, 0x63, 0x81, // <20><>w..s.A.<2E>.<2E><>oc.
|
||||
0x2C, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // ,8..............
|
||||
0xCA, 0x4C, 0x3E, 0x9D, 0x72, 0xE1, 0xF1, 0x46, 0xA2, 0xF4, 0x1D, 0x21, 0x07, 0x05, 0x14, 0x44, // <20>L>.r<><72>F<EFBFBD><46>.!...D
|
||||
0x49, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // I8..............
|
||||
0x6E, 0x6C, 0x4C, 0x73, 0xBA, 0xB0, 0x98, 0x42, 0xA8, 0x91, 0x67, 0x17, 0x72, 0xB2, 0xBD, 0x1B, // nlLs<4C><73>.B<>.g.r<><72>.
|
||||
0x5F, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // _8..............
|
||||
0x4B, 0xA7, 0x12, 0x69, 0xFB, 0xA5, 0x1A, 0x40, 0xBF, 0xDB, 0x2E, 0x3A, 0xB4, 0x6F, 0x4B, 0x02, // K<>.i<><69>.@<40><>.:<3A>oK.
|
||||
0x7E, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // ~8..............
|
||||
0x8F, 0xF0, 0x5C, 0x5B, 0x1A, 0xB8, 0x1D, 0x43, 0xB0, 0x80, 0x34, 0x50, 0xD8, 0x62, 0x05, 0x65, // .<2E>\[.<2E>.C<>.4P<EFBFBD>b.e
|
||||
0x93, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // .8..............
|
||||
0xF3, 0x7D, 0x6D, 0xE0, 0xD0, 0xAA, 0x9D, 0x41, 0x8D, 0xFB, 0x0A, 0xC3, 0x7E, 0x2B, 0xDF, 0x39, // <20>}m<>Ъ.A.<2E>.<2E>~+<2B>9
|
||||
0xA9, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // <20>8..............
|
||||
0xFE, 0x34, 0x98, 0x05, 0xEA, 0xA8, 0xFF, 0x4B, 0xB6, 0x7B, 0x4D, 0x00, 0x6B, 0x54, 0x47, 0xD3, // <20>4..<2E><><EFBFBD>K<EFBFBD>{M.kTG<54>
|
||||
0xC4, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x1C, 0x06, 0x05, 0x00, 0x00, 0x05, 0x00, // <20>8..............
|
||||
0x30, 0x33, 0x36, 0x31, 0x32, 0x2D, 0x30, 0x30, 0x32, 0x30, 0x36, 0x2D, 0x35, 0x35, 0x34, 0x2D, // 03612-00206-554-
|
||||
0x30, 0x30, 0x36, 0x37, 0x33, 0x39, 0x2D, 0x30, 0x33, 0x2D, 0x31, 0x30, 0x33, 0x33, 0x2D, 0x31, // 006739-03-1033-1
|
||||
0x37, 0x37, 0x36, 0x33, 0x2E, 0x30, 0x30, 0x30, 0x30, 0x2D, 0x32, 0x38, 0x30, 0x32, 0x30, 0x31, // 7763.0000-280201
|
||||
0x38, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x00, 0x30, 0x33, 0x36, 0x31, 0x32, 0x2D, // 8.Windows.03612-
|
||||
0x30, 0x30, 0x30, 0x39, 0x36, 0x2D, 0x32, 0x30, 0x31, 0x2D, 0x31, 0x34, 0x38, 0x38, 0x35, 0x33, // 00096-201-148853
|
||||
0x2D, 0x30, 0x33, 0x2D, 0x31, 0x30, 0x33, 0x33, 0x2D, 0x31, 0x37, 0x37, 0x36, 0x33, 0x2E, 0x30, // -03-1033-17763.0
|
||||
0x30, 0x30, 0x30, 0x2D, 0x32, 0x38, 0x30, 0x32, 0x30, 0x31, 0x38, 0x00, 0x4F, 0x66, 0x66, 0x69, // 000-2802018.Offi
|
||||
0x63, 0x65, 0x32, 0x30, 0x31, 0x30, 0x00, 0x30, 0x33, 0x36, 0x31, 0x32, 0x2D, 0x30, 0x30, 0x32, // ce2010.03612-002
|
||||
0x30, 0x36, 0x2D, 0x32, 0x35, 0x30, 0x2D, 0x35, 0x36, 0x30, 0x36, 0x33, 0x35, 0x2D, 0x30, 0x33, // 06-250-560635-03
|
||||
0x2D, 0x31, 0x30, 0x33, 0x33, 0x2D, 0x31, 0x37, 0x37, 0x36, 0x33, 0x2E, 0x30, 0x30, 0x30, 0x30, // -1033-17763.0000
|
||||
0x2D, 0x32, 0x38, 0x30, 0x32, 0x30, 0x31, 0x38, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x32, // -2802018.Office2
|
||||
0x30, 0x31, 0x33, 0x00, 0x30, 0x33, 0x36, 0x31, 0x32, 0x2D, 0x30, 0x30, 0x32, 0x30, 0x36, 0x2D, // 013.03612-00206-
|
||||
0x34, 0x35, 0x34, 0x2D, 0x31, 0x36, 0x37, 0x32, 0x31, 0x31, 0x2D, 0x30, 0x33, 0x2D, 0x31, 0x30, // 454-167211-03-10
|
||||
0x33, 0x33, 0x2D, 0x31, 0x37, 0x37, 0x36, 0x33, 0x2E, 0x30, 0x30, 0x30, 0x30, 0x2D, 0x32, 0x38, // 33-17763.0000-28
|
||||
0x30, 0x32, 0x30, 0x31, 0x38, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x32, 0x30, 0x31, 0x36, // 02018.Office2016
|
||||
0x00, 0x30, 0x33, 0x36, 0x31, 0x32, 0x2D, 0x30, 0x33, 0x38, 0x35, 0x38, 0x2D, 0x33, 0x36, 0x31, // .03612-03858-361
|
||||
0x2D, 0x39, 0x31, 0x34, 0x30, 0x37, 0x39, 0x2D, 0x30, 0x33, 0x2D, 0x31, 0x30, 0x33, 0x33, 0x2D, // -914079-03-1033-
|
||||
0x31, 0x37, 0x37, 0x36, 0x33, 0x2E, 0x30, 0x30, 0x30, 0x30, 0x2D, 0x32, 0x38, 0x30, 0x32, 0x30, // 17763.0000-28020
|
||||
0x31, 0x38, 0x00, 0x57, 0x69, 0x6E, 0x43, 0x68, 0x69, 0x6E, 0x61, 0x47, 0x6F, 0x76, 0x00, 0x30, // 18.WinChinaGov.0
|
||||
0x33, 0x36, 0x31, 0x32, 0x2D, 0x30, 0x30, 0x32, 0x30, 0x36, 0x2D, 0x36, 0x37, 0x32, 0x2D, 0x33, // 3612-00206-672-3
|
||||
0x30, 0x31, 0x33, 0x37, 0x31, 0x2D, 0x30, 0x33, 0x2D, 0x31, 0x30, 0x33, 0x33, 0x2D, 0x31, 0x37, // 01371-03-1033-17
|
||||
0x37, 0x36, 0x33, 0x2E, 0x30, 0x30, 0x30, 0x30, 0x2D, 0x32, 0x38, 0x30, 0x32, 0x30, 0x31, 0x38, // 763.0000-2802018
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x32, 0x30, 0x31, 0x39, 0x00, 0x57, 0x69, 0x6E, 0x64, // .Office2019.Wind
|
||||
0x6F, 0x77, 0x73, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, // ows.Office2010.O
|
||||
0x66, 0x66, 0x69, 0x63, 0x65, 0x32, 0x30, 0x31, 0x33, 0x2B, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // ffice2013+.Windo
|
||||
0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x57, // ws Server 2019.W
|
||||
0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x32, 0x30, 0x31, 0x39, 0x20, 0x28, // indows 10 2019 (
|
||||
0x56, 0x6F, 0x6C, 0x75, 0x6D, 0x65, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // Volume).Windows
|
||||
0x31, 0x30, 0x20, 0x55, 0x6E, 0x6B, 0x6E, 0x6F, 0x77, 0x6E, 0x20, 0x28, 0x56, 0x6F, 0x6C, 0x75, // 10 Unknown (Volu
|
||||
0x6D, 0x65, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x43, // me).Windows 10 C
|
||||
0x68, 0x69, 0x6E, 0x61, 0x20, 0x47, 0x6F, 0x76, 0x65, 0x72, 0x6E, 0x6D, 0x65, 0x6E, 0x74, 0x00, // hina Government.
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, // Windows 10 2016
|
||||
0x28, 0x56, 0x6F, 0x6C, 0x75, 0x6D, 0x65, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // (Volume).Windows
|
||||
0x20, 0x31, 0x30, 0x20, 0x28, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6C, 0x29, 0x00, 0x57, 0x69, 0x6E, // 10 (Retail).Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x32, 0x30, 0x31, 0x35, 0x20, 0x28, 0x56, 0x6F, // dows 10 2015 (Vo
|
||||
0x6C, 0x75, 0x6D, 0x65, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x37, 0x00, // lume).Windows 7.
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x28, 0x52, 0x65, 0x74, 0x61, 0x69, // Windows 8 (Retai
|
||||
0x6C, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x28, 0x56, 0x6F, // l).Windows 8 (Vo
|
||||
0x6C, 0x75, 0x6D, 0x65, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, // lume).Windows 8.
|
||||
0x31, 0x20, 0x28, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6C, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // 1 (Retail).Windo
|
||||
0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x28, 0x56, 0x6F, 0x6C, 0x75, 0x6D, 0x65, 0x29, 0x00, // ws 8.1 (Volume).
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x00, // Windows Preview.
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, // Windows Server 2
|
||||
0x30, 0x30, 0x38, 0x20, 0x41, 0x20, 0x28, 0x57, 0x65, 0x62, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x48, // 008 A (Web and H
|
||||
0x50, 0x43, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, // PC).Windows Serv
|
||||
0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x42, 0x20, 0x28, 0x53, 0x74, 0x61, 0x6E, 0x64, // er 2008 B (Stand
|
||||
0x61, 0x72, 0x64, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, // ard and Enterpri
|
||||
0x73, 0x65, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, // se).Windows Serv
|
||||
0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x43, 0x20, 0x28, 0x44, 0x61, 0x74, 0x61, 0x63, // er 2008 C (Datac
|
||||
0x65, 0x6E, 0x74, 0x65, 0x72, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, // enter).Windows S
|
||||
0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x52, 0x32, 0x20, 0x41, 0x20, // erver 2008 R2 A
|
||||
0x28, 0x57, 0x65, 0x62, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x48, 0x50, 0x43, 0x29, 0x00, 0x57, 0x69, // (Web and HPC).Wi
|
||||
0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, // ndows Server 200
|
||||
0x38, 0x20, 0x52, 0x32, 0x20, 0x42, 0x20, 0x28, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, // 8 R2 B (Standard
|
||||
0x20, 0x61, 0x6E, 0x64, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x29, // and Enterprise)
|
||||
0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, // .Windows Server
|
||||
0x32, 0x30, 0x30, 0x38, 0x20, 0x52, 0x32, 0x20, 0x43, 0x20, 0x28, 0x44, 0x61, 0x74, 0x61, 0x63, // 2008 R2 C (Datac
|
||||
0x65, 0x6E, 0x74, 0x65, 0x72, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, // enter).Windows S
|
||||
0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x32, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // erver 2012.Windo
|
||||
0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x32, 0x20, 0x52, // ws Server 2012 R
|
||||
0x32, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, // 2.Windows Server
|
||||
0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, // 2016.Windows Se
|
||||
0x72, 0x76, 0x65, 0x72, 0x20, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x00, 0x57, 0x69, 0x6E, // rver Preview.Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x56, 0x69, 0x73, 0x74, 0x61, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // dows Vista.Offic
|
||||
0x65, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x32, 0x30, // e 2010.Office 20
|
||||
0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, // 13.Office 2013 (
|
||||
0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, // Pre-Release).Off
|
||||
0x69, 0x63, 0x65, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, // ice 2016.Office
|
||||
0x32, 0x30, 0x31, 0x39, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, // 2019.Windows Ser
|
||||
0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x39, 0x20, 0x41, 0x52, 0x4D, 0x36, 0x34, 0x00, 0x57, // ver 2019 ARM64.W
|
||||
0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, // indows Server 20
|
||||
0x31, 0x39, 0x20, 0x41, 0x7A, 0x75, 0x72, 0x65, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x00, 0x57, 0x69, // 19 Azure Core.Wi
|
||||
0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, // ndows Server 201
|
||||
0x39, 0x20, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6E, 0x74, 0x65, 0x72, 0x00, 0x57, 0x69, 0x6E, // 9 Datacenter.Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x39, // dows Server 2019
|
||||
0x20, 0x45, 0x73, 0x73, 0x65, 0x6E, 0x74, 0x69, 0x61, 0x6C, 0x73, 0x00, 0x57, 0x69, 0x6E, 0x64, // Essentials.Wind
|
||||
0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x39, 0x20, // ows Server 2019
|
||||
0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // Standard.Windows
|
||||
0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x39, 0x20, 0x44, 0x61, 0x74, // Server 2019 Dat
|
||||
0x61, 0x63, 0x65, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x28, 0x53, 0x65, 0x6D, 0x69, 0x2D, 0x41, 0x6E, // acenter (Semi-An
|
||||
0x6E, 0x75, 0x61, 0x6C, 0x20, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x29, 0x00, 0x57, 0x69, // nual Channel).Wi
|
||||
0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, // ndows Server 201
|
||||
0x39, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x28, 0x53, 0x65, 0x6D, 0x69, // 9 Standard (Semi
|
||||
0x2D, 0x41, 0x6E, 0x6E, 0x75, 0x61, 0x6C, 0x20, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x29, // -Annual Channel)
|
||||
0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, 0x6E, 0x74, 0x65, // .Windows 10 Ente
|
||||
0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x4C, 0x54, 0x53, 0x43, 0x20, 0x32, 0x30, 0x31, 0x39, // rprise LTSC 2019
|
||||
0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, 0x6E, 0x74, 0x65, // .Windows 10 Ente
|
||||
0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x4C, 0x54, 0x53, 0x43, 0x20, 0x32, 0x30, 0x31, 0x39, // rprise LTSC 2019
|
||||
0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, 0x6E, // N.Windows 10 En
|
||||
0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x47, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // terprise G.Windo
|
||||
0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, // ws 10 Enterprise
|
||||
0x20, 0x47, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, // GN.Windows 10 E
|
||||
0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x4C, // nterprise 2016 L
|
||||
0x54, 0x53, 0x42, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, // TSB.Windows 10 E
|
||||
0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x4C, // nterprise 2016 L
|
||||
0x54, 0x53, 0x42, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, // TSB N.Windows 10
|
||||
0x20, 0x48, 0x6F, 0x6D, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, // Home.Windows 10
|
||||
0x20, 0x48, 0x6F, 0x6D, 0x65, 0x20, 0x43, 0x6F, 0x75, 0x6E, 0x74, 0x72, 0x79, 0x20, 0x53, 0x70, // Home Country Sp
|
||||
0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, // ecific.Windows 1
|
||||
0x30, 0x20, 0x48, 0x6F, 0x6D, 0x65, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // 0 Home N.Windows
|
||||
0x20, 0x31, 0x30, 0x20, 0x48, 0x6F, 0x6D, 0x65, 0x20, 0x53, 0x69, 0x6E, 0x67, 0x6C, 0x65, 0x20, // 10 Home Single
|
||||
0x4C, 0x61, 0x6E, 0x67, 0x75, 0x61, 0x67, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // Language.Windows
|
||||
0x20, 0x31, 0x30, 0x20, 0x45, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x00, 0x57, 0x69, // 10 Education.Wi
|
||||
0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, // ndows 10 Educati
|
||||
0x6F, 0x6E, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, // on N.Windows 10
|
||||
0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // Enterprise.Windo
|
||||
0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, // ws 10 Enterprise
|
||||
0x20, 0x32, 0x30, 0x31, 0x35, 0x20, 0x4C, 0x54, 0x53, 0x42, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // 2015 LTSB.Windo
|
||||
0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, // ws 10 Enterprise
|
||||
0x20, 0x32, 0x30, 0x31, 0x35, 0x20, 0x4C, 0x54, 0x53, 0x42, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, // 2015 LTSB N.Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, // dows 10 Enterpri
|
||||
0x73, 0x65, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, // se N.Windows 10
|
||||
0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x57, 0x6F, 0x72, // Professional Wor
|
||||
0x6B, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // kstation.Windows
|
||||
0x20, 0x31, 0x30, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, // 10 Professional
|
||||
0x20, 0x57, 0x6F, 0x72, 0x6B, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x4E, 0x00, 0x57, // Workstation N.W
|
||||
0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, // indows 10 Profes
|
||||
0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, // sional.Windows 1
|
||||
0x30, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x45, // 0 Professional E
|
||||
0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // ducation.Windows
|
||||
0x20, 0x31, 0x30, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, // 10 Professional
|
||||
0x20, 0x45, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, // Education N.Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, // dows 10 Professi
|
||||
0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, // onal N.Windows 1
|
||||
0x30, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x50, // 0 Professional P
|
||||
0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, // review.Windows 1
|
||||
0x30, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x50, 0x72, 0x65, // 0 Enterprise Pre
|
||||
0x76, 0x69, 0x65, 0x77, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, // view.Windows 10
|
||||
0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x56, // Enterprise for V
|
||||
0x69, 0x72, 0x74, 0x75, 0x61, 0x6C, 0x20, 0x44, 0x65, 0x73, 0x6B, 0x74, 0x6F, 0x70, 0x73, 0x00, // irtual Desktops.
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x52, 0x65, 0x6D, 0x6F, 0x74, // Windows 10 Remot
|
||||
0x65, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // e Server.Windows
|
||||
0x20, 0x31, 0x30, 0x20, 0x53, 0x20, 0x28, 0x4C, 0x65, 0x61, 0x6E, 0x29, 0x00, 0x57, 0x69, 0x6E, // 10 S (Lean).Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x37, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, // dows 7 Enterpris
|
||||
0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x37, 0x20, 0x45, 0x6E, 0x74, 0x65, // e.Windows 7 Ente
|
||||
0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x45, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // rprise E.Windows
|
||||
0x20, 0x37, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x4E, 0x00, // 7 Enterprise N.
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x37, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, // Windows 7 Profes
|
||||
0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x37, // sional.Windows 7
|
||||
0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x45, 0x00, // Professional E.
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x37, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, // Windows 7 Profes
|
||||
0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // sional N.Windows
|
||||
0x20, 0x37, 0x20, 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x50, 0x4F, 0x53, 0x52, // 7 Embedded POSR
|
||||
0x65, 0x61, 0x64, 0x79, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x37, 0x20, 0x45, // eady.Windows 7 E
|
||||
0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, // mbedded Standard
|
||||
0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x37, 0x20, 0x54, 0x68, 0x69, 0x6E, 0x50, // .Windows 7 ThinP
|
||||
0x43, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x43, 0x6F, 0x72, 0x65, // C.Windows 8 Core
|
||||
0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x20, // .Windows 8 Core
|
||||
0x43, 0x6F, 0x75, 0x6E, 0x74, 0x72, 0x79, 0x20, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, // Country Specific
|
||||
0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x20, // .Windows 8 Core
|
||||
0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x43, 0x6F, 0x72, 0x65, // N.Windows 8 Core
|
||||
0x20, 0x53, 0x69, 0x6E, 0x67, 0x6C, 0x65, 0x20, 0x4C, 0x61, 0x6E, 0x67, 0x75, 0x61, 0x67, 0x65, // Single Language
|
||||
0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, // .Windows 8 Profe
|
||||
0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x57, 0x4D, 0x43, 0x00, 0x57, 0x69, 0x6E, 0x64, // ssional WMC.Wind
|
||||
0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x49, // ows 8 Embedded I
|
||||
0x6E, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, // ndustry Professi
|
||||
0x6F, 0x6E, 0x61, 0x6C, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x45, // onal.Windows 8 E
|
||||
0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x49, 0x6E, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, // mbedded Industry
|
||||
0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, // Enterprise.Wind
|
||||
0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, // ows 8 Enterprise
|
||||
0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, // .Windows 8 Enter
|
||||
0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // prise N.Windows
|
||||
0x38, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x00, 0x57, // 8 Professional.W
|
||||
0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, // indows 8 Profess
|
||||
0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // ional N.Windows
|
||||
0x38, 0x2E, 0x31, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // 8.1 Core.Windows
|
||||
0x20, 0x38, 0x2E, 0x31, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x20, 0x41, 0x52, 0x4D, 0x00, 0x57, 0x69, // 8.1 Core ARM.Wi
|
||||
0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x20, 0x43, // ndows 8.1 Core C
|
||||
0x6F, 0x75, 0x6E, 0x74, 0x72, 0x79, 0x20, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x00, // ountry Specific.
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x43, 0x6F, 0x72, 0x65, // Windows 8.1 Core
|
||||
0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x43, // N.Windows 8.1 C
|
||||
0x6F, 0x72, 0x65, 0x20, 0x53, 0x69, 0x6E, 0x67, 0x6C, 0x65, 0x20, 0x4C, 0x61, 0x6E, 0x67, 0x75, // ore Single Langu
|
||||
0x61, 0x67, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, // age.Windows 8.1
|
||||
0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x53, 0x74, 0x75, // Professional Stu
|
||||
0x64, 0x65, 0x6E, 0x74, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, // dent.Windows 8.1
|
||||
0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x53, 0x74, // Professional St
|
||||
0x75, 0x64, 0x65, 0x6E, 0x74, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // udent N.Windows
|
||||
0x38, 0x2E, 0x31, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, // 8.1 Professional
|
||||
0x20, 0x57, 0x4D, 0x43, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, // WMC.Windows 8.1
|
||||
0x20, 0x43, 0x6F, 0x72, 0x65, 0x20, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x65, 0x64, 0x00, // Core Connected.
|
||||
0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x43, 0x6F, 0x72, 0x65, // Windows 8.1 Core
|
||||
0x20, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, 0x74, 0x65, 0x64, 0x20, 0x43, 0x6F, 0x75, 0x6E, 0x74, // Connected Count
|
||||
0x72, 0x79, 0x20, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x00, 0x57, 0x69, 0x6E, 0x64, // ry Specific.Wind
|
||||
0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x20, 0x43, 0x6F, 0x6E, // ows 8.1 Core Con
|
||||
0x6E, 0x65, 0x63, 0x74, 0x65, 0x64, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // nected N.Windows
|
||||
0x20, 0x38, 0x2E, 0x31, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x20, 0x43, 0x6F, 0x6E, 0x6E, 0x65, 0x63, // 8.1 Core Connec
|
||||
0x74, 0x65, 0x64, 0x20, 0x53, 0x69, 0x6E, 0x67, 0x6C, 0x65, 0x20, 0x4C, 0x61, 0x6E, 0x67, 0x75, // ted Single Langu
|
||||
0x61, 0x67, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, // age.Windows 8.1
|
||||
0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // Enterprise.Windo
|
||||
0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, // ws 8.1 Enterpris
|
||||
0x65, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, // e N.Windows 8.1
|
||||
0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x00, 0x57, 0x69, 0x6E, // Professional.Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, // dows 8.1 Profess
|
||||
0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // ional N.Windows
|
||||
0x38, 0x2E, 0x31, 0x20, 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x49, 0x6E, 0x64, // 8.1 Embedded Ind
|
||||
0x75, 0x73, 0x74, 0x72, 0x79, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, // ustry Profession
|
||||
0x61, 0x6C, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x45, // al.Windows 8.1 E
|
||||
0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x20, 0x49, 0x6E, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, // mbedded Industry
|
||||
0x20, 0x41, 0x75, 0x74, 0x6F, 0x6D, 0x6F, 0x74, 0x69, 0x76, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, // Automotive.Wind
|
||||
0x6F, 0x77, 0x73, 0x20, 0x38, 0x2E, 0x31, 0x20, 0x45, 0x6D, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, // ows 8.1 Embedded
|
||||
0x20, 0x49, 0x6E, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, // Industry Enterp
|
||||
0x72, 0x69, 0x73, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, // rise.Windows 10
|
||||
0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x50, 0x72, 0x65, 0x76, 0x69, // Enterprise Previ
|
||||
0x65, 0x77, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x50, 0x72, // ew.Windows 10 Pr
|
||||
0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x50, 0x72, 0x65, 0x76, 0x69, // ofessional Previ
|
||||
0x65, 0x77, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x31, 0x30, 0x20, 0x50, 0x72, // ew.Windows 10 Pr
|
||||
0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x57, 0x4D, 0x43, 0x20, 0x50, // ofessional WMC P
|
||||
0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x38, // review.Windows 8
|
||||
0x2E, 0x78, 0x20, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // .x Preview.Windo
|
||||
0x77, 0x73, 0x20, 0x38, 0x2E, 0x78, 0x20, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x20, 0x41, // ws 8.x Preview A
|
||||
0x52, 0x4D, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, // RM.Windows Serve
|
||||
0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x57, 0x65, 0x62, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, // r 2008 Web.Windo
|
||||
0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x43, // ws Server 2008 C
|
||||
0x6F, 0x6D, 0x70, 0x75, 0x74, 0x65, 0x20, 0x43, 0x6C, 0x75, 0x73, 0x74, 0x65, 0x72, 0x00, 0x57, // ompute Cluster.W
|
||||
0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, // indows Server 20
|
||||
0x30, 0x38, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x00, 0x57, 0x69, 0x6E, 0x64, // 08 Standard.Wind
|
||||
0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, // ows Server 2008
|
||||
0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x6F, 0x75, 0x74, // Standard without
|
||||
0x20, 0x48, 0x79, 0x70, 0x65, 0x72, 0x2D, 0x56, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // Hyper-V.Windows
|
||||
0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x45, 0x6E, 0x74, // Server 2008 Ent
|
||||
0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // erprise.Windows
|
||||
0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x45, 0x6E, 0x74, 0x65, // Server 2008 Ente
|
||||
0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x77, 0x69, 0x74, 0x68, 0x6F, 0x75, 0x74, 0x20, 0x48, // rprise without H
|
||||
0x79, 0x70, 0x65, 0x72, 0x2D, 0x56, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, // yper-V.Windows S
|
||||
0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x44, 0x61, 0x74, 0x61, 0x63, // erver 2008 Datac
|
||||
0x65, 0x6E, 0x74, 0x65, 0x72, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, // enter.Windows Se
|
||||
0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, // rver 2008 Datace
|
||||
0x6E, 0x74, 0x65, 0x72, 0x20, 0x77, 0x69, 0x74, 0x68, 0x6F, 0x75, 0x74, 0x20, 0x48, 0x79, 0x70, // nter without Hyp
|
||||
0x65, 0x72, 0x2D, 0x56, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, // er-V.Windows Ser
|
||||
0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x49, 0x74, 0x61, // ver 2008 for Ita
|
||||
0x6E, 0x69, 0x75, 0x6D, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x4D, 0x75, 0x6C, // nium.Windows Mul
|
||||
0x74, 0x69, 0x50, 0x6F, 0x69, 0x6E, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, // tiPoint Server 2
|
||||
0x30, 0x31, 0x30, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, // 010.Windows Serv
|
||||
0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x52, 0x32, 0x20, 0x57, 0x65, 0x62, 0x00, 0x57, // er 2008 R2 Web.W
|
||||
0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, // indows Server 20
|
||||
0x30, 0x38, 0x20, 0x52, 0x32, 0x20, 0x48, 0x50, 0x43, 0x20, 0x45, 0x64, 0x69, 0x74, 0x69, 0x6F, // 08 R2 HPC Editio
|
||||
0x6E, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, // n.Windows Server
|
||||
0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x52, 0x32, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, // 2008 R2 Standar
|
||||
0x64, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, // d.Windows Server
|
||||
0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x52, 0x32, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, // 2008 R2 Enterpr
|
||||
0x69, 0x73, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, // ise.Windows Serv
|
||||
0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x52, 0x32, 0x20, 0x44, 0x61, 0x74, 0x61, 0x63, // er 2008 R2 Datac
|
||||
0x65, 0x6E, 0x74, 0x65, 0x72, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, // enter.Windows Se
|
||||
0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x30, 0x38, 0x20, 0x52, 0x32, 0x20, 0x66, 0x6F, 0x72, // rver 2008 R2 for
|
||||
0x20, 0x49, 0x74, 0x61, 0x6E, 0x69, 0x75, 0x6D, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, // Itanium Enterpr
|
||||
0x69, 0x73, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, // ise.Windows Serv
|
||||
0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x32, 0x20, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6E, 0x74, // er 2012 Datacent
|
||||
0x65, 0x72, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, // er.Windows Serve
|
||||
0x72, 0x20, 0x32, 0x30, 0x31, 0x32, 0x20, 0x4D, 0x75, 0x6C, 0x74, 0x69, 0x50, 0x6F, 0x69, 0x6E, // r 2012 MultiPoin
|
||||
0x74, 0x20, 0x50, 0x72, 0x65, 0x6D, 0x69, 0x75, 0x6D, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, // t Premium.Window
|
||||
0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x32, 0x20, 0x4D, 0x75, // s Server 2012 Mu
|
||||
0x6C, 0x74, 0x69, 0x50, 0x6F, 0x69, 0x6E, 0x74, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, // ltiPoint Standar
|
||||
0x64, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, // d.Windows Server
|
||||
0x20, 0x32, 0x30, 0x31, 0x32, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x00, 0x57, // 2012 Standard.W
|
||||
0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, // indows Server 20
|
||||
0x31, 0x32, 0x20, 0x52, 0x32, 0x20, 0x43, 0x6C, 0x6F, 0x75, 0x64, 0x20, 0x53, 0x74, 0x6F, 0x72, // 12 R2 Cloud Stor
|
||||
0x61, 0x67, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, // age.Windows Serv
|
||||
0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x32, 0x20, 0x52, 0x32, 0x20, 0x44, 0x61, 0x74, 0x61, 0x63, // er 2012 R2 Datac
|
||||
0x65, 0x6E, 0x74, 0x65, 0x72, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, // enter.Windows Se
|
||||
0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x32, 0x20, 0x52, 0x32, 0x20, 0x45, 0x73, 0x73, // rver 2012 R2 Ess
|
||||
0x65, 0x6E, 0x74, 0x69, 0x61, 0x6C, 0x73, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // entials.Windows
|
||||
0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x32, 0x20, 0x52, 0x32, 0x20, 0x53, // Server 2012 R2 S
|
||||
0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // tandard.Windows
|
||||
0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x41, 0x7A, 0x75, 0x72, // Server 2016 Azur
|
||||
0x65, 0x20, 0x43, 0x6F, 0x72, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, // e Core.Windows S
|
||||
0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x43, 0x6C, 0x6F, 0x75, 0x64, // erver 2016 Cloud
|
||||
0x20, 0x53, 0x74, 0x6F, 0x72, 0x61, 0x67, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, // Storage.Windows
|
||||
0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x44, 0x61, 0x74, // Server 2016 Dat
|
||||
0x61, 0x63, 0x65, 0x6E, 0x74, 0x65, 0x72, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, // acenter.Windows
|
||||
0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x45, 0x73, 0x73, 0x65, // Server 2016 Esse
|
||||
0x6E, 0x74, 0x69, 0x61, 0x6C, 0x73, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, // ntials.Windows S
|
||||
0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, // erver 2016 Stand
|
||||
0x61, 0x72, 0x64, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, // ard.Windows Serv
|
||||
0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x41, 0x52, 0x4D, 0x36, 0x34, 0x00, 0x57, 0x69, // er 2016 ARM64.Wi
|
||||
0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, // ndows Server 201
|
||||
0x36, 0x20, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x28, 0x53, 0x65, // 6 Datacenter (Se
|
||||
0x6D, 0x69, 0x2D, 0x41, 0x6E, 0x6E, 0x75, 0x61, 0x6C, 0x20, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, // mi-Annual Channe
|
||||
0x6C, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, 0x72, 0x76, 0x65, // l).Windows Serve
|
||||
0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, // r 2016 Standard
|
||||
0x28, 0x53, 0x65, 0x6D, 0x69, 0x2D, 0x41, 0x6E, 0x6E, 0x75, 0x61, 0x6C, 0x20, 0x43, 0x68, 0x61, // (Semi-Annual Cha
|
||||
0x6E, 0x6E, 0x65, 0x6C, 0x29, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x53, 0x65, // nnel).Windows Se
|
||||
0x72, 0x76, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x44, 0x61, 0x74, 0x61, 0x63, 0x65, // rver 2016 Datace
|
||||
0x6E, 0x74, 0x65, 0x72, 0x20, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x00, 0x57, 0x69, 0x6E, // nter Preview.Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x56, 0x69, 0x73, 0x74, 0x61, 0x20, 0x42, 0x75, 0x73, 0x69, 0x6E, // dows Vista Busin
|
||||
0x65, 0x73, 0x73, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x56, 0x69, 0x73, 0x74, // ess.Windows Vist
|
||||
0x61, 0x20, 0x42, 0x75, 0x73, 0x69, 0x6E, 0x65, 0x73, 0x73, 0x20, 0x4E, 0x00, 0x57, 0x69, 0x6E, // a Business N.Win
|
||||
0x64, 0x6F, 0x77, 0x73, 0x20, 0x56, 0x69, 0x73, 0x74, 0x61, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, // dows Vista Enter
|
||||
0x70, 0x72, 0x69, 0x73, 0x65, 0x00, 0x57, 0x69, 0x6E, 0x64, 0x6F, 0x77, 0x73, 0x20, 0x56, 0x69, // prise.Windows Vi
|
||||
0x73, 0x74, 0x61, 0x20, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x20, 0x4E, // sta Enterprise N
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x32, // .Office Access 2
|
||||
0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x45, 0x78, 0x63, 0x65, 0x6C, // 010.Office Excel
|
||||
0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6F, // 2010.Office Gro
|
||||
0x6F, 0x76, 0x65, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, // ove 2010.Office
|
||||
0x49, 0x6E, 0x66, 0x6F, 0x50, 0x61, 0x74, 0x68, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, // InfoPath 2010.Of
|
||||
0x66, 0x69, 0x63, 0x65, 0x20, 0x4D, 0x6F, 0x6E, 0x64, 0x6F, 0x20, 0x31, 0x20, 0x32, 0x30, 0x31, // fice Mondo 1 201
|
||||
0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4D, 0x6F, 0x6E, 0x64, 0x6F, 0x20, 0x32, // 0.Office Mondo 2
|
||||
0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x6E, 0x65, // 2010.Office One
|
||||
0x4E, 0x6F, 0x74, 0x65, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, // Note 2010.Office
|
||||
0x20, 0x4F, 0x75, 0x74, 0x4C, 0x6F, 0x6F, 0x6B, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, // OutLook 2010.Of
|
||||
0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x6F, 0x77, 0x65, 0x72, 0x50, 0x6F, 0x69, 0x6E, 0x74, 0x20, // fice PowerPoint
|
||||
0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x66, // 2010.Office Prof
|
||||
0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x50, 0x6C, 0x75, 0x73, 0x20, 0x32, 0x30, // essional Plus 20
|
||||
0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, // 10.Office Projec
|
||||
0x74, 0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // t Pro 2010.Offic
|
||||
0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, // e Project Standa
|
||||
0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, // rd 2010.Office P
|
||||
0x75, 0x62, 0x6C, 0x69, 0x73, 0x68, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, // ublisher 2010.Of
|
||||
0x66, 0x69, 0x63, 0x65, 0x20, 0x53, 0x6D, 0x61, 0x6C, 0x6C, 0x20, 0x42, 0x75, 0x73, 0x69, 0x6E, // fice Small Busin
|
||||
0x65, 0x73, 0x73, 0x20, 0x42, 0x61, 0x73, 0x69, 0x63, 0x73, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, // ess Basics 2010.
|
||||
0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, // Office Standard
|
||||
0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, 0x69, // 2010.Office Visi
|
||||
0x6F, 0x20, 0x50, 0x72, 0x65, 0x6D, 0x69, 0x75, 0x6D, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, // o Premium 2010.O
|
||||
0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x50, 0x72, 0x6F, 0x20, // ffice Visio Pro
|
||||
0x32, 0x30, 0x31, 0x30, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, 0x69, // 2010.Office Visi
|
||||
0x6F, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x30, 0x00, // o Standard 2010.
|
||||
0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x57, 0x6F, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x30, // Office Word 2010
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x32, // .Office Access 2
|
||||
0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x45, 0x78, 0x63, 0x65, 0x6C, // 013.Office Excel
|
||||
0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x49, 0x6E, 0x66, // 2013.Office Inf
|
||||
0x6F, 0x50, 0x61, 0x74, 0x68, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // oPath 2013.Offic
|
||||
0x65, 0x20, 0x4C, 0x79, 0x6E, 0x63, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, // e Lync 2013.Offi
|
||||
0x63, 0x65, 0x20, 0x4D, 0x6F, 0x6E, 0x64, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, // ce Mondo 2013.Of
|
||||
0x66, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x6E, 0x65, 0x4E, 0x6F, 0x74, 0x65, 0x20, 0x32, 0x30, 0x31, // fice OneNote 201
|
||||
0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x75, 0x74, 0x4C, 0x6F, 0x6F, 0x6B, // 3.Office OutLook
|
||||
0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x6F, 0x77, // 2013.Office Pow
|
||||
0x65, 0x72, 0x50, 0x6F, 0x69, 0x6E, 0x74, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, // erPoint 2013.Off
|
||||
0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, // ice Professional
|
||||
0x20, 0x50, 0x6C, 0x75, 0x73, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // Plus 2013.Offic
|
||||
0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, // e Project Pro 20
|
||||
0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, // 13.Office Projec
|
||||
0x74, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, // t Standard 2013.
|
||||
0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x75, 0x62, 0x6C, 0x69, 0x73, 0x68, 0x65, 0x72, // Office Publisher
|
||||
0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x53, 0x74, 0x61, // 2013.Office Sta
|
||||
0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // ndard 2013.Offic
|
||||
0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x33, // e Visio Pro 2013
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x53, 0x74, // .Office Visio St
|
||||
0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, 0x69, // andard 2013.Offi
|
||||
0x63, 0x65, 0x20, 0x57, 0x6F, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x33, 0x00, 0x4F, 0x66, 0x66, // ce Word 2013.Off
|
||||
0x69, 0x63, 0x65, 0x20, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, // ice Access 2013
|
||||
0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, // (Pre-Release).Of
|
||||
0x66, 0x69, 0x63, 0x65, 0x20, 0x45, 0x78, 0x63, 0x65, 0x6C, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, // fice Excel 2013
|
||||
0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, // (Pre-Release).Of
|
||||
0x66, 0x69, 0x63, 0x65, 0x20, 0x47, 0x72, 0x6F, 0x6F, 0x76, 0x65, 0x20, 0x32, 0x30, 0x31, 0x33, // fice Groove 2013
|
||||
0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, // (Pre-Release).O
|
||||
0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x49, 0x6E, 0x66, 0x6F, 0x50, 0x61, 0x74, 0x68, 0x20, 0x32, // ffice InfoPath 2
|
||||
0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, // 013 (Pre-Release
|
||||
0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4C, 0x79, 0x6E, 0x63, 0x20, 0x32, 0x30, // ).Office Lync 20
|
||||
0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, // 13 (Pre-Release)
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4D, 0x6F, 0x6E, 0x64, 0x6F, 0x20, 0x32, 0x30, // .Office Mondo 20
|
||||
0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, // 13 (Pre-Release)
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x6E, 0x65, 0x4E, 0x6F, 0x74, 0x65, 0x20, // .Office OneNote
|
||||
0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, // 2013 (Pre-Releas
|
||||
0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x75, 0x74, 0x6C, 0x6F, 0x6F, // e).Office Outloo
|
||||
0x6B, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, // k 2013 (Pre-Rele
|
||||
0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x6F, 0x77, 0x65, // ase).Office Powe
|
||||
0x72, 0x50, 0x6F, 0x69, 0x6E, 0x74, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, // rPoint 2013 (Pre
|
||||
0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, // -Release).Office
|
||||
0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x50, 0x6C, // Professional Pl
|
||||
0x75, 0x73, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, // us 2013 (Pre-Rel
|
||||
0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, // ease).Office Pro
|
||||
0x6A, 0x65, 0x63, 0x74, 0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, // ject Pro 2013 (P
|
||||
0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, // re-Release).Offi
|
||||
0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, // ce Project Stand
|
||||
0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, // ard 2013 (Pre-Re
|
||||
0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x75, // lease).Office Pu
|
||||
0x62, 0x6C, 0x69, 0x73, 0x68, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, // blisher 2013 (Pr
|
||||
0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // e-Release).Offic
|
||||
0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x33, // e Visio Pro 2013
|
||||
0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, // (Pre-Release).O
|
||||
0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x53, 0x74, 0x61, 0x6E, // ffice Visio Stan
|
||||
0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, // dard 2013 (Pre-R
|
||||
0x65, 0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x57, // elease).Office W
|
||||
0x6F, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x33, 0x20, 0x28, 0x50, 0x72, 0x65, 0x2D, 0x52, 0x65, // ord 2013 (Pre-Re
|
||||
0x6C, 0x65, 0x61, 0x73, 0x65, 0x29, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x41, 0x63, // lease).Office Ac
|
||||
0x63, 0x65, 0x73, 0x73, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, // cess 2016.Office
|
||||
0x20, 0x45, 0x78, 0x63, 0x65, 0x6C, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, // Excel 2016.Offi
|
||||
0x63, 0x65, 0x20, 0x4D, 0x6F, 0x6E, 0x64, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, // ce Mondo 2016.Of
|
||||
0x66, 0x69, 0x63, 0x65, 0x20, 0x4D, 0x6F, 0x6E, 0x64, 0x6F, 0x20, 0x52, 0x20, 0x32, 0x30, 0x31, // fice Mondo R 201
|
||||
0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x6E, 0x65, 0x4E, 0x6F, 0x74, 0x65, // 6.Office OneNote
|
||||
0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x75, 0x74, // 2016.Office Out
|
||||
0x6C, 0x6F, 0x6F, 0x6B, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, // look 2016.Office
|
||||
0x20, 0x50, 0x6F, 0x77, 0x65, 0x72, 0x70, 0x6F, 0x69, 0x6E, 0x74, 0x20, 0x32, 0x30, 0x31, 0x36, // Powerpoint 2016
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x66, 0x65, 0x73, 0x73, 0x69, // .Office Professi
|
||||
0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x50, 0x6C, 0x75, 0x73, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, // onal Plus 2016.O
|
||||
0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x50, 0x72, // ffice Project Pr
|
||||
0x6F, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, // o 2016.Office Pr
|
||||
0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x43, // oject Pro 2016 C
|
||||
0x32, 0x52, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, // 2R.Office Projec
|
||||
0x74, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, // t Standard 2016.
|
||||
0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x53, // Office Project S
|
||||
0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x43, 0x32, 0x52, // tandard 2016 C2R
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x75, 0x62, 0x6C, 0x69, 0x73, 0x68, 0x65, // .Office Publishe
|
||||
0x72, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x53, 0x6B, // r 2016.Office Sk
|
||||
0x79, 0x70, 0x65, 0x20, 0x66, 0x6F, 0x72, 0x20, 0x42, 0x75, 0x73, 0x69, 0x6E, 0x65, 0x73, 0x73, // ype for Business
|
||||
0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x53, 0x74, 0x61, // 2016.Office Sta
|
||||
0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // ndard 2016.Offic
|
||||
0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x36, // e Visio Pro 2016
|
||||
0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x50, 0x72, // .Office Visio Pr
|
||||
0x6F, 0x20, 0x32, 0x30, 0x31, 0x36, 0x20, 0x43, 0x32, 0x52, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // o 2016 C2R.Offic
|
||||
0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, // e Visio Standard
|
||||
0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, // 2016.Office Vis
|
||||
0x69, 0x6F, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x36, // io Standard 2016
|
||||
0x20, 0x43, 0x32, 0x52, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x57, 0x6F, 0x72, 0x64, // C2R.Office Word
|
||||
0x20, 0x32, 0x30, 0x31, 0x36, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, // 2016.Office Pro
|
||||
0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x50, 0x6C, 0x75, 0x73, 0x20, 0x32, // fessional Plus 2
|
||||
0x30, 0x31, 0x39, 0x20, 0x43, 0x32, 0x52, 0x20, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x00, // 019 C2R Preview.
|
||||
0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x50, // Office Project P
|
||||
0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x39, 0x20, 0x43, 0x32, 0x52, 0x20, 0x50, 0x72, 0x65, 0x76, // ro 2019 C2R Prev
|
||||
0x69, 0x65, 0x77, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, // iew.Office Visio
|
||||
0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x39, 0x20, 0x43, 0x32, 0x52, 0x20, 0x50, 0x72, // Pro 2019 C2R Pr
|
||||
0x65, 0x76, 0x69, 0x65, 0x77, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x41, 0x63, 0x63, // eview.Office Acc
|
||||
0x65, 0x73, 0x73, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, // ess 2019.Office
|
||||
0x45, 0x78, 0x63, 0x65, 0x6C, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, // Excel 2019.Offic
|
||||
0x65, 0x20, 0x4F, 0x75, 0x74, 0x6C, 0x6F, 0x6F, 0x6B, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, // e Outlook 2019.O
|
||||
0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x6F, 0x77, 0x65, 0x72, 0x70, 0x6F, 0x69, 0x6E, 0x74, // ffice Powerpoint
|
||||
0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, // 2019.Office Pro
|
||||
0x66, 0x65, 0x73, 0x73, 0x69, 0x6F, 0x6E, 0x61, 0x6C, 0x20, 0x50, 0x6C, 0x75, 0x73, 0x20, 0x32, // fessional Plus 2
|
||||
0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, // 019.Office Proje
|
||||
0x63, 0x74, 0x20, 0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, // ct Pro 2019.Offi
|
||||
0x63, 0x65, 0x20, 0x50, 0x72, 0x6F, 0x6A, 0x65, 0x63, 0x74, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, // ce Project Stand
|
||||
0x61, 0x72, 0x64, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, // ard 2019.Office
|
||||
0x50, 0x75, 0x62, 0x6C, 0x69, 0x73, 0x68, 0x65, 0x72, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, // Publisher 2019.O
|
||||
0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x53, 0x6B, 0x79, 0x70, 0x65, 0x20, 0x66, 0x6F, 0x72, 0x20, // ffice Skype for
|
||||
0x42, 0x75, 0x73, 0x69, 0x6E, 0x65, 0x73, 0x73, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, // Business 2019.Of
|
||||
0x66, 0x69, 0x63, 0x65, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, 0x30, // fice Standard 20
|
||||
0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, // 19.Office Visio
|
||||
0x50, 0x72, 0x6F, 0x20, 0x32, 0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, // Pro 2019.Office
|
||||
0x56, 0x69, 0x73, 0x69, 0x6F, 0x20, 0x53, 0x74, 0x61, 0x6E, 0x64, 0x61, 0x72, 0x64, 0x20, 0x32, // Visio Standard 2
|
||||
0x30, 0x31, 0x39, 0x00, 0x4F, 0x66, 0x66, 0x69, 0x63, 0x65, 0x20, 0x57, 0x6F, 0x72, 0x64, 0x20, // 019.Office Word
|
||||
0x32, 0x30, 0x31, 0x39, 0x00, // 2019.
|
||||
};
|
||||
|
||||
__pure size_t getDefaultKmsDataSize()
|
||||
{
|
||||
return sizeof(DefaultKmsData);
|
||||
}
|
||||
|
||||
#endif // NO_INTERNAL_DATA
|
||||
|
1100
src/kmsdata.c
Normal file
1100
src/kmsdata.c
Normal file
File diff suppressed because it is too large
Load Diff
19
src/kmsdata.h
Normal file
19
src/kmsdata.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef KMSDATA_SERVER_H
|
||||
#define KMSDATA_SERVER_H
|
||||
|
||||
#ifndef CONFIG
|
||||
#define CONFIG "config.h"
|
||||
#endif // CONFIG
|
||||
#include CONFIG
|
||||
|
||||
#ifndef NO_INTERNAL_DATA
|
||||
|
||||
#include "types.h"
|
||||
|
||||
extern uint8_t DefaultKmsData[];
|
||||
__pure size_t getDefaultKmsDataSize();
|
||||
|
||||
#endif // NO_INTERNAL_DATA
|
||||
|
||||
#endif // KMSDATA_SERVER_H
|
||||
|
@ -99,7 +99,7 @@ static int_fast8_t getSocketList(struct addrinfo **saList, const char *const add
|
||||
{
|
||||
int status;
|
||||
char *szHost, *szPort;
|
||||
size_t len = strlen(addr) + 1;
|
||||
const size_t len = strlen(addr) + 1;
|
||||
|
||||
// Don't alloca too much
|
||||
if (len > 264) return FALSE;
|
||||
@ -156,7 +156,7 @@ int_fast8_t isDisconnected(const SOCKET s)
|
||||
|
||||
if (!setBlockingEnabled(s, FALSE)) return TRUE;
|
||||
|
||||
int n = recv(s, buffer, 1, MSG_PEEK);
|
||||
const int n = recv(s, buffer, 1, MSG_PEEK);
|
||||
|
||||
if (!setBlockingEnabled(s, TRUE)) return TRUE;
|
||||
if (n == 0) return TRUE;
|
||||
@ -200,7 +200,7 @@ static int_fast8_t isPrivateIPAddress(struct sockaddr* addr, socklen_t* length)
|
||||
|
||||
case AF_INET:
|
||||
{
|
||||
uint32_t ipv4addr = BE32(((struct sockaddr_in*)addr)->sin_addr.s_addr);
|
||||
const uint32_t ipv4addr = BE32(((struct sockaddr_in*)addr)->sin_addr.s_addr);
|
||||
|
||||
if
|
||||
(
|
||||
@ -244,11 +244,7 @@ SOCKET connectToAddress(const char *const addr, const int AddressFamily, int_fas
|
||||
|
||||
if (ip2str(szAddr, sizeof(szAddr), sa->ai_addr, (socklen_t)sa->ai_addrlen))
|
||||
{
|
||||
if (showHostName)
|
||||
printf("Connecting to %s (%s) ... ", addr, szAddr);
|
||||
else
|
||||
printf("Connecting to %s ... ", szAddr);
|
||||
|
||||
showHostName ? printf("Connecting to %s (%s) ... ", addr, szAddr) : printf("Connecting to %s ... ", szAddr);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
@ -294,27 +290,35 @@ SOCKET connectToAddress(const char *const addr, const int AddressFamily, int_fas
|
||||
|
||||
|
||||
#ifndef NO_SOCKETS
|
||||
#ifdef SIMPLE_SOCKETS
|
||||
|
||||
static int_fast8_t allowSocketReuse(SOCKET s)
|
||||
{
|
||||
# if !defined(_WIN32) && !defined(__CYGWIN__)
|
||||
# if !__CYGWIN__
|
||||
|
||||
BOOL socketOption = TRUE;
|
||||
|
||||
# if !_WIN32
|
||||
# define VLMCSD_SOCKET_OPTION SO_REUSEADDR
|
||||
# else // _WIN32
|
||||
BOOL socketOption = FALSE;
|
||||
# define VLMCSD_SOCKET_OPTION SO_EXCLUSIVEADDRUSE
|
||||
# endif // _WIN32
|
||||
|
||||
if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (sockopt_t)&socketOption, sizeof(socketOption)))
|
||||
if (setsockopt(s, SOL_SOCKET, VLMCSD_SOCKET_OPTION, (sockopt_t)&socketOption, sizeof(socketOption)))
|
||||
{
|
||||
# ifdef _PEDANTIC
|
||||
printerrorf("Warning: Socket option SO_REUSEADDR unsupported: %s\n", vlmcsd_strerror(socket_errno));
|
||||
# endif // _PEDANTIC
|
||||
}
|
||||
|
||||
# undef VLMCSD_SOCKET_OPTION
|
||||
# endif // !__CYGWIN__
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#ifdef SIMPLE_SOCKETS
|
||||
|
||||
int listenOnAllAddresses()
|
||||
{
|
||||
uint32_t port_listen;
|
||||
@ -386,7 +390,7 @@ void getPrivateIPAddresses(int* numAddresses, char*** ipAddresses)
|
||||
|
||||
DWORD dwRetVal;
|
||||
ULONG outBufLen = 16384;
|
||||
ULONG flags = GAA_FLAG_SKIP_MULTICAST | GAA_FLAG_SKIP_ANYCAST | GAA_FLAG_SKIP_DNS_SERVER | GAA_FLAG_SKIP_FRIENDLY_NAME;
|
||||
const ULONG flags = GAA_FLAG_SKIP_MULTICAST | GAA_FLAG_SKIP_ANYCAST | GAA_FLAG_SKIP_DNS_SERVER | GAA_FLAG_SKIP_FRIENDLY_NAME;
|
||||
|
||||
firstAdapter = (PIP_ADAPTER_ADDRESSES)vlmcsd_malloc(outBufLen);
|
||||
|
||||
@ -430,7 +434,7 @@ void getPrivateIPAddresses(int* numAddresses, char*** ipAddresses)
|
||||
if (!isPrivateIPAddress(currentAddress->Address.lpSockaddr, &length)) continue;
|
||||
|
||||
char *ipAddress = (char*)vlmcsd_malloc(64);
|
||||
int error = getnameinfo(currentAddress->Address.lpSockaddr, currentAddress->Address.iSockaddrLength, ipAddress, 64, NULL, 0, NI_NUMERICHOST);
|
||||
const int error = getnameinfo(currentAddress->Address.lpSockaddr, currentAddress->Address.iSockaddrLength, ipAddress, 64, NULL, 0, NI_NUMERICHOST);
|
||||
|
||||
if (error)
|
||||
{
|
||||
@ -562,20 +566,17 @@ static int listenOnAddress(const struct addrinfo *const ai, SOCKET *s)
|
||||
# if defined(_WIN32) || defined(__CYGWIN__)
|
||||
// if (IsWindowsVistaOrGreater()) //Doesn't work with older version of MingW32-w64 toolchain
|
||||
if ((GetVersion() & 0xff) > 5)
|
||||
{
|
||||
# endif // _WIN32
|
||||
printerrorf("Warning: %s does not support socket option IPV6_V6ONLY: %s\n", ipstr, vlmcsd_strerror(socket_errno));
|
||||
# if defined(_WIN32) || defined(__CYGWIN__)
|
||||
}
|
||||
# endif // _WIN32
|
||||
# endif // _PEDANTIC
|
||||
}
|
||||
# endif
|
||||
|
||||
# ifndef _WIN32
|
||||
if (setsockopt(*s, SOL_SOCKET, SO_REUSEADDR, (sockopt_t)&socketOption, sizeof(socketOption)))
|
||||
{
|
||||
# ifdef _PEDANTIC
|
||||
printerrorf("Warning: %s does not support socket option SO_REUSEADDR: %s\n", ipstr, vlmcsd_strerror(socket_errno));
|
||||
# endif // _PEDANTIC
|
||||
}
|
||||
# endif // _WIN32
|
||||
allowSocketReuse(*s);
|
||||
|
||||
# if HAVE_FREEBIND
|
||||
# if (defined(IP_NONLOCALOK) || __FreeBSD_kernel__ || __FreeBSD__) && !defined(IPV6_BINDANY)
|
||||
@ -660,6 +661,10 @@ BOOL addListeningSocket(const char *const addr)
|
||||
numsockets++;
|
||||
result = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
exitOnWarningLevel(1);
|
||||
}
|
||||
}
|
||||
|
||||
freeaddrinfo(aiList);
|
||||
@ -674,7 +679,7 @@ __pure int_fast8_t checkProtocolStack(const int addressfamily)
|
||||
SOCKET s; // = INVALID_SOCKET;
|
||||
|
||||
s = socket(addressfamily, SOCK_STREAM, 0);
|
||||
int_fast8_t success = (s != INVALID_SOCKET);
|
||||
const int_fast8_t success = (s != INVALID_SOCKET);
|
||||
|
||||
socketclose(s);
|
||||
return success;
|
||||
@ -725,7 +730,6 @@ void closeAllListeningSockets()
|
||||
{
|
||||
# ifdef SIMPLE_SOCKETS
|
||||
|
||||
shutdown(s_server, VLMCSD_SHUT_RDWR);
|
||||
socketclose(s_server);
|
||||
|
||||
# else // !SIMPLE_SOCKETS
|
||||
@ -734,7 +738,6 @@ void closeAllListeningSockets()
|
||||
|
||||
for (i = 0; i < numsockets; i++)
|
||||
{
|
||||
shutdown(SocketList[i], VLMCSD_SHUT_RDWR);
|
||||
socketclose(SocketList[i]);
|
||||
}
|
||||
|
||||
@ -761,7 +764,7 @@ static void serveClient(const SOCKET s_client, const DWORD RpcAssocGroup)
|
||||
|
||||
# if !defined(NO_LOG) && defined(_PEDANTIC)
|
||||
|
||||
int result =
|
||||
const int result =
|
||||
setsockopt(s_client, SOL_SOCKET, SO_RCVTIMEO, (sockopt_t)&to, sizeof(to)) ||
|
||||
setsockopt(s_client, SOL_SOCKET, SO_SNDTIMEO, (sockopt_t)&to, sizeof(to));
|
||||
|
||||
@ -780,7 +783,7 @@ static void serveClient(const SOCKET s_client, const DWORD RpcAssocGroup)
|
||||
socklen_t len;
|
||||
struct sockaddr_storage addr;
|
||||
|
||||
len = sizeof addr;
|
||||
len = sizeof(addr);
|
||||
|
||||
if (getpeername(s_client, (struct sockaddr*)&addr, &len) ||
|
||||
!ip2str(ipstr, sizeof(ipstr), (struct sockaddr*)&addr, len))
|
||||
@ -835,7 +838,7 @@ static void post_sem(void)
|
||||
#if !defined(NO_LIMIT) && !__minix__
|
||||
if (!InetdMode && MaxTasks != SEM_VALUE_MAX)
|
||||
{
|
||||
semaphore_post(Semaphore);
|
||||
semaphore_post(MaxTaskSemaphore);
|
||||
}
|
||||
#endif // !defined(NO_LIMIT) && !__minix__
|
||||
}
|
||||
@ -846,7 +849,7 @@ static void wait_sem(void)
|
||||
#if !defined(NO_LIMIT) && !__minix__
|
||||
if (!InetdMode && MaxTasks != SEM_VALUE_MAX)
|
||||
{
|
||||
semaphore_wait(Semaphore);
|
||||
semaphore_wait(MaxTaskSemaphore);
|
||||
}
|
||||
#endif // !defined(NO_LIMIT) && !__minix__
|
||||
}
|
||||
@ -964,7 +967,7 @@ static int ServeClientAsyncFork(const SOCKET s_client, const DWORD RpcAssocGroup
|
||||
{
|
||||
uint_fast8_t i;
|
||||
|
||||
for (i = 0; i < _countof(signallist); i++)
|
||||
for (i = 0; i < vlmcsd_countof(signallist); i++)
|
||||
{
|
||||
sigaction(signallist[i], &sa, NULL);
|
||||
}
|
||||
|
@ -17,7 +17,6 @@ SERVICE_STATUS_HANDLE gSvcStatusHandle;
|
||||
VOID WINAPI ServiceCtrlHandler(DWORD dwCtrl)
|
||||
{
|
||||
// Handle the requested control code.
|
||||
|
||||
switch (dwCtrl)
|
||||
{
|
||||
case SERVICE_CONTROL_STOP:
|
||||
@ -28,10 +27,9 @@ VOID WINAPI ServiceCtrlHandler(DWORD dwCtrl)
|
||||
|
||||
// Remove PID file and free ressources
|
||||
cleanup();
|
||||
# ifdef USE_MSRPC
|
||||
# if __CYGWIN__ || defined(USE_MSRPC)
|
||||
ReportServiceStatus(SERVICE_STOPPED, NO_ERROR, 0);
|
||||
# endif // !USE_MSRPC
|
||||
return;
|
||||
# endif // __CYGWIN__
|
||||
|
||||
default:
|
||||
break;
|
||||
@ -42,14 +40,8 @@ static VOID WINAPI ServiceMain(const int argc_unused, CARGV argv_unused)
|
||||
{
|
||||
// Register the handler function for the service
|
||||
|
||||
gSvcStatusHandle = RegisterServiceCtrlHandler(
|
||||
NT_SERVICE_NAME,
|
||||
ServiceCtrlHandler
|
||||
);
|
||||
|
||||
if(!gSvcStatusHandle)
|
||||
if (!((gSvcStatusHandle = RegisterServiceCtrlHandler(NT_SERVICE_NAME, ServiceCtrlHandler))))
|
||||
{
|
||||
//ServiceReportEvent(RegisterServiceCtrlHandler);
|
||||
return;
|
||||
}
|
||||
|
||||
|
51
src/output.c
51
src/output.c
@ -74,6 +74,7 @@ static void vlogger(const char *message, va_list args)
|
||||
// so formatting the output can be concurrent
|
||||
int len = (int)strlen(mbstr);
|
||||
//# if !_MSC_VER
|
||||
|
||||
vlmcsd_vsnprintf(mbstr + len, sizeof(mbstr) - len, message, args);
|
||||
//# else
|
||||
// wvsprintf(mbstr + len, message, args);
|
||||
@ -183,30 +184,23 @@ void logRequestVerbose(const REQUEST *const Request, const PRINTFUNC p)
|
||||
{
|
||||
char guidBuffer[GUID_STRING_LENGTH + 1];
|
||||
char WorkstationBuffer[3 * WORKSTATION_NAME_BUFFER];
|
||||
const char *productName;
|
||||
ProdListIndex_t index;
|
||||
char* productName;
|
||||
|
||||
p("Protocol version : %u.%u\n", LE16(Request->MajorVer), LE16(Request->MinorVer));
|
||||
p("Client is a virtual machine : %s\n", LE32(Request->VMInfo) ? "Yes" : "No");
|
||||
p("Licensing status : %u (%s)\n", (uint32_t)LE32(Request->LicenseStatus), LE32(Request->LicenseStatus) < _countof(LicenseStatusText) ? LicenseStatusText[LE32(Request->LicenseStatus)] : "Unknown");
|
||||
p("Licensing status : %u (%s)\n", (uint32_t)LE32(Request->LicenseStatus), LE32(Request->LicenseStatus) < vlmcsd_countof(LicenseStatusText) ? LicenseStatusText[LE32(Request->LicenseStatus)] : "Unknown");
|
||||
p("Remaining time (0 = forever) : %i minutes\n", (uint32_t)LE32(Request->BindingExpiration));
|
||||
|
||||
uuid2StringLE(&Request->AppID, guidBuffer);
|
||||
productName = getProductNameLE(&Request->AppID, AppList, getAppListSize(), &index);
|
||||
getProductIndex(&Request->AppID, KmsData->AppItemList, KmsData->AppItemCount, &productName, NULL);
|
||||
p("Application ID : %s (%s)\n", guidBuffer, productName);
|
||||
|
||||
uuid2StringLE(&Request->ActID, guidBuffer);
|
||||
|
||||
# ifndef NO_EXTENDED_PRODUCT_LIST
|
||||
productName = getProductNameLE(&Request->ActID, ExtendedProductList, getExtendedProductListSize(), &index);
|
||||
# else
|
||||
productName = "Unknown";
|
||||
# endif
|
||||
|
||||
getProductIndex(&Request->ActID, KmsData->SkuItemList, KmsData->SkuItemCount, &productName, NULL);
|
||||
p("SKU ID (aka Activation ID) : %s (%s)\n", guidBuffer, productName);
|
||||
|
||||
uuid2StringLE(&Request->KMSID, guidBuffer);
|
||||
productName = getProductNameLE(&Request->KMSID, ProductList, getProductListSize(), &index);
|
||||
getProductIndex(&Request->KMSID, KmsData->KmsItemList, KmsData->KmsItemCount, &productName, NULL);
|
||||
p("KMS ID (aka KMS counted ID) : %s (%s)\n", guidBuffer, productName);
|
||||
|
||||
uuid2StringLE(&Request->CMID, guidBuffer);
|
||||
@ -231,7 +225,6 @@ void logRequestVerbose(const REQUEST *const Request, const PRINTFUNC p)
|
||||
void logResponseVerbose(const char *const ePID, const BYTE *const hwid, const RESPONSE *const response, const PRINTFUNC p)
|
||||
{
|
||||
char guidBuffer[GUID_STRING_LENGTH + 1];
|
||||
//SYSTEMTIME st;
|
||||
|
||||
p("Protocol version : %u.%u\n", (uint32_t)LE16(response->MajorVer), (uint32_t)LE16(response->MinorVer));
|
||||
p("KMS host extended PID : %s\n", ePID);
|
||||
@ -468,13 +461,25 @@ void printCommonFlags()
|
||||
(
|
||||
"Common flags:%s\n", ""
|
||||
|
||||
# ifdef NO_EXTENDED_PRODUCT_LIST
|
||||
" NO_EXTENDED_PRODUCT_LIST"
|
||||
# endif // NO_EXTENDED_PRODUCT_LIST
|
||||
# ifdef NO_EXTERNAL_DATA
|
||||
" NO_EXTERNAL_DATA"
|
||||
# endif // NO_EXTERNAL_DATA
|
||||
|
||||
# ifdef NO_BASIC_PRODUCT_LIST
|
||||
" NO_BASIC_PRODUCT_LIST"
|
||||
# endif // NO_BASIC_PRODUCT_LIST
|
||||
# ifdef NO_INTERNAL_DATA
|
||||
" NO_INTERNAL_DATA"
|
||||
# endif // NO_INTERNAL_DATA
|
||||
|
||||
# if !defined(NO_EXTERNAL_DATA)
|
||||
|
||||
# ifdef DATA_FILE
|
||||
" DATA=" DATA_FILE
|
||||
# endif // DATA_FILE
|
||||
|
||||
# ifdef UNSAFE_DATA_LOAD
|
||||
" UNSAFE_DATA_LOAD"
|
||||
# endif // UNSAFE_DATA_LOAD
|
||||
|
||||
# endif // !defined(NO_EXTERNAL_DATA)
|
||||
|
||||
# ifdef USE_MSRPC
|
||||
" USE_MSRPC"
|
||||
@ -630,10 +635,18 @@ void printServerFlags()
|
||||
" NO_STRICT_MODES"
|
||||
# endif // NO_STRICT_MODES
|
||||
|
||||
# ifdef NO_CLIENT_LIST
|
||||
" NO_CLIENT_LIST"
|
||||
# endif // NO_CLIENT_LIST
|
||||
|
||||
# if (_WIN32 || __CYGWIN__) && (!defined(USE_MSRPC) || defined(SUPPORT_WINE))
|
||||
" SUPPORT_WINE"
|
||||
# endif // (_WIN32 || __CYGWIN__) && (!defined(USE_MSRPC) || defined(SUPPORT_WINE))
|
||||
|
||||
# if (_WIN32 || __CYGWIN__) && defined(NO_TAP)
|
||||
" NO_TAP"
|
||||
# endif // (_WIN32 || __CYGWIN__) && defined(NO_TAP)
|
||||
|
||||
# if !HAVE_FREEBIND
|
||||
" NO_FREEBIND"
|
||||
# endif //!HAVE_FREEBIND
|
||||
|
385
src/rpc.c
385
src/rpc.c
@ -29,7 +29,7 @@
|
||||
|
||||
/* Forwards */
|
||||
|
||||
static int checkRpcHeader(const RPC_HEADER *const Header, const BYTE desiredPacketType, const PRINTFUNC p);
|
||||
static int checkRpcHeader(const RPC_HEADER *const header, const BYTE desiredPacketType, const PRINTFUNC p);
|
||||
|
||||
|
||||
/* Data definitions */
|
||||
@ -71,6 +71,7 @@ static const struct {
|
||||
|
||||
RPC_FLAGS RpcFlags;
|
||||
static int_fast8_t firstPacketSent;
|
||||
static DWORD CallId = 2; // M$ starts with CallId 2. So we do the same.
|
||||
|
||||
//
|
||||
// RPC request (server)
|
||||
@ -108,18 +109,27 @@ static void CheckRpcRequest(const RPC_REQUEST64 *const Request, const unsigned i
|
||||
}
|
||||
else
|
||||
{
|
||||
if (len > _Versions[kmsMajorVersion].RequestSize + requestSize)
|
||||
if (len > _Versions[kmsMajorVersion - 4].RequestSize + requestSize)
|
||||
logger("Warning: %u excess bytes in RPC request.\n",
|
||||
len - _Versions[kmsMajorVersion].RequestSize
|
||||
len - (_Versions[kmsMajorVersion - 4].RequestSize + requestSize)
|
||||
);
|
||||
}
|
||||
|
||||
if (Ctx != *Ndr64Ctx && Ctx != *NdrCtx)
|
||||
{
|
||||
if (*Ndr64Ctx == RPC_INVALID_CTX)
|
||||
{
|
||||
logger("Warning: Context id should be %u but is %u.\n", (unsigned int)*NdrCtx, Ctx);
|
||||
}
|
||||
else
|
||||
{
|
||||
logger("Warning: Context id should be %u (NDR32) or %u (NDR64) but is %u.\n",
|
||||
(unsigned int)*NdrCtx,
|
||||
(unsigned int)*Ndr64Ctx,
|
||||
Ctx
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (Request->Opnum)
|
||||
logger("Warning: OpNum should be 0 but is %u.\n",
|
||||
@ -216,6 +226,16 @@ static unsigned int checkRpcRequestSize(const RPC_REQUEST64 *const Request, cons
|
||||
return (requestSize >= _Versions[majorIndex].RequestSize);
|
||||
}
|
||||
|
||||
#ifndef SIMPLE_RPC
|
||||
static int SendError(RPC_RESPONSE64 *const Response, DWORD nca_error)
|
||||
{
|
||||
Response->Error.Code = nca_error;
|
||||
Response->Error.Padding = 0;
|
||||
Response->AllocHint = LE32(32);
|
||||
Response->ContextId = 0;
|
||||
return 32;
|
||||
}
|
||||
#endif // SIMPLE_RPC
|
||||
|
||||
/*
|
||||
* Handles the actual KMS request from the client.
|
||||
@ -234,18 +254,22 @@ static int rpcRequest(const RPC_REQUEST64 *const Request, RPC_RESPONSE64 *const
|
||||
|
||||
# ifndef SIMPLE_RPC
|
||||
|
||||
WORD Ctx = LE16(Request->ContextId);
|
||||
const WORD Ctx = LE16(Request->ContextId);
|
||||
|
||||
if (Ctx != *Ndr64Ctx)
|
||||
if (Ctx == *NdrCtx)
|
||||
{
|
||||
requestData = (BYTE*)&Request->Ndr.Data;
|
||||
responseData = (BYTE*)&Response->Ndr.Data;
|
||||
}
|
||||
else
|
||||
else if (Ctx == *Ndr64Ctx)
|
||||
{
|
||||
requestData = (BYTE*)&Request->Ndr64.Data;
|
||||
responseData = (BYTE*)&Response->Ndr64.Data;
|
||||
}
|
||||
else
|
||||
{
|
||||
return SendError(Response, RPC_NCA_UNK_IF);
|
||||
}
|
||||
|
||||
# else // SIMPLE_RPC
|
||||
|
||||
@ -258,7 +282,7 @@ static int rpcRequest(const RPC_REQUEST64 *const Request, RPC_RESPONSE64 *const
|
||||
|
||||
if (isValid)
|
||||
{
|
||||
uint16_t majorIndex = LE16(((WORD*)requestData)[1]) - 4;
|
||||
const uint16_t majorIndex = LE16(((WORD*)requestData)[1]) - 4;
|
||||
if (!((ResponseSize = _Versions[majorIndex].CreateResponse(requestData, responseData, ipstr)))) ResponseSize = 0x8007000D;
|
||||
}
|
||||
|
||||
@ -305,7 +329,7 @@ static int rpcRequest(const RPC_REQUEST64 *const Request, RPC_RESPONSE64 *const
|
||||
len += sizeof(DWORD);
|
||||
|
||||
// Pad zeros to 32-bit align (seems not neccassary but Windows RPC does it this way)
|
||||
int pad = ((~len & 3) + 1) & 3;
|
||||
const int pad = ((~len & 3) + 1) & 3;
|
||||
memset(pRpcReturnCode + sizeof(DWORD), 0, pad);
|
||||
len += pad;
|
||||
|
||||
@ -324,51 +348,52 @@ static void CheckRpcBindRequest(const RPC_BIND_REQUEST *const Request, const uns
|
||||
uint_fast8_t i, HasTransferSyntaxNDR32 = FALSE;
|
||||
char guidBuffer1[GUID_STRING_LENGTH + 1], guidBuffer2[GUID_STRING_LENGTH + 1];
|
||||
|
||||
uint32_t CapCtxItems = (len - sizeof(*Request) + sizeof(Request->CtxItems)) / sizeof(Request->CtxItems);
|
||||
DWORD NumCtxItems = LE32(Request->NumCtxItems);
|
||||
const uint32_t CapCtxItems = (len - sizeof(*Request) + sizeof(Request->CtxItems)) / sizeof(Request->CtxItems);
|
||||
const DWORD NumCtxItems = LE32(Request->NumCtxItems);
|
||||
|
||||
if (NumCtxItems < CapCtxItems) // Can't be too small because already handled by RpcBindSize
|
||||
logger("Warning: Excess bytes in RPC bind request.\n");
|
||||
|
||||
for (i = 0; i < NumCtxItems; i++)
|
||||
{
|
||||
if (!IsEqualGUID(&Request->CtxItems[i].InterfaceUUID, InterfaceUuid))
|
||||
struct CtxItem const* ctxItem = Request->CtxItems + i;
|
||||
if (!IsEqualGUID(&ctxItem->InterfaceUUID, InterfaceUuid))
|
||||
{
|
||||
uuid2StringLE((GUID*)&Request->CtxItems[i].InterfaceUUID, guidBuffer1);
|
||||
uuid2StringLE(&ctxItem->InterfaceUUID, guidBuffer1);
|
||||
uuid2StringLE((GUID*)InterfaceUuid, guidBuffer2);
|
||||
logger("Warning: Interface UUID is %s but should be %s in Ctx item %u.\n", guidBuffer1, guidBuffer2, (unsigned int)i);
|
||||
logger("Fatal: Interface UUID is %s but should be %s in Ctx item %u.\n", guidBuffer1, guidBuffer2, (unsigned int)i);
|
||||
}
|
||||
|
||||
if (Request->CtxItems[i].NumTransItems != LE16(1))
|
||||
if (ctxItem->NumTransItems != LE16(1))
|
||||
logger("Fatal: %u NDR32 transfer items detected in Ctx item %u, but only one is supported.\n",
|
||||
(unsigned int)LE16(Request->CtxItems[i].NumTransItems), (unsigned int)i
|
||||
(unsigned int)LE16(ctxItem->NumTransItems), (unsigned int)i
|
||||
);
|
||||
|
||||
if (Request->CtxItems[i].InterfaceVerMajor != LE16(1) || Request->CtxItems[i].InterfaceVerMinor != 0)
|
||||
logger("Warning: NDR32 Interface version is %u.%u but should be 1.0.\n",
|
||||
(unsigned int)LE16(Request->CtxItems[i].InterfaceVerMajor),
|
||||
(unsigned int)LE16(Request->CtxItems[i].InterfaceVerMinor)
|
||||
if (ctxItem->InterfaceVerMajor != LE16(1) || ctxItem->InterfaceVerMinor != 0)
|
||||
logger("Warning: Interface version is %u.%u but should be 1.0.\n",
|
||||
(unsigned int)LE16(ctxItem->InterfaceVerMajor),
|
||||
(unsigned int)LE16(ctxItem->InterfaceVerMinor)
|
||||
);
|
||||
|
||||
if (Request->CtxItems[i].ContextId != LE16((WORD)i))
|
||||
logger("Warning: context id of Ctx item %u is %u.\n", (unsigned int)i, (unsigned int)Request->CtxItems[i].ContextId);
|
||||
if (ctxItem->ContextId != LE16((WORD)i))
|
||||
logger("Warning: context id of Ctx item %u is %u.\n", (unsigned int)i, (unsigned int)ctxItem->ContextId);
|
||||
|
||||
if (IsEqualGUID((GUID*)TransferSyntaxNDR32, &Request->CtxItems[i].TransferSyntax))
|
||||
if (IsEqualGUID((GUID*)TransferSyntaxNDR32, &ctxItem->TransferSyntax))
|
||||
{
|
||||
HasTransferSyntaxNDR32 = TRUE;
|
||||
|
||||
if (Request->CtxItems[i].SyntaxVersion != LE32(2))
|
||||
logger("NDR32 transfer syntax version is %u but should be 2.\n", LE32(Request->CtxItems[i].SyntaxVersion));
|
||||
if (ctxItem->SyntaxVersion != LE32(2))
|
||||
logger("NDR32 transfer syntax version is %u but should be 2.\n", LE32(ctxItem->SyntaxVersion));
|
||||
}
|
||||
else if (IsEqualGUID((GUID*)TransferSyntaxNDR64, &Request->CtxItems[i].TransferSyntax))
|
||||
else if (IsEqualGUID((GUID*)TransferSyntaxNDR64, &ctxItem->TransferSyntax))
|
||||
{
|
||||
if (Request->CtxItems[i].SyntaxVersion != LE32(1))
|
||||
logger("NDR64 transfer syntax version is %u but should be 1.\n", LE32(Request->CtxItems[i].SyntaxVersion));
|
||||
if (ctxItem->SyntaxVersion != LE32(1))
|
||||
logger("NDR64 transfer syntax version is %u but should be 1.\n", LE32(ctxItem->SyntaxVersion));
|
||||
}
|
||||
else if (!memcmp(BindTimeFeatureNegotiation, (BYTE*)(&Request->CtxItems[i].TransferSyntax), 8))
|
||||
else if (!memcmp(BindTimeFeatureNegotiation, (BYTE*)(&ctxItem->TransferSyntax), 8))
|
||||
{
|
||||
if (Request->CtxItems[i].SyntaxVersion != LE32(1))
|
||||
logger("BTFN syntax version is %u but should be 1.\n", LE32(Request->CtxItems[i].SyntaxVersion));
|
||||
if (ctxItem->SyntaxVersion != LE32(1))
|
||||
logger("BTFN syntax version is %u but should be 1.\n", LE32(ctxItem->SyntaxVersion));
|
||||
}
|
||||
}
|
||||
|
||||
@ -381,13 +406,13 @@ static void CheckRpcBindRequest(const RPC_BIND_REQUEST *const Request, const uns
|
||||
/*
|
||||
* Check, if we receive enough bytes to return a valid RPC bind response
|
||||
*/
|
||||
static unsigned int checkRpcBindSize(const RPC_BIND_REQUEST *const Request, const unsigned int RequestSize, WORD* NdrCtx, WORD* Ndr64Ctx)
|
||||
static unsigned int checkRpcBindSize(const RPC_BIND_REQUEST *const Request, const unsigned int RequestSize, WORD* NdrCtx_unused, WORD* Ndr64Ctx_unused)
|
||||
{
|
||||
if (RequestSize < sizeof(RPC_BIND_REQUEST)) return FALSE;
|
||||
|
||||
unsigned int _NumCtxItems = LE32(Request->NumCtxItems);
|
||||
const unsigned int numCtxItems = LE32(Request->NumCtxItems);
|
||||
|
||||
if (RequestSize < sizeof(RPC_BIND_REQUEST) - sizeof(Request->CtxItems[0]) + _NumCtxItems * sizeof(Request->CtxItems[0])) return FALSE;
|
||||
if (RequestSize < sizeof(RPC_BIND_REQUEST) - sizeof(Request->CtxItems[0]) + numCtxItems * sizeof(Request->CtxItems[0])) return FALSE;
|
||||
|
||||
#if defined(_PEDANTIC) && !defined(NO_LOG)
|
||||
CheckRpcBindRequest(Request, RequestSize);
|
||||
@ -406,8 +431,8 @@ static unsigned int checkRpcBindSize(const RPC_BIND_REQUEST *const Request, cons
|
||||
*/
|
||||
static int rpcBind(const RPC_BIND_REQUEST *const Request, RPC_BIND_RESPONSE* Response, const DWORD RpcAssocGroup, const SOCKET sock, WORD* NdrCtx, WORD* Ndr64Ctx, BYTE packetType, const char* const ipstr_unused)
|
||||
{
|
||||
unsigned int i, _st = FALSE;
|
||||
DWORD numCtxItems = LE32(Request->NumCtxItems);
|
||||
unsigned int i;
|
||||
const DWORD numCtxItems = LE32(Request->NumCtxItems);
|
||||
int_fast8_t IsNDR64possible = FALSE;
|
||||
uint_fast8_t portNumberSize;
|
||||
|
||||
@ -447,23 +472,21 @@ static int rpcBind(const RPC_BIND_REQUEST *const Request, RPC_BIND_RESPONSE* Res
|
||||
|
||||
# ifndef SIMPLE_RPC
|
||||
|
||||
if (UseServerRpcNDR64)
|
||||
{
|
||||
for (i = 0; i < numCtxItems; i++)
|
||||
{
|
||||
if (IsEqualGUID((GUID*)TransferSyntaxNDR32, &Request->CtxItems[i].TransferSyntax))
|
||||
const struct CtxItem* ctxItem = &Request->CtxItems[i];
|
||||
if (IsEqualGUID((GUID*)TransferSyntaxNDR32, &ctxItem->TransferSyntax))
|
||||
{
|
||||
/*if (packetType == RPC_PT_BIND_REQ)*/
|
||||
*NdrCtx = LE16(Request->CtxItems[i].ContextId);
|
||||
*NdrCtx = LE16(ctxItem->ContextId);
|
||||
}
|
||||
|
||||
if (IsEqualGUID((GUID*)TransferSyntaxNDR64, &Request->CtxItems[i].TransferSyntax))
|
||||
if (UseServerRpcNDR64 && IsEqualGUID((GUID*)TransferSyntaxNDR64, &ctxItem->TransferSyntax))
|
||||
{
|
||||
IsNDR64possible = TRUE;
|
||||
|
||||
/*if (packetType == RPC_PT_BIND_REQ)*/
|
||||
*Ndr64Ctx = LE16(Request->CtxItems[i].ContextId);
|
||||
}
|
||||
*Ndr64Ctx = LE16(ctxItem->ContextId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -471,53 +494,78 @@ static int rpcBind(const RPC_BIND_REQUEST *const Request, RPC_BIND_RESPONSE* Res
|
||||
|
||||
for (i = 0; i < numCtxItems; i++)
|
||||
{
|
||||
memset(&Response->Results[i].TransferSyntax, 0, sizeof(GUID));
|
||||
struct CtxResults* result = Response->Results+i;
|
||||
const GUID* ctxTransferSyntax = &Request->CtxItems[i].TransferSyntax;
|
||||
|
||||
if (!IsNDR64possible && IsEqualGUID((GUID*)TransferSyntaxNDR32, &Request->CtxItems[i].TransferSyntax))
|
||||
# ifndef SIMPLE_RPC
|
||||
WORD nackReason = RPC_ABSTRACTSYNTAX_UNSUPPORTED;
|
||||
# endif // !SIMPLE_RPC
|
||||
|
||||
memset(&result->TransferSyntax, 0, sizeof(GUID));
|
||||
|
||||
# ifndef SIMPLE_RPC
|
||||
const int isInterfaceUUID = IsEqualGUID(&Request->CtxItems[i].InterfaceUUID, (GUID*)InterfaceUuid);
|
||||
if (isInterfaceUUID) nackReason = RPC_SYNTAX_UNSUPPORTED;
|
||||
# else // SIMPLE_RPC
|
||||
# define isInterfaceUUID TRUE
|
||||
# endif // SIMPLE_RPC
|
||||
|
||||
if (isInterfaceUUID && !IsNDR64possible && IsEqualGUID((GUID*)TransferSyntaxNDR32, ctxTransferSyntax))
|
||||
{
|
||||
Response->Results[i].SyntaxVersion = LE32(2);
|
||||
Response->Results[i].AckResult =
|
||||
Response->Results[i].AckReason = RPC_BIND_ACCEPT;
|
||||
memcpy(&Response->Results[i].TransferSyntax, TransferSyntaxNDR32, sizeof(GUID));
|
||||
|
||||
_st = TRUE;
|
||||
result->SyntaxVersion = LE32(2);
|
||||
result->AckResult = result->AckReason = RPC_BIND_ACCEPT;
|
||||
memcpy(&result->TransferSyntax, TransferSyntaxNDR32, sizeof(GUID));
|
||||
continue;
|
||||
}
|
||||
|
||||
# ifndef SIMPLE_RPC
|
||||
|
||||
else if (IsNDR64possible && IsEqualGUID((GUID*)TransferSyntaxNDR64, &Request->CtxItems[i].TransferSyntax))
|
||||
if (IsEqualGUID((GUID*)TransferSyntaxNDR64, ctxTransferSyntax))
|
||||
{
|
||||
Response->Results[i].SyntaxVersion = LE32(1);
|
||||
Response->Results[i].AckResult =
|
||||
Response->Results[i].AckReason = RPC_BIND_ACCEPT;
|
||||
memcpy(&Response->Results[i].TransferSyntax, TransferSyntaxNDR64, sizeof(GUID));
|
||||
if (!UseServerRpcNDR64) nackReason = RPC_SYNTAX_UNSUPPORTED;
|
||||
|
||||
_st = TRUE;
|
||||
}
|
||||
else if (UseServerRpcBTFN && !memcmp(BindTimeFeatureNegotiation, (BYTE*)(&Request->CtxItems[i].TransferSyntax), 8))
|
||||
if (isInterfaceUUID && IsNDR64possible)
|
||||
{
|
||||
Response->Results[i].SyntaxVersion = 0;
|
||||
Response->Results[i].AckResult = RPC_BIND_ACK;
|
||||
result->SyntaxVersion = LE32(1);
|
||||
result->AckResult = result->AckReason = RPC_BIND_ACCEPT;
|
||||
memcpy(&result->TransferSyntax, TransferSyntaxNDR64, sizeof(GUID));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (!memcmp(BindTimeFeatureNegotiation, ctxTransferSyntax, 8))
|
||||
{
|
||||
nackReason = RPC_SYNTAX_UNSUPPORTED;
|
||||
|
||||
if (UseServerRpcBTFN)
|
||||
{
|
||||
result->SyntaxVersion = 0;
|
||||
result->AckResult = RPC_BIND_ACK;
|
||||
|
||||
// Features requested are actually encoded in the GUID
|
||||
Response->Results[i].AckReason =
|
||||
((WORD*)(&Request->CtxItems[i].TransferSyntax))[4] &
|
||||
result->AckReason =
|
||||
((WORD*)(ctxTransferSyntax))[4] &
|
||||
(RPC_BTFN_SEC_CONTEXT_MULTIPLEX | RPC_BTFN_KEEP_ORPHAN);
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
# endif // !SIMPLE_RPC
|
||||
|
||||
else
|
||||
{
|
||||
Response->Results[i].SyntaxVersion = 0;
|
||||
Response->Results[i].AckResult =
|
||||
Response->Results[i].AckReason = RPC_BIND_NACK; // Unsupported
|
||||
}
|
||||
result->SyntaxVersion = 0;
|
||||
result->AckResult = RPC_BIND_NACK;
|
||||
# ifndef SIMPLE_RPC
|
||||
result->AckReason = nackReason;
|
||||
# else // SIMPLE_RPC
|
||||
# undef isInterfaceUUID
|
||||
result->AckReason = RPC_SYNTAX_UNSUPPORTED;
|
||||
# endif // SIMPLE_RPC
|
||||
}
|
||||
|
||||
if (!_st) return 0;
|
||||
//if (!_st) return 0;
|
||||
|
||||
return sizeof(RPC_BIND_RESPONSE) + numCtxItems * sizeof(((RPC_BIND_RESPONSE *)0)->Results[0]) - (portNumberSize < 3 ? 4 : 0);
|
||||
return sizeof(RPC_BIND_RESPONSE) + numCtxItems * sizeof(struct CtxResults) - (portNumberSize < 3 ? 4 : 0);
|
||||
}
|
||||
|
||||
|
||||
@ -530,7 +578,7 @@ typedef int(*GetResponse_t)(const void* const request, void* response, const DWO
|
||||
// ReSharper disable CppIncompatiblePointerConversion
|
||||
static const struct {
|
||||
BYTE ResponsePacketType;
|
||||
GetResponseSize_t CheckRequestSize;
|
||||
GetResponseSize_t CheckRequest;
|
||||
GetResponse_t GetResponse;
|
||||
}
|
||||
_Actions[] = {
|
||||
@ -541,14 +589,31 @@ _Actions[] = {
|
||||
// ReSharper restore CppIncompatiblePointerConversion
|
||||
|
||||
|
||||
/*
|
||||
* Initializes an RPC request header as needed for KMS, i.e. packet always fits in one fragment.
|
||||
* size cannot be greater than fragment length negotiated during RPC bind.
|
||||
*/
|
||||
static void createRpcHeader(RPC_HEADER* header, BYTE packetType, WORD size)
|
||||
{
|
||||
header->PacketType = packetType;
|
||||
header->PacketFlags = RPC_PF_FIRST | RPC_PF_LAST;
|
||||
header->VersionMajor = 5;
|
||||
header->VersionMinor = 0;
|
||||
header->AuthLength = 0;
|
||||
header->DataRepresentation = BE32(0x10000000); // Little endian, ASCII charset, IEEE floating point
|
||||
header->CallId = LE32(CallId);
|
||||
header->FragLength = LE16(size);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* This is the main RPC server loop. Returns after KMS request has been serviced
|
||||
* or a timeout has occured.
|
||||
*/
|
||||
void rpcServer(const SOCKET sock, const DWORD RpcAssocGroup, const char* const ipstr)
|
||||
void rpcServer(const SOCKET sock, const DWORD rpcAssocGroup, const char* const ipstr)
|
||||
{
|
||||
RPC_HEADER rpcRequestHeader;
|
||||
WORD NdrCtx = INVALID_NDR_CTX, Ndr64Ctx = INVALID_NDR_CTX;
|
||||
WORD NdrCtx = RPC_INVALID_CTX, Ndr64Ctx = RPC_INVALID_CTX;
|
||||
|
||||
randomNumberInit();
|
||||
|
||||
@ -584,81 +649,99 @@ void rpcServer(const SOCKET sock, const DWORD RpcAssocGroup, const char* const i
|
||||
// Unable to receive the complete request
|
||||
if (!_recv(sock, requestBuffer, request_len)) return;
|
||||
|
||||
// Request is invalid
|
||||
BYTE isValid = (BYTE)_Actions[_a].CheckRequestSize(requestBuffer, request_len, &NdrCtx, &Ndr64Ctx);
|
||||
# if !defined(SIMPLE_RPC) && defined(_PEDANTIC)
|
||||
if (rpcRequestHeader.PacketType == RPC_PT_REQUEST && (rpcRequestHeader.VersionMajor != 5 || rpcRequestHeader.VersionMinor != 0))
|
||||
{
|
||||
response_len = SendError((RPC_RESPONSE64*)rpcResponse, RPC_NCA_PROTO_ERROR);
|
||||
}
|
||||
else
|
||||
# endif // !defined(SIMPLE_RPC) && defined(_PEDANTIC)
|
||||
{
|
||||
BYTE isValid = (BYTE)_Actions[_a].CheckRequest(requestBuffer, request_len, &NdrCtx, &Ndr64Ctx);
|
||||
if (rpcRequestHeader.PacketType != RPC_PT_REQUEST && !isValid) return;
|
||||
|
||||
// Unable to create a valid response from request
|
||||
if (!((response_len = _Actions[_a].GetResponse(requestBuffer, rpcResponse, RpcAssocGroup, sock, &NdrCtx, &Ndr64Ctx, rpcRequestHeader.PacketType != RPC_PT_REQUEST ? rpcRequestHeader.PacketType : isValid, ipstr)))) return;
|
||||
|
||||
response_len += sizeof(RPC_HEADER);
|
||||
if (!((response_len = _Actions[_a].GetResponse(requestBuffer, rpcResponse, rpcAssocGroup, sock, &NdrCtx, &Ndr64Ctx, rpcRequestHeader.PacketType != RPC_PT_REQUEST ? rpcRequestHeader.PacketType : isValid, ipstr)))) return;
|
||||
}
|
||||
|
||||
memcpy(rpcResponseHeader, &rpcRequestHeader, sizeof(RPC_HEADER));
|
||||
|
||||
rpcResponseHeader->FragLength = LE16((WORD)response_len);
|
||||
# ifndef SIMPLE_RPC
|
||||
if (response_len == 32)
|
||||
{
|
||||
createRpcHeader(rpcResponseHeader, RPC_PT_FAULT, 0);
|
||||
rpcResponseHeader->PacketFlags = RPC_PF_FIRST | RPC_PF_LAST | RPC_PF_NOT_EXEC;
|
||||
}
|
||||
else
|
||||
# endif // SIMPLE_RPC
|
||||
{
|
||||
response_len += sizeof(RPC_HEADER);
|
||||
rpcResponseHeader->PacketType = _Actions[_a].ResponsePacketType;
|
||||
|
||||
if (rpcResponseHeader->PacketType == RPC_PT_ALTERCONTEXT_ACK)
|
||||
{
|
||||
rpcResponseHeader->PacketFlags = RPC_PF_FIRST | RPC_PF_LAST;
|
||||
}
|
||||
}
|
||||
|
||||
rpcResponseHeader->FragLength = LE16((WORD)response_len);
|
||||
|
||||
if (!_send(sock, responseBuffer, response_len)) return;
|
||||
|
||||
if (DisconnectImmediately && rpcResponseHeader->PacketType == RPC_PT_RESPONSE)
|
||||
shutdown(sock, VLMCSD_SHUT_RDWR);
|
||||
if (DisconnectImmediately && (rpcResponseHeader->PacketType == RPC_PT_RESPONSE || rpcResponseHeader->PacketType == RPC_PT_FAULT))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* RPC client functions */
|
||||
|
||||
static DWORD CallId = 2; // M$ starts with CallId 2. So we do the same.
|
||||
|
||||
|
||||
/*
|
||||
* Checks RPC header. Returns 0 on success.
|
||||
* This is mainly for debugging a non Microsoft KMS server that uses its own RPC code.
|
||||
*/
|
||||
static int checkRpcHeader(const RPC_HEADER *const Header, const BYTE desiredPacketType, const PRINTFUNC p)
|
||||
static int checkRpcHeader(const RPC_HEADER *const header, const BYTE desiredPacketType, const PRINTFUNC p)
|
||||
{
|
||||
int status = 0;
|
||||
|
||||
if (Header->PacketType != desiredPacketType)
|
||||
if (header->PacketType != desiredPacketType)
|
||||
{
|
||||
p("Fatal: Received wrong RPC packet type. Expected %u but got %u\n",
|
||||
(uint32_t)desiredPacketType,
|
||||
Header->PacketType
|
||||
header->PacketType
|
||||
);
|
||||
status = RPC_S_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if (Header->DataRepresentation != BE32(0x10000000))
|
||||
if (header->DataRepresentation != BE32(0x10000000))
|
||||
{
|
||||
p("Fatal: RPC response does not conform to Microsoft's limited support of DCE RPC\n");
|
||||
status = RPC_S_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if (Header->AuthLength != 0)
|
||||
if (header->AuthLength != 0)
|
||||
{
|
||||
p("Fatal: RPC response requests authentication\n");
|
||||
status = RPC_S_UNKNOWN_AUTHN_TYPE;
|
||||
}
|
||||
|
||||
// vlmcsd does not support fragmented packets (not yet neccassary)
|
||||
if ((Header->PacketFlags & (RPC_PF_FIRST | RPC_PF_LAST)) != (RPC_PF_FIRST | RPC_PF_LAST))
|
||||
if ((header->PacketFlags & (RPC_PF_FIRST | RPC_PF_LAST)) != (RPC_PF_FIRST | RPC_PF_LAST))
|
||||
{
|
||||
p("Fatal: RPC packet flags RPC_PF_FIRST and RPC_PF_LAST are not both set.\n");
|
||||
status = RPC_S_CANNOT_SUPPORT;
|
||||
}
|
||||
|
||||
if (Header->PacketFlags & RPC_PF_CANCEL_PENDING) p("Warning: %s should not be set\n", "RPC_PF_CANCEL_PENDING");
|
||||
if (Header->PacketFlags & RPC_PF_RESERVED) p("Warning: %s should not be set\n", "RPC_PF_RESERVED");
|
||||
if (Header->PacketFlags & RPC_PF_NOT_EXEC) p("Warning: %s should not be set\n", "RPC_PF_NOT_EXEC");
|
||||
if (Header->PacketFlags & RPC_PF_MAYBE) p("Warning: %s should not be set\n", "RPC_PF_MAYBE");
|
||||
if (Header->PacketFlags & RPC_PF_OBJECT) p("Warning: %s should not be set\n", "RPC_PF_OBJECT");
|
||||
if (header->PacketFlags & RPC_PF_CANCEL_PENDING) p("Warning: %s should not be set\n", "RPC_PF_CANCEL_PENDING");
|
||||
if (header->PacketFlags & RPC_PF_RESERVED) p("Warning: %s should not be set\n", "RPC_PF_RESERVED");
|
||||
if (header->PacketFlags & RPC_PF_NOT_EXEC) p("Warning: %s should not be set\n", "RPC_PF_NOT_EXEC");
|
||||
if (header->PacketFlags & RPC_PF_MAYBE) p("Warning: %s should not be set\n", "RPC_PF_MAYBE");
|
||||
if (header->PacketFlags & RPC_PF_OBJECT) p("Warning: %s should not be set\n", "RPC_PF_OBJECT");
|
||||
|
||||
if (Header->VersionMajor != 5 || Header->VersionMinor != 0)
|
||||
if (header->VersionMajor != 5 || header->VersionMinor != 0)
|
||||
{
|
||||
p("Fatal: Expected RPC version 5.0 and got %u.%u\n", Header->VersionMajor, Header->VersionMinor);
|
||||
p("Fatal: Expected RPC version 5.0 and got %u.%u\n", header->VersionMajor, header->VersionMinor);
|
||||
status = RPC_S_INVALID_VERS_OPTION;
|
||||
}
|
||||
|
||||
@ -714,47 +797,30 @@ static int checkRpcResponseHeader(const RPC_HEADER *const ResponseHeader, const
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* Initializes an RPC request header as needed for KMS, i.e. packet always fits in one fragment.
|
||||
* size cannot be greater than fragment length negotiated during RPC bind.
|
||||
*/
|
||||
static void createRpcRequestHeader(RPC_HEADER* RequestHeader, BYTE packetType, WORD size)
|
||||
{
|
||||
RequestHeader->PacketType = packetType;
|
||||
RequestHeader->PacketFlags = RPC_PF_FIRST | RPC_PF_LAST;
|
||||
RequestHeader->VersionMajor = 5;
|
||||
RequestHeader->VersionMinor = 0;
|
||||
RequestHeader->AuthLength = 0;
|
||||
RequestHeader->DataRepresentation = BE32(0x10000000); // Little endian, ASCII charset, IEEE floating point
|
||||
RequestHeader->CallId = LE32(CallId);
|
||||
RequestHeader->FragLength = LE16(size);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Sends a KMS request via RPC and receives a response.
|
||||
* Parameters are raw (encrypted) reqeuests / responses.
|
||||
* Returns 0 on success.
|
||||
*/
|
||||
RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const size_t requestSize, BYTE **KmsResponse, size_t *const responseSize)
|
||||
RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const kmsRequest, const size_t requestSize, BYTE **kmsResponse, size_t *const responseSize)
|
||||
{
|
||||
#define MAX_EXCESS_BYTES 16
|
||||
RPC_HEADER *RequestHeader, ResponseHeader;
|
||||
RPC_REQUEST64 *RpcRequest;
|
||||
RPC_RESPONSE64 _Response;
|
||||
int status;
|
||||
int_fast8_t useNdr64 = UseClientRpcNDR64 && firstPacketSent;
|
||||
const int_fast8_t useNdr64 = RpcFlags.HasNDR64 && UseClientRpcNDR64 && firstPacketSent;
|
||||
size_t size = sizeof(RPC_HEADER) + (useNdr64 ? sizeof(RPC_REQUEST64) : sizeof(RPC_REQUEST)) + requestSize;
|
||||
size_t responseSize2;
|
||||
|
||||
*KmsResponse = NULL;
|
||||
*kmsResponse = NULL;
|
||||
|
||||
BYTE *_Request = (BYTE*)vlmcsd_malloc(size);
|
||||
|
||||
RequestHeader = (RPC_HEADER*)_Request;
|
||||
RpcRequest = (RPC_REQUEST64*)(_Request + sizeof(RPC_HEADER));
|
||||
|
||||
createRpcRequestHeader(RequestHeader, RPC_PT_REQUEST, (WORD)size);
|
||||
createRpcHeader(RequestHeader, RPC_PT_REQUEST, (WORD)size);
|
||||
|
||||
// Increment CallId for next Request
|
||||
CallId++;
|
||||
@ -767,7 +833,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
||||
RpcRequest->AllocHint = LE32((DWORD)(requestSize + sizeof(RpcRequest->Ndr64)));
|
||||
RpcRequest->Ndr64.DataLength = LE64((uint64_t)requestSize);
|
||||
RpcRequest->Ndr64.DataSizeIs = LE64((uint64_t)requestSize);
|
||||
memcpy(RpcRequest->Ndr64.Data, KmsRequest, requestSize);
|
||||
memcpy(RpcRequest->Ndr64.Data, kmsRequest, requestSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -775,7 +841,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
||||
RpcRequest->AllocHint = LE32((DWORD)(requestSize + sizeof(RpcRequest->Ndr)));
|
||||
RpcRequest->Ndr.DataLength = LE32((DWORD)requestSize);
|
||||
RpcRequest->Ndr.DataSizeIs = LE32((DWORD)requestSize);
|
||||
memcpy(RpcRequest->Ndr.Data, KmsRequest, requestSize);
|
||||
memcpy(RpcRequest->Ndr.Data, kmsRequest, requestSize);
|
||||
}
|
||||
|
||||
for (;;)
|
||||
@ -864,13 +930,13 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
||||
break;
|
||||
}
|
||||
|
||||
*KmsResponse = (BYTE*)vlmcsd_malloc(*responseSize + MAX_EXCESS_BYTES);
|
||||
*kmsResponse = (BYTE*)vlmcsd_malloc(*responseSize + MAX_EXCESS_BYTES);
|
||||
|
||||
// If RPC stub is too short, assume missing bytes are zero (same ill behavior as MS RPC)
|
||||
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
|
||||
if ((bytesread = recv(sock, (char*)*KmsResponse, (int)(*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",
|
||||
(uint32_t)*responseSize,
|
||||
@ -883,8 +949,8 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
||||
|
||||
DWORD *pReturnCode;
|
||||
|
||||
size_t len = *responseSize + (useNdr64 ? sizeof(_Response.Ndr64) : sizeof(_Response.Ndr)) + sizeof(*pReturnCode);
|
||||
size_t pad = ((~len & 3) + 1) & 3;
|
||||
const size_t len = *responseSize + (useNdr64 ? sizeof(_Response.Ndr64) : sizeof(_Response.Ndr)) + sizeof(*pReturnCode);
|
||||
const size_t pad = ((~len & 3) + 1) & 3;
|
||||
|
||||
if (len + pad != LE32(_Response.AllocHint))
|
||||
{
|
||||
@ -895,7 +961,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
||||
size_t i;
|
||||
for (i = 0; i < pad; i++)
|
||||
{
|
||||
if (*(*KmsResponse + *responseSize + sizeof(*pReturnCode) + i))
|
||||
if (*(*kmsResponse + *responseSize + sizeof(*pReturnCode) + i))
|
||||
{
|
||||
printerrorf("\nWarning: RPC stub data not padded to zeros according to Microsoft standard\n");
|
||||
break;
|
||||
@ -903,7 +969,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
||||
}
|
||||
}
|
||||
|
||||
pReturnCode = (DWORD*)(*KmsResponse + *responseSize + pad);
|
||||
pReturnCode = (DWORD*)(*kmsResponse + *responseSize + pad);
|
||||
status = LE32(UA32(pReturnCode));
|
||||
|
||||
break;
|
||||
@ -916,7 +982,7 @@ RpcStatus rpcSendRequest(const RpcCtx sock, const BYTE *const KmsRequest, const
|
||||
}
|
||||
|
||||
|
||||
static int_fast8_t IsNullGuid(BYTE* guidPtr)
|
||||
static int_fast8_t IsNullGuid(const BYTE* guidPtr)
|
||||
{
|
||||
int_fast8_t i;
|
||||
|
||||
@ -933,23 +999,23 @@ static int_fast8_t IsNullGuid(BYTE* guidPtr)
|
||||
* Returns 0 on success. RPC binding is required before any payload can be
|
||||
* exchanged. It negotiates about protocol details.
|
||||
*/
|
||||
RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const int_fast8_t verbose)
|
||||
static RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, const BYTE packetType, const int_fast8_t verbose)
|
||||
{
|
||||
RPC_HEADER *RequestHeader, ResponseHeader;
|
||||
RPC_BIND_REQUEST *bindRequest;
|
||||
RPC_BIND_RESPONSE *bindResponse;
|
||||
int status;
|
||||
WORD ctxItems = 1 + (packetType == RPC_PT_BIND_REQ ? UseClientRpcNDR64 + UseClientRpcBTFN : 0);
|
||||
size_t rpcBindSize = (sizeof(RPC_HEADER) + sizeof(RPC_BIND_REQUEST) + (ctxItems - 1) * sizeof(bindRequest->CtxItems[0]));
|
||||
const WORD ctxItems = 1 + (packetType == RPC_PT_BIND_REQ ? UseClientRpcNDR64 + UseClientRpcBTFN : 0);
|
||||
const size_t rpcBindSize = (sizeof(RPC_HEADER) + sizeof(RPC_BIND_REQUEST) + (ctxItems - 1) * sizeof(bindRequest->CtxItems[0]));
|
||||
WORD ctxIndex = 0;
|
||||
WORD i;
|
||||
WORD CtxBTFN = (WORD)~0, CtxNDR64 = (WORD)~0;
|
||||
BYTE* _Request = (BYTE*)alloca(rpcBindSize);
|
||||
WORD CtxBTFN = RPC_INVALID_CTX, CtxNDR64 = RPC_INVALID_CTX;
|
||||
BYTE* request = (BYTE*)alloca(rpcBindSize);
|
||||
|
||||
RequestHeader = (RPC_HEADER*)_Request;
|
||||
bindRequest = (RPC_BIND_REQUEST*)(_Request + sizeof(RPC_HEADER));
|
||||
RequestHeader = (RPC_HEADER*)request;
|
||||
bindRequest = (RPC_BIND_REQUEST*)(request + sizeof(RPC_HEADER));
|
||||
|
||||
createRpcRequestHeader(RequestHeader, packetType, (WORD)rpcBindSize);
|
||||
createRpcHeader(RequestHeader, packetType, (WORD)rpcBindSize);
|
||||
RequestHeader->PacketFlags |= UseMultiplexedRpc ? RPC_PF_MULTIPLEX : 0;
|
||||
|
||||
bindRequest->AssocGroup = 0;
|
||||
@ -959,13 +1025,14 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
||||
// data that is identical in all Ctx items
|
||||
for (i = 0; i < ctxItems; i++)
|
||||
{
|
||||
bindRequest->CtxItems[i].ContextId = LE16(i);
|
||||
bindRequest->CtxItems[i].InterfaceVerMajor = LE16(1);
|
||||
bindRequest->CtxItems[i].InterfaceVerMinor = 0;
|
||||
bindRequest->CtxItems[i].NumTransItems = LE16(1);
|
||||
bindRequest->CtxItems[i].SyntaxVersion = i ? LE32(1) : LE32(2);
|
||||
struct CtxItem* ctxItem = bindRequest->CtxItems + i;
|
||||
ctxItem->ContextId = LE16(i);
|
||||
ctxItem->InterfaceVerMajor = LE16(1);
|
||||
ctxItem->InterfaceVerMinor = 0;
|
||||
ctxItem->NumTransItems = LE16(1);
|
||||
ctxItem->SyntaxVersion = i ? LE32(1) : LE32(2);
|
||||
|
||||
memcpy(&bindRequest->CtxItems[i].InterfaceUUID, InterfaceUuid, sizeof(GUID));
|
||||
memcpy(&ctxItem->InterfaceUUID, InterfaceUuid, sizeof(GUID));
|
||||
}
|
||||
|
||||
memcpy(&bindRequest->CtxItems[0].TransferSyntax, TransferSyntaxNDR32, sizeof(GUID));
|
||||
@ -982,7 +1049,7 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
||||
CtxBTFN = ctxIndex;
|
||||
}
|
||||
|
||||
if (!_send(sock, _Request, (int)rpcBindSize))
|
||||
if (!_send(sock, request, (int)rpcBindSize))
|
||||
{
|
||||
printerrorf("\nFatal: Sending RPC bind request failed\n");
|
||||
return RPC_S_COMM_FAILURE;
|
||||
@ -1040,9 +1107,11 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
||||
const char* transferSyntaxName =
|
||||
i == CtxBTFN ? "BTFN" : i == CtxNDR64 ? "NDR64" : "NDR32";
|
||||
|
||||
if (bindResponse->Results[i].AckResult == RPC_BIND_NACK) // transfer syntax was declined
|
||||
struct CtxResults* ctxResult = bindResponse->Results + i;
|
||||
struct CtxItem* ctxItem = bindRequest->CtxItems + i;
|
||||
if (ctxResult->AckResult == RPC_BIND_NACK) // transfer syntax was declined
|
||||
{
|
||||
if (!IsNullGuid((BYTE*)&bindResponse->Results[i].TransferSyntax))
|
||||
if (!IsNullGuid((BYTE*)&ctxResult->TransferSyntax))
|
||||
{
|
||||
printerrorf(
|
||||
"\nWarning: Rejected transfer syntax %s did not return NULL Guid\n",
|
||||
@ -1050,23 +1119,23 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
||||
);
|
||||
}
|
||||
|
||||
if (bindResponse->Results[i].SyntaxVersion)
|
||||
if (ctxResult->SyntaxVersion)
|
||||
{
|
||||
printerrorf(
|
||||
"\nWarning: Rejected transfer syntax %s did not return syntax version 0 but %u\n",
|
||||
transferSyntaxName,
|
||||
LE32(bindResponse->Results[i].SyntaxVersion)
|
||||
LE32(ctxResult->SyntaxVersion)
|
||||
);
|
||||
}
|
||||
|
||||
if (bindResponse->Results[i].AckReason == RPC_ABSTRACTSYNTAX_UNSUPPORTED)
|
||||
if (ctxResult->AckReason == RPC_ABSTRACTSYNTAX_UNSUPPORTED)
|
||||
{
|
||||
printerrorf(
|
||||
"\nWarning: Transfer syntax %s does not support KMS activation\n",
|
||||
transferSyntaxName
|
||||
);
|
||||
}
|
||||
else if (bindResponse->Results[i].AckReason != RPC_SYNTAX_UNSUPPORTED)
|
||||
else if (ctxResult->AckReason != RPC_SYNTAX_UNSUPPORTED)
|
||||
{
|
||||
printerrorf(
|
||||
"\nWarning: Rejected transfer syntax %s did not return ack reason RPC_SYNTAX_UNSUPPORTED\n",
|
||||
@ -1079,14 +1148,14 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
||||
|
||||
if (i == CtxBTFN) // BTFN
|
||||
{
|
||||
if (bindResponse->Results[i].AckResult != RPC_BIND_ACK)
|
||||
if (ctxResult->AckResult != RPC_BIND_ACK)
|
||||
{
|
||||
printerrorf("\nWarning: BTFN did not respond with RPC_BIND_ACK or RPC_BIND_NACK\n");
|
||||
}
|
||||
|
||||
if (bindResponse->Results[i].AckReason != LE16(3))
|
||||
if (ctxResult->AckReason != LE16(3))
|
||||
{
|
||||
printerrorf("\nWarning: BTFN did not return expected feature mask 0x3 but 0x%X\n", (unsigned int)LE16(bindResponse->Results[i].AckReason));
|
||||
printerrorf("\nWarning: BTFN did not return expected feature mask 0x3 but 0x%X\n", (unsigned int)LE16(ctxResult->AckReason));
|
||||
}
|
||||
|
||||
if (verbose) printf("... BTFN ");
|
||||
@ -1096,7 +1165,7 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
||||
}
|
||||
|
||||
// NDR32 or NDR64 Ctx
|
||||
if (bindResponse->Results[i].AckResult != RPC_BIND_ACCEPT)
|
||||
if (ctxResult->AckResult != RPC_BIND_ACCEPT)
|
||||
{
|
||||
printerrorf(
|
||||
"\nFatal: transfer syntax %s returned an invalid status, neither RPC_BIND_ACCEPT nor RPC_BIND_NACK\n",
|
||||
@ -1106,7 +1175,7 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
||||
status = RPC_S_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if (!IsEqualGUID(&bindResponse->Results[i].TransferSyntax, &bindRequest->CtxItems[i].TransferSyntax))
|
||||
if (!IsEqualGUID(&ctxResult->TransferSyntax, &ctxItem->TransferSyntax))
|
||||
{
|
||||
printerrorf(
|
||||
"\nFatal: Transfer syntax of RPC bind request and response does not match\n"
|
||||
@ -1115,23 +1184,23 @@ RpcStatus rpcBindOrAlterClientContext(const RpcCtx sock, BYTE packetType, const
|
||||
status = RPC_S_UNSUPPORTED_TRANS_SYN;
|
||||
}
|
||||
|
||||
if (bindResponse->Results[i].SyntaxVersion != bindRequest->CtxItems[i].SyntaxVersion)
|
||||
if (ctxResult->SyntaxVersion != ctxItem->SyntaxVersion)
|
||||
{
|
||||
printerrorf("\nFatal: Expected transfer syntax version %u for %s but got %u\n",
|
||||
(uint32_t)LE32(bindRequest->CtxItems[0].SyntaxVersion),
|
||||
(uint32_t)LE32(ctxItem->SyntaxVersion),
|
||||
transferSyntaxName,
|
||||
(uint32_t)LE32(bindResponse->Results[0].SyntaxVersion)
|
||||
(uint32_t)LE32(ctxResult->SyntaxVersion)
|
||||
);
|
||||
|
||||
status = RPC_S_UNSUPPORTED_TRANS_SYN;
|
||||
}
|
||||
|
||||
// The ack reason field is actually undefined here but Microsoft sets this to 0
|
||||
if (bindResponse->Results[i].AckReason != 0)
|
||||
if (ctxResult->AckReason != 0)
|
||||
{
|
||||
printerrorf(
|
||||
"\nWarning: Ack reason should be 0 but is %u\n",
|
||||
LE16(bindResponse->Results[i].AckReason)
|
||||
LE16(ctxResult->AckReason)
|
||||
);
|
||||
}
|
||||
|
||||
|
20
src/rpc.h
20
src/rpc.h
@ -159,7 +159,7 @@ typedef struct {
|
||||
WORD MaxRecvFrag;
|
||||
DWORD AssocGroup;
|
||||
DWORD NumCtxItems;
|
||||
struct {
|
||||
struct CtxItem {
|
||||
WORD ContextId;
|
||||
WORD NumTransItems;
|
||||
GUID InterfaceUUID;
|
||||
@ -177,7 +177,7 @@ typedef struct {
|
||||
WORD SecondaryAddressLength;
|
||||
BYTE SecondaryAddress[6];
|
||||
DWORD NumResults;
|
||||
struct {
|
||||
struct CtxResults {
|
||||
WORD AckResult;
|
||||
WORD AckReason;
|
||||
GUID TransferSyntax;
|
||||
@ -254,6 +254,12 @@ typedef struct {
|
||||
};
|
||||
BYTE Data[0];
|
||||
} Ndr64;
|
||||
struct
|
||||
{
|
||||
DWORD Code;
|
||||
DWORD Padding;
|
||||
} Error;
|
||||
|
||||
};
|
||||
} /*__packed*/ RPC_RESPONSE64;
|
||||
|
||||
@ -262,7 +268,7 @@ typedef struct {
|
||||
typedef SOCKET RpcCtx;
|
||||
typedef int RpcStatus;
|
||||
|
||||
#define INVALID_NDR_CTX ((WORD)~0)
|
||||
#define RPC_INVALID_CTX ((WORD)~0)
|
||||
|
||||
#define RPC_BIND_ACCEPT (0)
|
||||
#define RPC_BIND_NACK (LE16(2))
|
||||
@ -270,6 +276,8 @@ typedef int RpcStatus;
|
||||
|
||||
#define RPC_SYNTAX_UNSUPPORTED (LE16(2))
|
||||
#define RPC_ABSTRACTSYNTAX_UNSUPPORTED (LE16(1))
|
||||
#define RPC_NCA_UNK_IF (LE32(0x1c010003))
|
||||
#define RPC_NCA_PROTO_ERROR (LE32(0x1c01000b))
|
||||
|
||||
#define RPC_BTFN_SEC_CONTEXT_MULTIPLEX (LE16(1))
|
||||
#define RPC_BTFN_KEEP_ORPHAN (LE16(2))
|
||||
@ -279,6 +287,7 @@ typedef int RpcStatus;
|
||||
|
||||
#define RPC_PT_REQUEST 0
|
||||
#define RPC_PT_RESPONSE 2
|
||||
#define RPC_PT_FAULT 3
|
||||
#define RPC_PT_BIND_REQ 11
|
||||
#define RPC_PT_BIND_ACK 12
|
||||
#define RPC_PT_ALTERCONTEXT_REQ 14
|
||||
@ -293,6 +302,7 @@ typedef int RpcStatus;
|
||||
#define RPC_PF_MAYBE 64
|
||||
#define RPC_PF_OBJECT 128
|
||||
|
||||
|
||||
typedef union _RPC_FLAGS
|
||||
{
|
||||
DWORD mask;
|
||||
@ -306,8 +316,8 @@ typedef union _RPC_FLAGS
|
||||
|
||||
extern RPC_FLAGS RpcFlags;
|
||||
|
||||
void rpcServer(const SOCKET sock, 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, PRpcDiag_t rpcDiag);
|
||||
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);
|
||||
|
||||
#endif // __rpc_h
|
||||
|
@ -21,6 +21,10 @@ char ErrorMessage[MESSAGE_BUFFER_SIZE];
|
||||
#ifndef NO_STRICT_MODES
|
||||
uint32_t WhitelistingLevel = 0;
|
||||
int_fast8_t CheckClientTime = FALSE;
|
||||
#ifndef NO_CLIENT_LIST
|
||||
int_fast8_t MaintainClients = FALSE;
|
||||
int_fast8_t StartEmpty = FALSE;
|
||||
#endif // NO_CLIENT_LIST
|
||||
#endif // !NO_STRICT_MODES
|
||||
|
||||
#ifndef USE_MSRPC
|
||||
@ -34,14 +38,16 @@ int_fast8_t UseClientRpcBTFN = TRUE;
|
||||
#endif // USE_MSRPC
|
||||
|
||||
#ifndef NO_SOCKETS
|
||||
char *defaultport = "1688";
|
||||
char *defaultport = (char*)"1688";
|
||||
#endif // NO_SOCKETS
|
||||
|
||||
#if !defined(NO_PRIVATE_IP_DETECT)
|
||||
uint32_t PublicIPProtectionLevel = 0;
|
||||
#endif
|
||||
|
||||
KmsResponseParam_t KmsResponseParameters[MAX_KMSAPPS];
|
||||
#if !defined(NO_RANDOM_EPID) || !defined(NO_CL_PIDS) || !defined(NO_INI_FILE)
|
||||
KmsResponseParam_t* KmsResponseParameters;
|
||||
#endif // !defined(NO_RANDOM_EPID) || !defined(NO_CL_PIDS) || !defined(NO_INI_FILE)
|
||||
|
||||
#if !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
|
||||
int_fast8_t IsRestarted = FALSE;
|
||||
@ -69,6 +75,8 @@ int_fast8_t logverbose = 0;
|
||||
#endif // NO_LOG
|
||||
|
||||
#ifndef NO_SOCKETS
|
||||
int_fast8_t ExitLevel = 0;
|
||||
|
||||
#ifndef _WIN32
|
||||
int_fast8_t nodaemon = 0;
|
||||
#endif // _WIN32
|
||||
@ -78,14 +86,33 @@ int_fast8_t InetdMode = 0;
|
||||
int_fast8_t nodaemon = 1;
|
||||
#endif // _WIN32
|
||||
int_fast8_t InetdMode = 1;
|
||||
#endif
|
||||
#endif // NO_SOCKETS
|
||||
|
||||
PVlmcsdHeader_t KmsData = NULL;
|
||||
#ifndef NO_EXTERNAL_DATA
|
||||
#ifndef DATA_FILE
|
||||
char *fn_data = NULL;
|
||||
#else // DATA_FILE
|
||||
char *fn_data = DATA_FILE;
|
||||
#endif // DATA_FILE
|
||||
#ifndef NO_INTERNAL_DATA
|
||||
int_fast8_t ExplicitDataLoad = FALSE;
|
||||
#endif // NO_INTERNAL_DATA
|
||||
#endif // NO_EXTERNAL_DATA
|
||||
const char *fn_exe = NULL;
|
||||
|
||||
#ifndef NO_RANDOM_EPID
|
||||
int_fast8_t RandomizationLevel = 1;
|
||||
uint16_t Lcid = 0;
|
||||
uint16_t HostBuild = 0;
|
||||
#endif
|
||||
|
||||
#ifndef NO_SOCKETS
|
||||
#if !defined(USE_MSRPC) && !defined(SIMPLE_RPC)
|
||||
uint8_t IsNDR64Defined = FALSE;
|
||||
#endif // !defined(USE_MSRPC) && !defined(SIMPLE_RPC)
|
||||
|
||||
|
||||
#if !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
||||
#ifdef SIMPLE_SOCKETS
|
||||
SOCKET s_server;
|
||||
#else
|
||||
@ -95,13 +122,13 @@ int numsockets = 0;
|
||||
|
||||
#if !defined(NO_LIMIT) && !__minix__
|
||||
#ifndef _WIN32 // Posix
|
||||
sem_t *Semaphore;
|
||||
sem_t *MaxTaskSemaphore;
|
||||
#else // _WIN32
|
||||
HANDLE Semaphore;
|
||||
HANDLE MaxTaskSemaphore;
|
||||
#endif // _WIN32
|
||||
|
||||
#endif // !defined(NO_LIMIT) && !__minix__
|
||||
#endif // NO_SOCKETS
|
||||
#endif // !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
||||
|
||||
#ifdef _NTSERVICE
|
||||
int_fast8_t IsNTService = TRUE;
|
||||
|
@ -16,9 +16,9 @@
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
#include <syslog.h>
|
||||
#if (!defined(NO_LIMIT) || defined(USE_THREADS)) && !__minix__
|
||||
#if !__minix__
|
||||
#include <pthread.h>
|
||||
#endif // (!defined(NO_LIMIT) || defined(USE_THREADS)) && !__minix__
|
||||
#endif // !__minix__
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#if !defined(NO_LIMIT) && !__minix__
|
||||
@ -46,8 +46,9 @@
|
||||
#include <stdarg.h>
|
||||
//#include <semaphore.h>
|
||||
#include "types.h"
|
||||
#include "kms.h"
|
||||
|
||||
#define MAX_KMSAPPS 4
|
||||
//#define MIN_CSVLK 6
|
||||
typedef struct
|
||||
{
|
||||
const char* Epid;
|
||||
@ -96,14 +97,28 @@ extern int_fast8_t nodaemon;
|
||||
extern DWORD VLActivationInterval;
|
||||
extern DWORD VLRenewalInterval;
|
||||
extern int_fast8_t DisconnectImmediately;
|
||||
extern KmsResponseParam_t KmsResponseParameters[MAX_KMSAPPS];
|
||||
#if !defined(NO_RANDOM_EPID) || !defined(NO_CL_PIDS) || !defined(NO_INI_FILE)
|
||||
extern KmsResponseParam_t* KmsResponseParameters;
|
||||
#endif // !defined(NO_RANDOM_EPID) || !defined(NO_CL_PIDS) || !defined(NO_INI_FILE)
|
||||
extern const char *const cIPv4;
|
||||
extern const char *const cIPv6;
|
||||
extern int_fast8_t InetdMode;
|
||||
extern PVlmcsdHeader_t KmsData;
|
||||
#ifndef NO_EXTERNAL_DATA
|
||||
extern char* fn_data;
|
||||
#ifndef NO_INTERNAL_DATA
|
||||
extern int_fast8_t ExplicitDataLoad;
|
||||
#endif // NO_INTERNAL_DATA
|
||||
#endif // NO_EXTERNAL_DATA
|
||||
extern const char* fn_exe;
|
||||
|
||||
#ifndef NO_STRICT_MODES
|
||||
extern uint32_t WhitelistingLevel;
|
||||
extern int_fast8_t CheckClientTime;
|
||||
#ifndef NO_CLIENT_LIST
|
||||
extern int_fast8_t MaintainClients;
|
||||
extern int_fast8_t StartEmpty;
|
||||
#endif // NO_CLIENT_LIST
|
||||
#endif // !NO_STRICT_MODES
|
||||
|
||||
|
||||
@ -118,6 +133,7 @@ extern int_fast8_t UseClientRpcBTFN;
|
||||
#endif // USE_MSRPC
|
||||
|
||||
#ifndef NO_SOCKETS
|
||||
extern int_fast8_t ExitLevel;
|
||||
extern char *defaultport;
|
||||
#endif // NO_SOCKETS
|
||||
|
||||
@ -146,9 +162,14 @@ extern int_fast8_t logverbose;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(USE_MSRPC) && !defined(SIMPLE_RPC)
|
||||
extern uint8_t IsNDR64Defined;
|
||||
#endif
|
||||
|
||||
#ifndef NO_RANDOM_EPID
|
||||
extern int_fast8_t RandomizationLevel;
|
||||
extern uint16_t Lcid;
|
||||
extern uint16_t HostBuild;
|
||||
#endif
|
||||
|
||||
#if !defined(NO_SOCKETS) && !defined(USE_MSRPC)
|
||||
@ -162,9 +183,9 @@ extern int numsockets;
|
||||
#if !defined(NO_LIMIT) && !__minix__
|
||||
|
||||
#ifndef _WIN32
|
||||
extern sem_t *Semaphore;
|
||||
extern sem_t *MaxTaskSemaphore;
|
||||
#else // _WIN32
|
||||
extern HANDLE Semaphore;
|
||||
extern HANDLE MaxTaskSemaphore;
|
||||
#endif // _WIN32
|
||||
|
||||
#endif // !defined(NO_LIMIT) && !__minix__
|
||||
|
77
src/tap-windows.h
Normal file
77
src/tap-windows.h
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* TAP-Windows -- A kernel driver to provide virtual tap
|
||||
* device functionality on Windows.
|
||||
*
|
||||
* This code was inspired by the CIPE-Win32 driver by Damion K. Wilson.
|
||||
*
|
||||
* This source code is Copyright (C) 2002-2014 OpenVPN Technologies, Inc.,
|
||||
* and is released under the GPL version 2 (see below). This particular file
|
||||
* (tap-windows.h) is also licensed using the MIT license (see COPYRIGHT.MIT).
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program (see the file COPYING included with this
|
||||
* distribution); if not, write to the Free Software Foundation, Inc.,
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __TAP_WIN_H
|
||||
#define __TAP_WIN_H
|
||||
|
||||
/*
|
||||
* =============
|
||||
* TAP IOCTLs
|
||||
* =============
|
||||
*/
|
||||
|
||||
#define TAP_WIN_CONTROL_CODE(request,method) \
|
||||
CTL_CODE (FILE_DEVICE_UNKNOWN, request, method, FILE_ANY_ACCESS)
|
||||
|
||||
/* Present in 8.1 */
|
||||
|
||||
#define TAP_WIN_IOCTL_GET_MAC TAP_WIN_CONTROL_CODE (1, METHOD_BUFFERED)
|
||||
#define TAP_WIN_IOCTL_GET_VERSION TAP_WIN_CONTROL_CODE (2, METHOD_BUFFERED)
|
||||
#define TAP_WIN_IOCTL_GET_MTU TAP_WIN_CONTROL_CODE (3, METHOD_BUFFERED)
|
||||
#define TAP_WIN_IOCTL_GET_INFO TAP_WIN_CONTROL_CODE (4, METHOD_BUFFERED)
|
||||
#define TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT TAP_WIN_CONTROL_CODE (5, METHOD_BUFFERED)
|
||||
#define TAP_WIN_IOCTL_SET_MEDIA_STATUS TAP_WIN_CONTROL_CODE (6, METHOD_BUFFERED)
|
||||
#define TAP_WIN_IOCTL_CONFIG_DHCP_MASQ TAP_WIN_CONTROL_CODE (7, METHOD_BUFFERED)
|
||||
#define TAP_WIN_IOCTL_GET_LOG_LINE TAP_WIN_CONTROL_CODE (8, METHOD_BUFFERED)
|
||||
#define TAP_WIN_IOCTL_CONFIG_DHCP_SET_OPT TAP_WIN_CONTROL_CODE (9, METHOD_BUFFERED)
|
||||
|
||||
/* Added in 8.2 */
|
||||
|
||||
/* obsoletes TAP_WIN_IOCTL_CONFIG_POINT_TO_POINT */
|
||||
#define TAP_WIN_IOCTL_CONFIG_TUN TAP_WIN_CONTROL_CODE (10, METHOD_BUFFERED)
|
||||
|
||||
/*
|
||||
* =================
|
||||
* Registry keys
|
||||
* =================
|
||||
*/
|
||||
|
||||
#define ADAPTER_KEY "SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}"
|
||||
|
||||
#define NETWORK_CONNECTIONS_KEY "SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}"
|
||||
|
||||
/*
|
||||
* ======================
|
||||
* Filesystem prefixes
|
||||
* ======================
|
||||
*/
|
||||
|
||||
#define USERMODEDEVICEDIR "\\\\.\\Global\\"
|
||||
#define SYSDEVICEDIR "\\Device\\"
|
||||
#define USERDEVICEDIR "\\DosDevices\\Global\\"
|
||||
#define TAP_WIN_SUFFIX ".tap"
|
||||
|
||||
#endif // __TAP_WIN_H
|
||||
|
||||
|
55
src/types.h
55
src/types.h
@ -1,6 +1,10 @@
|
||||
#ifndef __types_h
|
||||
#define __types_h
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
@ -10,6 +14,10 @@
|
||||
#endif // CONFIG
|
||||
#include CONFIG
|
||||
|
||||
#if defined(NO_INTERNAL_DATA) && defined(NO_EXTERNAL_DATA)
|
||||
#error NO_INTERAL_DATA and NO_EXTERNAL_DATA cannot be used together
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
//#ifndef USE_MSRPC
|
||||
@ -22,7 +30,12 @@
|
||||
#define ANDROID_HELPER1(s) ANDROID_HELPER2(s)
|
||||
#define ANDROID_HELPER2(s) #s
|
||||
|
||||
#if !defined(_WIN32) && !__CYGWIN__
|
||||
#if !_WIN32 && !__CYGWIN__
|
||||
|
||||
#if !__minix__
|
||||
#include <pthread.h>
|
||||
#endif // !__minix__
|
||||
|
||||
#define __declspec(x) __attribute__((__visibility__("default")))
|
||||
#endif
|
||||
|
||||
@ -37,7 +50,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
//#include <limits.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __ANDROID__
|
||||
@ -45,6 +58,7 @@
|
||||
#endif // __ANDROID__
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#include <netinet/in.h>
|
||||
#endif // _WIN32
|
||||
|
||||
@ -55,6 +69,12 @@
|
||||
#endif // IP_FREEBIND
|
||||
#endif // __linux__
|
||||
|
||||
#ifdef NO_EXTERNAL_DATA
|
||||
#ifndef UNSAFE_DATA_LOAD
|
||||
#define UNSAFE_DATA_LOAD
|
||||
#endif // UNSAFE_DATA_LOAD
|
||||
#endif // NO_EXTERNAL_DATA
|
||||
|
||||
#if (IP_BINDANY || IP_FREEBIND || IPV6_BINDANY || IP_NONLOCALOK) && !defined(NO_FREEBIND) && !defined(USE_MSRPC) && !defined(SIMPLE_SOCKETS)
|
||||
#define HAVE_FREEBIND 1
|
||||
#endif
|
||||
@ -63,9 +83,27 @@
|
||||
#define HAVE_GETIFADDR 1
|
||||
#endif
|
||||
|
||||
#if !defined(NO_STRICT_MODES) && defined(NO_BASIC_PRODUCT_LIST)
|
||||
#define NO_STRICT_MODES
|
||||
#endif // !defined(NO_STRICT_MODES) && defined(NO_BASIC_PRODUCT_LIST)
|
||||
//#if (__minix__ || defined(NO_SOCKETS)) && !defined(NO_STRICT_MODES)
|
||||
//#define NO_STRICT_MODES
|
||||
//#endif // __minix__ && !defined(NO_STRICT_MODES)
|
||||
|
||||
#if (defined(NO_STRICT_MODES) || defined(NO_SOCKETS)) && !defined(NO_CLIENT_LIST)
|
||||
#define NO_CLIENT_LIST
|
||||
#endif // defined(NO_STRICT_MODES) || defined(NO_SOCKETS) && !defined(NO_CLIENT_LIST)
|
||||
|
||||
#if !_WIN32 && !__CYGWIN__
|
||||
|
||||
#if !defined(_POSIX_THREADS) || (!defined(_POSIX_THREAD_PROCESS_SHARED) && !defined(USE_THREADS) && !__ANDROID__)
|
||||
#ifndef NO_CLIENT_LIST
|
||||
#define NO_CLIENT_LIST
|
||||
#endif // !NO_CLIENT_LIST
|
||||
#endif // !defined(_POSIX_THREADS) || (!defined(_POSIX_THREAD_PROCESS_SHARED) && !defined(USE_THREADS))
|
||||
|
||||
#if !defined(_POSIX_THREADS) && !defined(NO_LIMIT)
|
||||
#define NO_LIMIT
|
||||
#endif // !defined(POSIX_THREADS) && !defined(NO_LIMIT)
|
||||
|
||||
#endif // !_WIN32 && !__CYGWIN__
|
||||
|
||||
#ifndef alloca
|
||||
#ifdef __GNUC__
|
||||
@ -134,9 +172,6 @@ typedef struct __packed
|
||||
uint64_t val[0];
|
||||
} PACKED64;
|
||||
|
||||
// Extend this type to 16 or 32 bits if more than 254 products appear
|
||||
typedef uint8_t ProdListIndex_t;
|
||||
|
||||
// Deal with Mingw32-w64 C++ header which defines a _countof that is incompatible with vlmcsd
|
||||
#define vlmcsd_countof(x) ( sizeof(x) / sizeof(x[0]) )
|
||||
|
||||
@ -192,6 +227,10 @@ typedef uint8_t ProdListIndex_t;
|
||||
|
||||
#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(NO_SOCKETS)
|
||||
#define _NTSERVICE
|
||||
#else
|
||||
#ifndef NO_TAP
|
||||
#define NO_TAP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (defined(__CYGWIN__) || defined(_WIN32) || defined(NO_SOCKETS)) && !defined(NO_SIGHUP)
|
||||
|
@ -36,6 +36,7 @@
|
||||
<ClCompile Include="endian.c" />
|
||||
<ClCompile Include="helpers.c" />
|
||||
<ClCompile Include="kms.c" />
|
||||
<ClCompile Include="kmsdata-full.c" />
|
||||
<ClCompile Include="network.c" />
|
||||
<ClCompile Include="ns_name.c" />
|
||||
<ClCompile Include="ns_parse.c" />
|
||||
@ -54,6 +55,7 @@
|
||||
<ClInclude Include="endian.h" />
|
||||
<ClInclude Include="helpers.h" />
|
||||
<ClInclude Include="kms.h" />
|
||||
<ClInclude Include="kmsdata.h" />
|
||||
<ClInclude Include="network.h" />
|
||||
<ClInclude Include="ns_name.h" />
|
||||
<ClInclude Include="ns_parse.h" />
|
||||
@ -84,9 +86,15 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
@ -127,6 +135,15 @@
|
||||
<RemoteLdToolExe>gcc</RemoteLdToolExe>
|
||||
<IntDir>$(ProjectDir)vlmcs\obj\$(Platform)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<IncludePath>$(IncludePath);$(ISenseIncludePath);$(ProjectDir)VisualStudio-Linux-Remote\toolchains\gcc5-x86_64-linux-gnu\usr\include</IncludePath>
|
||||
<TargetName>vlmcs</TargetName>
|
||||
<TargetExt />
|
||||
<RemoteCCompileToolExe>gcc</RemoteCCompileToolExe>
|
||||
<SourcePath />
|
||||
<RemoteLdToolExe>gcc</RemoteLdToolExe>
|
||||
<IntDir>$(ProjectDir)vlmcs\obj\$(Platform)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<TargetName>vlmcs-x86-glibc</TargetName>
|
||||
<TargetExt />
|
||||
@ -136,6 +153,14 @@
|
||||
<RemoteLdToolExe>gcc</RemoteLdToolExe>
|
||||
<IntDir>$(ProjectDir)vlmcs\obj\$(Platform)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<RemoteLdToolExe>gcc</RemoteLdToolExe>
|
||||
<IntDir>$(ProjectDir)vlmcs\obj\$(Platform)\$(Configuration)\</IntDir>
|
||||
<TargetName>vlmcs-x86-glibc</TargetName>
|
||||
<TargetExt />
|
||||
<RemoteCCompileToolExe>gcc</RemoteCCompileToolExe>
|
||||
<IncludePath>$(IncludePath);$(ISenseIncludePath);$(ProjectDir)VisualStudio-Linux-Remote\toolchains\gcc5-x86_64-linux-gnu\usr\include</IncludePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>USE_THREADS;_PEDANTIC</PreprocessorDefinitions>
|
||||
@ -200,16 +225,42 @@
|
||||
<LibraryDependencies>resolv;pthread;%(LibraryDependencies)</LibraryDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>USE_THREADS;_PEDANTIC</PreprocessorDefinitions>
|
||||
<ThreadSafeStatics>
|
||||
</ThreadSafeStatics>
|
||||
<ExceptionHandling>Disabled</ExceptionHandling>
|
||||
<RuntimeTypeInfo>
|
||||
</RuntimeTypeInfo>
|
||||
<AdditionalOptions>-Wno-sign-conversion -Wno-conversion -m32 -std=gnu89 %(AdditionalOptions)</AdditionalOptions>
|
||||
<CLanguageStandard>gnu99</CLanguageStandard>
|
||||
<CppLanguageStandard>c++98</CppLanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<LibraryDependencies>resolv;pthread;%(LibraryDependencies)</LibraryDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<ClCompile>
|
||||
<Optimization>MinSize</Optimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<ClCompile>
|
||||
<Optimization>MinSize</Optimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<ClCompile>
|
||||
<LinkTimeOptimization>true</LinkTimeOptimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<ClCompile>
|
||||
<LinkTimeOptimization>true</LinkTimeOptimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<ClCompile>
|
||||
<NoCommonBlocks>true</NoCommonBlocks>
|
||||
@ -232,6 +283,30 @@
|
||||
<AdditionalOptions>-Wl,--gc-sections,-z,norelro -fwhole-program %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<ClCompile>
|
||||
<NoCommonBlocks>true</NoCommonBlocks>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions);USE_THREADS</PreprocessorDefinitions>
|
||||
<ThreadSafeStatics>
|
||||
</ThreadSafeStatics>
|
||||
<RelaxIEEE>true</RelaxIEEE>
|
||||
<SymbolsHiddenByDefault>true</SymbolsHiddenByDefault>
|
||||
<ExceptionHandling>Disabled</ExceptionHandling>
|
||||
<RuntimeTypeInfo>
|
||||
</RuntimeTypeInfo>
|
||||
<CLanguageStandard>c99</CLanguageStandard>
|
||||
<CppLanguageStandard>c++98</CppLanguageStandard>
|
||||
<AdditionalOptions>-Wno-sign-conversion -Wno-conversion -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants -ffunction-sections -fdata-sections -pipe -std=gnu89 -m32 %(AdditionalOptions)</AdditionalOptions>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<LibraryDependencies>resolv;pthread;%(LibraryDependencies)</LibraryDependencies>
|
||||
<DebuggerSymbolInformation>OmitAllSymbolInformation</DebuggerSymbolInformation>
|
||||
<Relocation>false</Relocation>
|
||||
<FunctionBinding>false</FunctionBinding>
|
||||
<AdditionalOptions>-Wl,--gc-sections,-z,norelro -fwhole-program %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets" />
|
||||
</Project>
|
@ -51,6 +51,9 @@
|
||||
<ClCompile Include="dns_srv.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="kmsdata-full.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="config.h">
|
||||
@ -104,5 +107,8 @@
|
||||
<ClInclude Include="vlmcs.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="kmsdata.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
469
src/vlmcs.c
469
src/vlmcs.c
@ -82,58 +82,26 @@ static int AddressFamily = 0;
|
||||
#endif // USE_MSRPC
|
||||
static int_fast8_t incompatibleOptions = 0;
|
||||
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" };
|
||||
static int32_t ActiveProductIndex = 0;
|
||||
static int32_t NCountPolicy = 0;
|
||||
static GUID AppGuid, KmsGuid, SkuGuid;
|
||||
static uint16_t MinorVersion = 0;
|
||||
static uint16_t MajorVersion;
|
||||
|
||||
//#if !MULTI_CALL_BINARY
|
||||
//uint8_t DefaultKmsData[]={0};
|
||||
//__pure size_t getDefaultKmsDataSize() { return (size_t)0; }
|
||||
//#endif // !MULTI_CALL_BINARY
|
||||
|
||||
#ifndef NO_DNS
|
||||
static int_fast8_t NoSrvRecordPriority = FALSE;
|
||||
#endif // NO_DNS
|
||||
|
||||
|
||||
// Structure for handling "License Packs" (e.g. Office2013v5 or WindowsVista)
|
||||
typedef struct
|
||||
{
|
||||
const char *names; //This is a list of strings. Terminate with additional Zero!!!
|
||||
int N_Policy;
|
||||
int kmsVersionMajor;
|
||||
const GUID *AppID;
|
||||
GUID ActID;
|
||||
GUID KMSID;
|
||||
} LicensePack;
|
||||
|
||||
|
||||
typedef char iniFileEpidLines[4][256];
|
||||
|
||||
// Well known "license packs"
|
||||
static const LicensePack LicensePackList[] =
|
||||
{
|
||||
// List of names min lics version appID skuId KMSCountedID
|
||||
/* 000 */ { "Vista\000W6\000"
|
||||
"WindowsVista\000"
|
||||
"Windows\000", 25, 4, PWINGUID, { 0x4f3d1606, 0x3fea, 0x4c01, { 0xbe, 0x3c, 0x8d, 0x67, 0x1c, 0x40, 0x1e, 0x3b, } }, { 0x212a64dc, 0x43b1, 0x4d3d, { 0xa3, 0x0c, 0x2f, 0xc6, 0x9d, 0x20, 0x95, 0xc6 } } },
|
||||
/* 001 */ { "W7\000Windows7\000", 25, 4, PWINGUID, { 0xb92e9980, 0xb9d5, 0x4821, { 0x9c, 0x94, 0x14, 0x0f, 0x63, 0x2f, 0x63, 0x12, } }, { 0x7fde5219, 0xfbfa, 0x484a, { 0x82, 0xc9, 0x34, 0xd1, 0xad, 0x53, 0xe8, 0x56 } } },
|
||||
/* 002 */ { "W8\000Windows8\000", 25, 5, PWINGUID, { 0xa98bcd6d, 0x5343, 0x4603, { 0x8a, 0xfe, 0x59, 0x08, 0xe4, 0x61, 0x11, 0x12, } }, { 0x3c40b358, 0x5948, 0x45af, { 0x92, 0x3b, 0x53, 0xd2, 0x1f, 0xcc, 0x7e, 0x79 } } },
|
||||
/* 003 */ { "W8C\000Windows8C\000", 25, 5, PWINGUID, { 0xc04ed6bf, 0x55c8, 0x4b47, { 0x9f, 0x8e, 0x5a, 0x1f, 0x31, 0xce, 0xee, 0x60, } }, { 0xbbb97b3b, 0x8ca4, 0x4a28, { 0x97, 0x17, 0x89, 0xfa, 0xbd, 0x42, 0xc4, 0xac } } },
|
||||
/* 004 */ { "W81\000Windows81\000", 25, 6, PWINGUID, { 0xc06b6981, 0xd7fd, 0x4a35, { 0xb7, 0xb4, 0x05, 0x47, 0x42, 0xb7, 0xaf, 0x67, } }, { 0xcb8fc780, 0x2c05, 0x495a, { 0x97, 0x10, 0x85, 0xaf, 0xff, 0xc9, 0x04, 0xd7 } } },
|
||||
/* 005 */ { "W81C\000Windows81C\000", 25, 6, PWINGUID, { 0xfe1c3238, 0x432a, 0x43a1, { 0x8e, 0x25, 0x97, 0xe7, 0xd1, 0xef, 0x10, 0xf3, } }, { 0x6d646890, 0x3606, 0x461a, { 0x86, 0xab, 0x59, 0x8b, 0xb8, 0x4a, 0xce, 0x82 } } },
|
||||
/* 006 */ { "W10\000Windows10\000", 25, 6, PWINGUID, { 0x73111121, 0x5638, 0x40f6, { 0xbc, 0x11, 0xf1, 0xd7, 0xb0, 0xd6, 0x43, 0x00, } }, { 0x58e2134f, 0x8e11, 0x4d17, { 0x9c, 0xb2, 0x91, 0x06, 0x9c, 0x15, 0x11, 0x48 } } },
|
||||
/* 007 */ { "W10C\000Windows10C\000", 25, 6, PWINGUID, { 0x58e97c99, 0xf377, 0x4ef1, { 0x81, 0xd5, 0x4a, 0xd5, 0x52, 0x2b, 0x5f, 0xd8, } }, { 0xe1c51358, 0xfe3e, 0x4203, { 0xa4, 0xa2, 0x3b, 0x6b, 0x20, 0xc9, 0x73, 0x4e } } },
|
||||
/* 008 */ { "2008" "\0" "2008A\000", 5, 4, PWINGUID, { 0xddfa9f7c, 0xf09e, 0x40b9, { 0x8c, 0x1a, 0xbe, 0x87, 0x7a, 0x9a, 0x7f, 0x4b, } }, { 0x33e156e4, 0xb76f, 0x4a52, { 0x9f, 0x91, 0xf6, 0x41, 0xdd, 0x95, 0xac, 0x48 } } },
|
||||
/* 009 */ { "2008B\000", 5, 4, PWINGUID, { 0xc1af4d90, 0xd1bc, 0x44ca, { 0x85, 0xd4, 0x00, 0x3b, 0xa3, 0x3d, 0xb3, 0xb9, } }, { 0x8fe53387, 0x3087, 0x4447, { 0x89, 0x85, 0xf7, 0x51, 0x32, 0x21, 0x5a, 0xc9 } } },
|
||||
/* 010 */ { "2008C\000", 5, 4, PWINGUID, { 0x68b6e220, 0xcf09, 0x466b, { 0x92, 0xd3, 0x45, 0xcd, 0x96, 0x4b, 0x95, 0x09, } }, { 0x8a21fdf3, 0xcbc5, 0x44eb, { 0x83, 0xf3, 0xfe, 0x28, 0x4e, 0x66, 0x80, 0xa7 } } },
|
||||
/* 011 */ { "2008R2" "\0" "2008R2A\000", 5, 4, PWINGUID, { 0xa78b8bd9, 0x8017, 0x4df5, { 0xb8, 0x6a, 0x09, 0xf7, 0x56, 0xaf, 0xfa, 0x7c, } }, { 0x0fc6ccaf, 0xff0e, 0x4fae, { 0x9d, 0x08, 0x43, 0x70, 0x78, 0x5b, 0xf7, 0xed } } },
|
||||
/* 012 */ { "2008R2B\000", 5, 4, PWINGUID, { 0x620e2b3d, 0x09e7, 0x42fd, { 0x80, 0x2a, 0x17, 0xa1, 0x36, 0x52, 0xfe, 0x7a, } }, { 0xca87f5b6, 0xcd46, 0x40c0, { 0xb0, 0x6d, 0x8e, 0xcd, 0x57, 0xa4, 0x37, 0x3f } } },
|
||||
/* 013 */ { "2008R2C\000", 5, 4, PWINGUID, { 0x7482e61b, 0xc589, 0x4b7f, { 0x8e, 0xcc, 0x46, 0xd4, 0x55, 0xac, 0x3b, 0x87, } }, { 0xb2ca2689, 0xa9a8, 0x42d7, { 0x93, 0x8d, 0xcf, 0x8e, 0x9f, 0x20, 0x19, 0x58 } } },
|
||||
/* 014 */ { "2012\000", 5, 5, PWINGUID, { 0xf0f5ec41, 0x0d55, 0x4732, { 0xaf, 0x02, 0x44, 0x0a, 0x44, 0xa3, 0xcf, 0x0f, } }, { 0x8665cb71, 0x468c, 0x4aa3, { 0xa3, 0x37, 0xcb, 0x9b, 0xc9, 0xd5, 0xea, 0xac } } },
|
||||
/* 015 */ { "2012R2\000" "12R2\000", 5, 6, PWINGUID, { 0x00091344, 0x1ea4, 0x4f37, { 0xb7, 0x89, 0x01, 0x75, 0x0b, 0xa6, 0x98, 0x8c, } }, { 0x8456EFD3, 0x0C04, 0x4089, { 0x87, 0x40, 0x5b, 0x72, 0x38, 0x53, 0x5a, 0x65 } } },
|
||||
/* 016 */ { "Office2010\000O14\000", 5, 4, POFFICE2010GUID, { 0x6f327760, 0x8c5c, 0x417c, { 0x9b, 0x61, 0x83, 0x6a, 0x98, 0x28, 0x7e, 0x0c, } }, { 0xe85af946, 0x2e25, 0x47b7, { 0x83, 0xe1, 0xbe, 0xbc, 0xeb, 0xea, 0xc6, 0x11 } } },
|
||||
/* 017 */ { "Office2013\000O15\000", 5, 6, POFFICE2013GUID, { 0xb322da9c, 0xa2e2, 0x4058, { 0x9e, 0x4e, 0xf5, 0x9a, 0x69, 0x70, 0xbd, 0x69, } }, { 0xe6a6f1bf, 0x9d40, 0x40c3, { 0xaa, 0x9f, 0xc7, 0x7b, 0xa2, 0x15, 0x78, 0xc0 } } },
|
||||
/* 018 */ { "Office2013V5\000", 5, 5, POFFICE2013GUID, { 0xb322da9c, 0xa2e2, 0x4058, { 0x9e, 0x4e, 0xf5, 0x9a, 0x69, 0x70, 0xbd, 0x69, } }, { 0xe6a6f1bf, 0x9d40, 0x40c3, { 0xaa, 0x9f, 0xc7, 0x7b, 0xa2, 0x15, 0x78, 0xc0 } } },
|
||||
/* 019 */ { "Office2016\000" "O16\000", 5, 6, POFFICE2013GUID, { 0xd450596f, 0x894d, 0x49e0, { 0x96, 0x6a, 0xfd, 0x39, 0xed, 0x4c, 0x4c, 0x64, } }, { 0x85b5f61b, 0x320b, 0x4be3, { 0x81, 0x4a, 0xb7, 0x6b, 0x2b, 0xfa, 0xfc, 0x82 } } },
|
||||
/* 020 */ { NULL, 0, 0, NULL, { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 } }, { 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 } } }
|
||||
};
|
||||
|
||||
|
||||
typedef struct
|
||||
{
|
||||
const char* first[16];
|
||||
@ -150,11 +118,6 @@ static DnsNames ClientDnsNames =
|
||||
{ ".com", ".net", ".org", ".cn", ".co.uk", ".de", ".com.tw", ".us", ".fr", ".it", ".me", ".info", ".biz", ".co.jp", ".ua", ".at", ".es", ".pro", ".by", ".ru", ".pl", ".kr" }
|
||||
};
|
||||
|
||||
|
||||
// This is the one, we are actually using. We use Vista, if user selects nothing
|
||||
LicensePack ActiveLicensePack;
|
||||
|
||||
|
||||
// Request Count Control Variables
|
||||
static int RequestsToGo = 1;
|
||||
static BOOL firstRequestSent = FALSE;
|
||||
@ -162,7 +125,7 @@ static BOOL firstRequestSent = FALSE;
|
||||
|
||||
static void string2UuidOrExit(const char *const restrict input, GUID *const restrict guid)
|
||||
{
|
||||
if (strlen(input) != GUID_STRING_LENGTH || !string2Uuid(input, guid))
|
||||
if (strlen(input) != GUID_STRING_LENGTH || !string2UuidLE(input, guid))
|
||||
{
|
||||
errorout("Fatal: Command line contains an invalid GUID.\n");
|
||||
exit(VLMCSD_EINVAL);
|
||||
@ -194,6 +157,9 @@ __noreturn static void clientUsage(const char* const programName)
|
||||
# ifndef USE_MSRPC
|
||||
" -i <IpVersion> Use IP protocol (4 or 6)\n"
|
||||
# endif // USE_MSRPC
|
||||
# ifndef NO_EXTERNAL_DATA
|
||||
" -j <file> Load external KMS data file <file>\n"
|
||||
# endif // NO_EXTERNAL_DATA
|
||||
" -e Show some valid examples\n"
|
||||
" -x Show valid Apps\n"
|
||||
" -d no DNS names, use Netbios names (no effect if -w is used)\n"
|
||||
@ -278,51 +244,18 @@ __noreturn static void showProducts(PRINTFUNC p)
|
||||
int cols = getLineWidth();
|
||||
int itemsPerLine;
|
||||
uint8_t i;
|
||||
int32_t index;
|
||||
|
||||
p(
|
||||
"The following "
|
||||
#if !defined(NO_EXTENDED_PRODUCT_LIST) && !defined(NO_BASIC_PRODUCT_LIST)
|
||||
"aliases "
|
||||
#else
|
||||
"names "
|
||||
#endif
|
||||
"can be used with -l:\n\n"
|
||||
);
|
||||
|
||||
const LicensePack* lp;
|
||||
|
||||
itemsPerLine = cols / 20;
|
||||
if (!itemsPerLine) itemsPerLine = 1;
|
||||
|
||||
for (i = 1, lp = LicensePackList; lp->names; lp++)
|
||||
{
|
||||
const char* name;
|
||||
|
||||
for (name = lp->names; *name; name += strlen(name) + 1, i++)
|
||||
{
|
||||
p("%-20s", name);
|
||||
|
||||
if (!(i % itemsPerLine)) p("\n");
|
||||
}
|
||||
}
|
||||
|
||||
p("\n\n");
|
||||
|
||||
#if !defined(NO_EXTENDED_PRODUCT_LIST) && !defined(NO_BASIC_PRODUCT_LIST)
|
||||
|
||||
const KmsIdList* currentProduct;
|
||||
uint_fast8_t longestString = 0;
|
||||
uint8_t k, items = getExtendedProductListSize();
|
||||
int32_t k, items = KmsData->SkuItemCount;
|
||||
|
||||
p("You may also use these product names or numbers:\n\n");
|
||||
p("You may use these product names or numbers:\n\n");
|
||||
|
||||
|
||||
for (currentProduct = ExtendedProductList; currentProduct - ExtendedProductList < getExtendedProductListSize() - 1; currentProduct++)
|
||||
for (index = 0; index < KmsData->SkuItemCount; index++)
|
||||
{
|
||||
uint_fast8_t len = (uint_fast8_t)strlen(currentProduct->name);
|
||||
|
||||
if (len > longestString)
|
||||
longestString = len;
|
||||
uint_fast8_t len = (uint_fast8_t)strlen(KmsData->SkuItemList[index].Name);
|
||||
if (len > longestString) longestString = len;
|
||||
}
|
||||
|
||||
itemsPerLine = cols / (longestString + 10);
|
||||
@ -335,13 +268,13 @@ __noreturn static void showProducts(PRINTFUNC p)
|
||||
for (k = 0; k < itemsPerLine; k++)
|
||||
{
|
||||
uint8_t j;
|
||||
uint8_t index = k * lines + i;
|
||||
index = k * lines + i;
|
||||
|
||||
if (index >= items) break;
|
||||
|
||||
p("%3u = %s", index + 1, ExtendedProductList[index].name);
|
||||
p("%3u = %s", index + 1, KmsData->SkuItemList[index].Name);
|
||||
|
||||
for (j = 0; j < longestString + 4 - strlen(ExtendedProductList[index].name); j++)
|
||||
for (j = 0; j < longestString + 4 - strlen(KmsData->SkuItemList[index].Name); j++)
|
||||
{
|
||||
p(" ");
|
||||
}
|
||||
@ -352,8 +285,6 @@ __noreturn static void showProducts(PRINTFUNC p)
|
||||
|
||||
p("\n");
|
||||
|
||||
#endif // !defined(NO_EXTENDED_PRODUCT_LIST) && !defined(NO_BASIC_PRODUCT_LIST)
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@ -361,26 +292,39 @@ __noreturn static void examples(const char* const programName)
|
||||
{
|
||||
printf(
|
||||
"\nRequest activation for Office 2013 using V4 protocol from 192.168.1.5:1688\n"
|
||||
"\t%s -l O15 -4 192.168.1.5\n"
|
||||
"\t%s -l O15 -4 192.168.1.5:1688\n\n"
|
||||
"\t%s -l \"Office 2013 Professional\" -4 192.168.1.5\n"
|
||||
"\t%s -l \"Office 2013 Professional\" -4 192.168.1.5:1688\n\n"
|
||||
|
||||
"Request activation for Windows Server 2012 using V4 protocol from localhost:1688\n"
|
||||
"\t%s -4 -l Windows -k 8665cb71-468c-4aa3-a337-cb9bc9d5eaac\n"
|
||||
"\t%s -4 -l 2012\n"
|
||||
"\t%s -4 -l 2012 [::1]:1688\n"
|
||||
"\t%s -4 -l 12 127.0.0.2:1688\n\n"
|
||||
"\t%s -4 -l \"Windows Server 2012\" -k 8665cb71-468c-4aa3-a337-cb9bc9d5eaac\n"
|
||||
"\t%s -4 -l \"Windows Server 2012\"\n"
|
||||
"\t%s -4 -l \"Windows Server 2012\" [::1]:1688\n"
|
||||
"\t%s -4 -l \"Windows Server 2012\" 127.0.0.2:1688\n\n"
|
||||
|
||||
"Send 100,000 requests to localhost:1688\n"
|
||||
"\t%s -n 100000 -l Office2010\n\n"
|
||||
"\t%s -n 100000\n\n"
|
||||
|
||||
"Request Activation for Windows 8 from 10.0.0.1:4711 and pretend to be Steve Ballmer\n"
|
||||
"\t%s -l Windows8 -w steveb1.redmond.microsoft.com 10.0.0.1:4711\n\n",
|
||||
"\t%s -l \"Windows 8 Professional\" -w steveb1.redmond.microsoft.com 10.0.0.1:4711\n\n",
|
||||
programName, programName, programName, programName, programName, programName, programName, programName
|
||||
);
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
#else // NO_HELP
|
||||
|
||||
|
||||
__noreturn static void clientUsage(const char* const programName)
|
||||
{
|
||||
errorout("Incorrect parameter specified.\n");
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
|
||||
|
||||
#endif // NO_HELP
|
||||
|
||||
|
||||
static void parseProtocolVersion(void)
|
||||
{
|
||||
char *endptr_major, *endptr_minor, *period = strchr(optarg, (int)'.');
|
||||
@ -406,80 +350,47 @@ static void parseProtocolVersion(void)
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
|
||||
ActiveLicensePack.kmsVersionMajor = (int)major;
|
||||
kmsVersionMinor = (int_fast16_t)minor;
|
||||
MajorVersion = (uint16_t)major;
|
||||
MinorVersion = (uint16_t)minor;
|
||||
}
|
||||
|
||||
|
||||
#else // NO_HELP
|
||||
|
||||
|
||||
__noreturn static void clientUsage(const char* const programName)
|
||||
static int32_t findLicensePackByName(const char* const name)
|
||||
{
|
||||
errorout("Incorrect parameter specified.\n");
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
int32_t i;
|
||||
|
||||
|
||||
#endif // NO_HELP
|
||||
|
||||
|
||||
static BOOL findLicensePackByName(const char* const name, LicensePack* const lp)
|
||||
for (i = KmsData->SkuItemCount - 1; i >= 0; i--)
|
||||
{
|
||||
// Try to find a package in the short list first
|
||||
if (!strcasecmp(name, KmsData->SkuItemList[i].Name)) return i;
|
||||
}
|
||||
|
||||
LicensePack *licensePack;
|
||||
for (licensePack = (LicensePack*)&LicensePackList; licensePack->names; licensePack++)
|
||||
return i;
|
||||
}
|
||||
|
||||
static const char* const client_optstring = "+N:B:i:j:l:a:s:k:c:w:r:n:t:g:G:o:K:pPTv456mexdV";
|
||||
|
||||
|
||||
//We handle only "-j". Many other options do not run without a loaded database
|
||||
static void parseCommandLinePass0(const int argc, CARGV argv)
|
||||
{
|
||||
const char *currentName;
|
||||
for (currentName = licensePack->names; *currentName; currentName += strlen(currentName) + 1)
|
||||
int o;
|
||||
optReset();
|
||||
|
||||
for (opterr = 0; (o = getopt(argc, (char* const*)argv, client_optstring)) > 0; ) switch (o)
|
||||
{
|
||||
if (!strcasecmp(name, currentName))
|
||||
{
|
||||
*lp = *licensePack;
|
||||
return TRUE;
|
||||
# ifndef NO_EXTERNAL_DATA
|
||||
case 'j': // Set "License Pack" and protocol version (e.g. Windows8, Office2013v5, ...)
|
||||
fn_data = optarg;
|
||||
# ifndef NO_INTERNAL_DATA
|
||||
ExplicitDataLoad = TRUE;
|
||||
# endif // NO_INTERNAL_DATA
|
||||
break;
|
||||
# endif // NO_EXTERNAL_DATA
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(NO_BASIC_PRODUCT_LIST) || defined(NO_EXTENDED_PRODUCT_LIST)
|
||||
|
||||
return FALSE;
|
||||
|
||||
#else // Both Lists are available
|
||||
|
||||
// search extended product list
|
||||
|
||||
uint8_t items = getExtendedProductListSize();
|
||||
unsigned int index;
|
||||
|
||||
if (stringToInt(name, 1, items, &index))
|
||||
{
|
||||
index--;
|
||||
}
|
||||
else
|
||||
{
|
||||
for (index = 0; index < items; index++)
|
||||
{
|
||||
if (!strcasecmp(ExtendedProductList[index].name, name)) break;
|
||||
}
|
||||
|
||||
if (index >= items) return FALSE;
|
||||
}
|
||||
|
||||
lp->AppID = &AppList[ExtendedProductList[index].AppIndex].guid;
|
||||
lp->KMSID = ProductList[ExtendedProductList[index].KmsIndex].guid;
|
||||
lp->ActID = ExtendedProductList[index].guid;
|
||||
lp->N_Policy = ProductList[ExtendedProductList[index].KmsIndex].KMS_PARAM_REQUIREDCOUNT;
|
||||
lp->kmsVersionMajor = ProductList[ExtendedProductList[index].KmsIndex].KMS_PARAM_MAJOR;
|
||||
|
||||
return TRUE;
|
||||
|
||||
#endif // Both Lists are available
|
||||
}
|
||||
|
||||
static const char* const client_optstring = "+N:B:i:l:a:s:k:c:w:r:n:t:g:G:o:K:pPTv456mexdV";
|
||||
|
||||
|
||||
//First pass. We handle only "-l". Since -a -k -s -4 -5 and -6 are exceptions to -l, we process -l first
|
||||
static void parseCommandLinePass1(const int argc, CARGV argv)
|
||||
@ -490,8 +401,14 @@ static void parseCommandLinePass1(const int argc, CARGV argv)
|
||||
for (opterr = 0; (o = getopt(argc, (char* const*)argv, client_optstring)) > 0; ) switch (o)
|
||||
{
|
||||
case 'l': // Set "License Pack" and protocol version (e.g. Windows8, Office2013v5, ...)
|
||||
if (stringToInt(optarg, 1, KmsData->SkuItemCount, (unsigned int*)&ActiveProductIndex))
|
||||
{
|
||||
ActiveProductIndex--;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!findLicensePackByName(optarg, &ActiveLicensePack))
|
||||
ActiveProductIndex = findLicensePackByName(optarg);
|
||||
if (ActiveProductIndex < 0)
|
||||
{
|
||||
errorout("Invalid client application. \"%s\" is not valid for -l.\n\n", optarg);
|
||||
#ifndef NO_HELP
|
||||
@ -504,6 +421,15 @@ static void parseCommandLinePass1(const int argc, CARGV argv)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
int32_t kmsIndex = KmsData->SkuItemList[ActiveProductIndex].KmsIndex;
|
||||
int32_t appIndex = KmsData->SkuItemList[ActiveProductIndex].AppIndex;
|
||||
|
||||
MajorVersion = (uint16_t)KmsData->SkuItemList[ActiveProductIndex].ProtocolVersion;
|
||||
NCountPolicy = (uint32_t)KmsData->SkuItemList[ActiveProductIndex].NCountPolicy;
|
||||
memcpy(&SkuGuid, &KmsData->SkuItemList[ActiveProductIndex].Guid, sizeof(GUID));
|
||||
memcpy(&KmsGuid, &KmsData->KmsItemList[kmsIndex].Guid, sizeof(GUID));
|
||||
memcpy(&AppGuid, &KmsData->AppItemList[appIndex].Guid, sizeof(GUID));
|
||||
}
|
||||
|
||||
|
||||
@ -517,15 +443,16 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
||||
{
|
||||
#ifndef NO_HELP
|
||||
|
||||
case 'j':
|
||||
break;
|
||||
|
||||
case 'e': // Show examples
|
||||
|
||||
examples(programName);
|
||||
break;
|
||||
|
||||
case 'x': // Show Apps
|
||||
|
||||
showProducts(&printf);
|
||||
break;
|
||||
|
||||
#endif // NO_HELP
|
||||
|
||||
@ -567,7 +494,6 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
||||
default:
|
||||
errorout("IPv5 does not exist.\n");
|
||||
exit(VLMCSD_EINVAL);
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
@ -588,7 +514,7 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
||||
case 'r': // Fake minimum required client count
|
||||
|
||||
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
||||
ActiveLicensePack.N_Policy = getOptionArgumentInt((char)o, 0, INT_MAX);
|
||||
NCountPolicy = getOptionArgumentInt((char)o, 0, INT_MAX);
|
||||
break;
|
||||
|
||||
case 'c': // use a specific client GUID
|
||||
@ -607,9 +533,7 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
||||
case 'a': // Set specific App Id
|
||||
|
||||
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
||||
ActiveLicensePack.AppID = (GUID*)vlmcsd_malloc(sizeof(GUID));
|
||||
|
||||
string2UuidOrExit(optarg, (GUID*)ActiveLicensePack.AppID);
|
||||
string2UuidOrExit(optarg, &AppGuid);
|
||||
break;
|
||||
|
||||
case 'g': // Set custom "grace" time in minutes (default 30 days)
|
||||
@ -620,13 +544,13 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
||||
case 's': // Set specfic SKU ID
|
||||
|
||||
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
||||
string2UuidOrExit(optarg, &ActiveLicensePack.ActID);
|
||||
string2UuidOrExit(optarg, &SkuGuid);
|
||||
break;
|
||||
|
||||
case 'k': // Set specific KMS ID
|
||||
|
||||
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
||||
string2UuidOrExit(optarg, &ActiveLicensePack.KMSID);
|
||||
string2UuidOrExit(optarg, &KmsGuid);
|
||||
break;
|
||||
|
||||
case '4': // Force V4 protocol
|
||||
@ -634,8 +558,8 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
||||
case '6': // Force V5 protocol
|
||||
|
||||
incompatibleOptions |= VLMCS_OPTION_NO_GRAB_INI;
|
||||
ActiveLicensePack.kmsVersionMajor = o - 0x30;
|
||||
kmsVersionMinor = 0;
|
||||
MajorVersion = o - 0x30;
|
||||
MinorVersion = 0;
|
||||
break;
|
||||
|
||||
case 'K': // Use specific protocol (may be invalid)
|
||||
@ -715,15 +639,15 @@ static void parseCommandLinePass2(const char *const programName, const int argc,
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Compares 2 GUIDs where one is host-endian and the other is little-endian (network byte order)
|
||||
*/
|
||||
int_fast8_t IsEqualGuidLEHE(const GUID* const guid1, const GUID* const guid2)
|
||||
{
|
||||
GUID tempGuid;
|
||||
LEGUID(&tempGuid, guid2);
|
||||
return IsEqualGUID(guid1, &tempGuid);
|
||||
}
|
||||
///*
|
||||
// * Compares 2 GUIDs where one is host-endian and the other is little-endian (network byte order)
|
||||
// */
|
||||
//int_fast8_t IsEqualGuidLEHE(const GUID* const guid1, const GUID* const guid2)
|
||||
//{
|
||||
// GUID tempGuid;
|
||||
// LEGUID(&tempGuid, guid2);
|
||||
// return IsEqualGUID(guid1, &tempGuid);
|
||||
//}
|
||||
|
||||
|
||||
#ifndef USE_MSRPC
|
||||
@ -735,10 +659,10 @@ static void checkRpcLevel(const REQUEST* request, RESPONSE* response)
|
||||
if (UseClientRpcBTFN && UseClientRpcNDR64 && RpcFlags.HasNDR64 && !RpcFlags.HasBTFN)
|
||||
errorout("\nWARNING: Server's RPC protocol has NDR64 but no BTFN.\n");
|
||||
|
||||
# ifndef NO_BASIC_PRODUCT_LIST
|
||||
if (!IsEqualGuidLEHE(&request->KMSID, &ProductList[15].guid) && UseClientRpcBTFN && !RpcFlags.HasBTFN)
|
||||
errorout("\nWARNING: A server with pre-Vista RPC activated a product other than Office 2010.\n");
|
||||
# endif // NO_BASIC_PRODUCT_LIST
|
||||
//# ifndef NO_BASIC_PRODUCT_LIST
|
||||
// if (!IsEqualGuidLEHE(&request->KMSID, &ProductList[15].guid) && UseClientRpcBTFN && !RpcFlags.HasBTFN)
|
||||
// errorout("\nWARNING: A server with pre-Vista RPC activated a product other than Office 2010.\n");
|
||||
//# endif // NO_BASIC_PRODUCT_LIST
|
||||
}
|
||||
#endif // USE_MSRPC
|
||||
|
||||
@ -930,7 +854,7 @@ int SendActivationRequest(const RpcCtx sock, RESPONSE *baseResponse, REQUEST *ba
|
||||
else
|
||||
request = CreateRequestV6(&requestSize, baseRequest);
|
||||
|
||||
if (!(status = rpcSendRequest(sock, request, requestSize, &response, &responseSize)))
|
||||
if (!((status = rpcSendRequest(sock, request, requestSize, &response, &responseSize))))
|
||||
{
|
||||
if (LE16(((RESPONSE*)(response))->MajorVer) == 4)
|
||||
{
|
||||
@ -976,7 +900,7 @@ static int sendRequest(RpcCtx *const s, REQUEST *const request, RESPONSE *const
|
||||
}
|
||||
}
|
||||
|
||||
printf("Sending activation request (KMS V%u) ", ActiveLicensePack.kmsVersionMajor);
|
||||
printf("Sending activation request (KMS V%u) ", MajorVersion);
|
||||
fflush(stdout);
|
||||
|
||||
return SendActivationRequest(*s, response, request, result, hwid);
|
||||
@ -990,11 +914,19 @@ static void displayRequestError(RpcCtx *const s, const int status, const int cur
|
||||
switch (status)
|
||||
{
|
||||
case 0xC004F042: // not licensed
|
||||
errorout("The server refused to activate the requested product\n");
|
||||
errorout("The KMS server has declined to activate the requested product\n");
|
||||
break;
|
||||
|
||||
case 0x8007000D: // e.g. v6 protocol on a v5 server
|
||||
errorout("The server didn't understand the request\n");
|
||||
errorout("The KMS host you are using is unable to handle your product. It only supports legacy versions\n");
|
||||
break;
|
||||
|
||||
case 0xC004F06C:
|
||||
errorout("The time stamp differs too much from the KMS server time\n");
|
||||
break;
|
||||
|
||||
case 0xC004D104:
|
||||
errorout("The security processor reported that invalid data was used\n");
|
||||
break;
|
||||
|
||||
case 1:
|
||||
@ -1004,6 +936,9 @@ static void displayRequestError(RpcCtx *const s, const int status, const int cur
|
||||
break;
|
||||
|
||||
default:
|
||||
# if _WIN32
|
||||
errorout("%s\n", win_strerror(status));
|
||||
# endif // _WIN32
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1032,7 +967,7 @@ static void newIniBackupFile(const char* const restrict fname)
|
||||
|
||||
static void updateIniFile(iniFileEpidLines* const restrict lines)
|
||||
{
|
||||
int_fast8_t lineWritten[_countof(*lines)];
|
||||
int_fast8_t lineWritten[vlmcsd_countof(*lines)];
|
||||
# if !_MSC_VER
|
||||
struct stat statbuf;
|
||||
# endif
|
||||
@ -1106,7 +1041,7 @@ static void updateIniFile(iniFileEpidLines* const restrict lines)
|
||||
|
||||
for (lineNumber = 1; fgets(sourceLine, sizeof(sourceLine), in); lineNumber++)
|
||||
{
|
||||
for (i = 0; i < _countof(*lines); i++)
|
||||
for (i = 0; i < vlmcsd_countof(*lines); i++)
|
||||
{
|
||||
if (*(*lines)[i] && !strncasecmp(sourceLine, (*lines)[i], strlen(ePidGroup[i])))
|
||||
{
|
||||
@ -1119,7 +1054,7 @@ static void updateIniFile(iniFileEpidLines* const restrict lines)
|
||||
}
|
||||
}
|
||||
|
||||
if (i >= _countof(*lines))
|
||||
if (i >= vlmcsd_countof(*lines))
|
||||
{
|
||||
fprintf(out, "%s", sourceLine);
|
||||
}
|
||||
@ -1134,7 +1069,7 @@ static void updateIniFile(iniFileEpidLines* const restrict lines)
|
||||
|
||||
fclose(in);
|
||||
|
||||
for (i = 0; i < _countof(*lines); i++)
|
||||
for (i = 0; i < vlmcsd_countof(*lines); i++)
|
||||
{
|
||||
if (!lineWritten[i] && *(*lines)[i])
|
||||
{
|
||||
@ -1161,8 +1096,17 @@ static void grabServerData()
|
||||
RpcCtx s = INVALID_RPCCTX;
|
||||
WORD MajorVer = 6;
|
||||
iniFileEpidLines lines;
|
||||
static int_fast8_t Licenses[_countof(lines)] = { 0, 16, 17, 19 };
|
||||
|
||||
static char* Licenses[vlmcsd_countof(lines)] =
|
||||
{
|
||||
(char*)"212a64dc-43b1-4d3d-a30c-2fc69d2095c6", // Vista
|
||||
(char*)"e85af946-2e25-47b7-83e1-bebcebeac611", // Office 2010
|
||||
(char*)"e6a6f1bf-9d40-40c3-aa9f-c77ba21578c0", // Office 2013
|
||||
(char*)"85b5f61b-320b-4be3-814a-b76b2bfafc82", // Office 2016
|
||||
};
|
||||
|
||||
uint_fast8_t i;
|
||||
int32_t j;
|
||||
RESPONSE response;
|
||||
RESPONSE_RESULT result;
|
||||
REQUEST request;
|
||||
@ -1170,14 +1114,47 @@ static void grabServerData()
|
||||
int status;
|
||||
size_t len;
|
||||
|
||||
for (i = 0; i < _countof(lines); i++) *lines[i] = 0;
|
||||
for (i = 0; i < vlmcsd_countof(lines); i++) *lines[i] = 0;
|
||||
|
||||
for (i = 0; i < _countof(Licenses) && MajorVer > 3; i++)
|
||||
for (i = 0; i < vlmcsd_countof(Licenses) && MajorVer > 3; i++)
|
||||
{
|
||||
ActiveLicensePack = LicensePackList[Licenses[i]];
|
||||
ActiveLicensePack.kmsVersionMajor = MajorVer;
|
||||
GUID guid;
|
||||
string2UuidLE(Licenses[i], &guid);
|
||||
int32_t kmsIndex = getProductIndex(&guid, KmsData->KmsItemList, KmsData->KmsItemCount, NULL, NULL);
|
||||
|
||||
if (kmsIndex < 0)
|
||||
{
|
||||
errorout("Warning: KMS GUID %s not in database.\n", Licenses[i]);
|
||||
continue;
|
||||
}
|
||||
|
||||
ActiveProductIndex = ~0;
|
||||
|
||||
for (j = KmsData->SkuItemCount; j >= 0; j--)
|
||||
{
|
||||
if (KmsData->SkuItemList[j].KmsIndex == kmsIndex)
|
||||
{
|
||||
ActiveProductIndex = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (ActiveProductIndex == ~0)
|
||||
{
|
||||
errorout("Warning: KMS GUID %s not in database.\n", Licenses[i]);
|
||||
continue;
|
||||
}
|
||||
|
||||
int32_t appIndex = KmsData->SkuItemList[ActiveProductIndex].AppIndex;
|
||||
|
||||
NCountPolicy = (uint32_t)KmsData->SkuItemList[ActiveProductIndex].NCountPolicy;
|
||||
memcpy(&SkuGuid, &KmsData->SkuItemList[ActiveProductIndex].Guid, sizeof(GUID));
|
||||
memcpy(&KmsGuid, &KmsData->KmsItemList[kmsIndex].Guid, sizeof(GUID));
|
||||
memcpy(&AppGuid, &KmsData->AppItemList[appIndex].Guid, sizeof(GUID));
|
||||
MajorVersion = (uint16_t)MajorVer;
|
||||
|
||||
status = sendRequest(&s, &request, &response, hwid, &result);
|
||||
printf("%-11s", ActiveLicensePack.names);
|
||||
printf("%-11s", ePidGroup[i]);
|
||||
|
||||
if (status)
|
||||
{
|
||||
@ -1224,7 +1201,7 @@ static void grabServerData()
|
||||
else
|
||||
{
|
||||
printf("\n");
|
||||
for (i = 0; i < _countof(lines); i++) printf("%s", lines[i]);
|
||||
for (i = 0; i < vlmcsd_countof(lines); i++) printf("%s", lines[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1240,7 +1217,7 @@ int client_main(int argc, CARGV argv)
|
||||
|
||||
if ((error = WSAStartup(0x0202, &wsadata)))
|
||||
{
|
||||
printerrorf("Fatal: Could not initialize Windows sockets (Error: %d).\n", error);
|
||||
errorout("Fatal: Could not initialize Windows sockets (Error: %d).\n", error);
|
||||
return error;
|
||||
}
|
||||
|
||||
@ -1251,15 +1228,15 @@ int client_main(int argc, CARGV argv)
|
||||
// We are not a service
|
||||
IsNTService = FALSE;
|
||||
|
||||
// Set console output page to UTF-8
|
||||
// SetConsoleOutputCP(65001);
|
||||
|
||||
#endif // _NTSERVICE
|
||||
|
||||
randomNumberInit();
|
||||
ActiveLicensePack = *LicensePackList; //first license is Windows Vista
|
||||
|
||||
parseCommandLinePass1(argc, argv);
|
||||
//# ifndef NO_EXTERNAL_DATA
|
||||
// ExplicitDataLoad = TRUE;
|
||||
//# endif // NO_EXTERNAL_DATA
|
||||
|
||||
parseCommandLinePass0(argc, argv);
|
||||
|
||||
int_fast8_t useDefaultHost = FALSE;
|
||||
|
||||
@ -1272,12 +1249,27 @@ int client_main(int argc, CARGV argv)
|
||||
|
||||
if (optind < argc - 1)
|
||||
{
|
||||
parseCommandLinePass1(argc - hostportarg, argv + hostportarg);
|
||||
parseCommandLinePass0(argc - hostportarg, argv + hostportarg);
|
||||
|
||||
if (optind < argc - hostportarg)
|
||||
clientUsage(argv[0]);
|
||||
}
|
||||
|
||||
loadKmsData();
|
||||
|
||||
if (!KmsData->AppItemCount || !KmsData->SkuItemCount || !KmsData->KmsItemCount)
|
||||
{
|
||||
errorout("Fatal: Incomplete KMS data file\n");
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
|
||||
parseCommandLinePass1(argc, argv);
|
||||
|
||||
if (optind < argc - 1)
|
||||
{
|
||||
parseCommandLinePass1(argc - hostportarg, argv + hostportarg);
|
||||
}
|
||||
|
||||
parseCommandLinePass2(argv[0], argc, argv);
|
||||
|
||||
if (optind < argc - 1)
|
||||
@ -1299,7 +1291,7 @@ int client_main(int argc, CARGV argv)
|
||||
int requests;
|
||||
RpcCtx s = INVALID_RPCCTX;
|
||||
|
||||
for (requests = 0, RequestsToGo = ActiveLicensePack.N_Policy == 1 ? 1 : ActiveLicensePack.N_Policy - 1; RequestsToGo; requests++)
|
||||
for (requests = 0, RequestsToGo = NCountPolicy == 1 ? 1 : NCountPolicy - 1; RequestsToGo; requests++)
|
||||
{
|
||||
RESPONSE response;
|
||||
REQUEST request;
|
||||
@ -1319,14 +1311,14 @@ int client_main(int argc, CARGV argv)
|
||||
{
|
||||
if (!FixedRequests)
|
||||
{
|
||||
if (firstRequestSent && ActiveLicensePack.N_Policy - (int)response.Count >= RequestsToGo)
|
||||
if (firstRequestSent && NCountPolicy - (int)response.Count >= RequestsToGo)
|
||||
{
|
||||
errorout("\nThe KMS server does not increment it's active clients. Aborting...\n");
|
||||
RequestsToGo = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
RequestsToGo = ActiveLicensePack.N_Policy - response.Count;
|
||||
RequestsToGo = NCountPolicy - response.Count;
|
||||
if (RequestsToGo < 0) RequestsToGo = 0;
|
||||
}
|
||||
}
|
||||
@ -1346,25 +1338,23 @@ int client_main(int argc, CARGV argv)
|
||||
// Create Base KMS Client Request
|
||||
static void CreateRequestBase(REQUEST *Request)
|
||||
{
|
||||
Request->MinorVer = LE16((WORD)kmsVersionMinor);
|
||||
Request->MajorVer = LE16((WORD)ActiveLicensePack.kmsVersionMajor);
|
||||
Request->MinorVer = LE16(MinorVersion);
|
||||
Request->MajorVer = LE16(MajorVersion);
|
||||
Request->VMInfo = LE32(VMInfo);
|
||||
Request->LicenseStatus = LE32(LicenseStatus);
|
||||
Request->BindingExpiration = LE32(BindingExpiration);
|
||||
LEGUID(&Request->AppID, ActiveLicensePack.AppID);
|
||||
LEGUID(&Request->ActID, &ActiveLicensePack.ActID);
|
||||
LEGUID(&Request->KMSID, &ActiveLicensePack.KMSID);
|
||||
Request->N_Policy = LE32(NCountPolicy);
|
||||
|
||||
memcpy(&Request->ActID, &SkuGuid, sizeof(GUID));
|
||||
memcpy(&Request->KMSID, &KmsGuid, sizeof(GUID));
|
||||
memcpy(&Request->AppID, &AppGuid, sizeof(GUID));
|
||||
|
||||
getUnixTimeAsFileTime(&Request->ClientTime);
|
||||
Request->N_Policy = LE32(ActiveLicensePack.N_Policy);
|
||||
|
||||
{
|
||||
GUID tempGUID;
|
||||
|
||||
if (CMID)
|
||||
{
|
||||
string2UuidOrExit(CMID, &tempGUID);
|
||||
LEGUID(&Request->CMID, &tempGUID);
|
||||
string2UuidOrExit(CMID, &Request->CMID);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1381,8 +1371,7 @@ static void CreateRequestBase(REQUEST *Request)
|
||||
|
||||
if (CMID_prev)
|
||||
{
|
||||
string2UuidOrExit(CMID_prev, &tempGUID);
|
||||
LEGUID(&Request->CMID_prev, &tempGUID);
|
||||
string2UuidOrExit(CMID_prev, &Request->CMID_prev);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1399,13 +1388,13 @@ static void CreateRequestBase(REQUEST *Request)
|
||||
else if (dnsnames)
|
||||
{
|
||||
int len, len2;
|
||||
unsigned int index = rand() % _countof(ClientDnsNames.first);
|
||||
unsigned int index = rand() % vlmcsd_countof(ClientDnsNames.first);
|
||||
len = (int)utf8_to_ucs2(Request->WorkstationName, ClientDnsNames.first[index], WORKSTATION_NAME_BUFFER, WORKSTATION_NAME_BUFFER * 3);
|
||||
|
||||
index = rand() % _countof(ClientDnsNames.second);
|
||||
index = rand() % vlmcsd_countof(ClientDnsNames.second);
|
||||
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() % vlmcsd_countof(ClientDnsNames.tld);
|
||||
utf8_to_ucs2(Request->WorkstationName + len + len2, ClientDnsNames.tld[index], WORKSTATION_NAME_BUFFER, WORKSTATION_NAME_BUFFER * 3);
|
||||
}
|
||||
else
|
||||
@ -1432,4 +1421,26 @@ static void CreateRequestBase(REQUEST *Request)
|
||||
# endif // NO_VERBOSE_LOG
|
||||
}
|
||||
|
||||
#if _MSC_VER && !defined(_DEBUG)&& !MULTI_CALL_BINARY
|
||||
int __stdcall WinStartUp(void)
|
||||
{
|
||||
WCHAR **szArgList;
|
||||
int argc;
|
||||
szArgList = CommandLineToArgvW(GetCommandLineW(), &argc);
|
||||
|
||||
int i;
|
||||
char **argv = (char**)vlmcsd_malloc(sizeof(char*)*argc);
|
||||
|
||||
for (i = 0; i < argc; i++)
|
||||
{
|
||||
int size = WideCharToMultiByte(CP_UTF8, 0, szArgList[i], -1, argv[i], 0, NULL, NULL);
|
||||
argv[i] = (char*)vlmcsd_malloc(size);
|
||||
WideCharToMultiByte(CP_UTF8, 0, szArgList[i], -1, argv[i], size, NULL, NULL);
|
||||
}
|
||||
|
||||
exit(client_main(argc, argv));
|
||||
}
|
||||
#endif // _MSC_VER && !defined(_DEBUG)&& !MULTI_CALL_BINARY
|
||||
|
||||
|
||||
#endif // IS_LIBRARY
|
||||
|
@ -35,6 +35,7 @@
|
||||
<ClCompile Include="endian.c" />
|
||||
<ClCompile Include="helpers.c" />
|
||||
<ClCompile Include="kms.c" />
|
||||
<ClCompile Include="kmsdata.c" />
|
||||
<ClCompile Include="network.c" />
|
||||
<ClCompile Include="output.c" />
|
||||
<ClCompile Include="rpc.c" />
|
||||
@ -50,6 +51,7 @@
|
||||
<ClInclude Include="endian.h" />
|
||||
<ClInclude Include="helpers.h" />
|
||||
<ClInclude Include="kms.h" />
|
||||
<ClInclude Include="kmsdata.h" />
|
||||
<ClInclude Include="network.h" />
|
||||
<ClInclude Include="ntservice.h" />
|
||||
<ClInclude Include="output.h" />
|
||||
@ -79,9 +81,15 @@
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
</PropertyGroup>
|
||||
@ -122,6 +130,15 @@
|
||||
<RemoteLdToolExe>gcc</RemoteLdToolExe>
|
||||
<IntDir>$(ProjectDir)vlmcsd\obj\$(Platform)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<IncludePath>$(IncludePath);$(SolutionDir)..\src\VisualStudio-Linux-Remote\toolchains\gcc5-x86_64-linux-gnu\usr\include</IncludePath>
|
||||
<TargetName>vlmcsd</TargetName>
|
||||
<TargetExt />
|
||||
<RemoteCCompileToolExe>gcc</RemoteCCompileToolExe>
|
||||
<SourcePath />
|
||||
<RemoteLdToolExe>gcc</RemoteLdToolExe>
|
||||
<IntDir>$(ProjectDir)vlmcsd\obj\$(Platform)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<TargetName>vlmcsd-x86-glibc</TargetName>
|
||||
<TargetExt />
|
||||
@ -131,9 +148,17 @@
|
||||
<RemoteLdToolExe>gcc</RemoteLdToolExe>
|
||||
<IntDir>$(ProjectDir)vlmcsd\obj\$(Platform)\$(Configuration)\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<RemoteLdToolExe>gcc</RemoteLdToolExe>
|
||||
<IntDir>$(ProjectDir)vlmcsd\obj\$(Platform)\$(Configuration)\</IntDir>
|
||||
<TargetName>vlmcsd-x86-glibc</TargetName>
|
||||
<TargetExt />
|
||||
<RemoteCCompileToolExe>gcc</RemoteCCompileToolExe>
|
||||
<IncludePath>$(IncludePath);$(SolutionDir)..\src\VisualStudio-Linux-Remote\toolchains\gcc5-x86_64-linux-gnu\usr\include</IncludePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>USE_THREADS;_PEDANTIC</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions>_PEDANTIC;USE_THREADS</PreprocessorDefinitions>
|
||||
<ThreadSafeStatics>
|
||||
</ThreadSafeStatics>
|
||||
<ExceptionHandling>Disabled</ExceptionHandling>
|
||||
@ -162,7 +187,7 @@
|
||||
<NoCommonBlocks>true</NoCommonBlocks>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions);USE_THREADS</PreprocessorDefinitions>
|
||||
<ThreadSafeStatics />
|
||||
<RelaxIEEE>true</RelaxIEEE>
|
||||
<RelaxIEEE>false</RelaxIEEE>
|
||||
<SymbolsHiddenByDefault>true</SymbolsHiddenByDefault>
|
||||
<ExceptionHandling>Disabled</ExceptionHandling>
|
||||
<RuntimeTypeInfo />
|
||||
@ -176,7 +201,7 @@
|
||||
<DebuggerSymbolInformation>OmitAllSymbolInformation</DebuggerSymbolInformation>
|
||||
<Relocation>false</Relocation>
|
||||
<FunctionBinding>false</FunctionBinding>
|
||||
<AdditionalOptions>-Wl,--gc-sections,-z,norelro -fwhole-program %(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalOptions>-Wl,--gc-sections,-z,norelro -fwhole-program -flto=16 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
|
||||
@ -195,22 +220,48 @@
|
||||
<LibraryDependencies>pthread;%(LibraryDependencies)</LibraryDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>USE_THREADS;_PEDANTIC</PreprocessorDefinitions>
|
||||
<ThreadSafeStatics>
|
||||
</ThreadSafeStatics>
|
||||
<ExceptionHandling>Disabled</ExceptionHandling>
|
||||
<RuntimeTypeInfo>
|
||||
</RuntimeTypeInfo>
|
||||
<AdditionalOptions>-Wno-sign-conversion -Wno-conversion -m32 -std=gnu89 %(AdditionalOptions)</AdditionalOptions>
|
||||
<CLanguageStandard>gnu99</CLanguageStandard>
|
||||
<CppLanguageStandard>c++98</CppLanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<LibraryDependencies>pthread;%(LibraryDependencies)</LibraryDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<ClCompile>
|
||||
<Optimization>MinSize</Optimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<ClCompile>
|
||||
<Optimization>MinSize</Optimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<ClCompile>
|
||||
<LinkTimeOptimization>true</LinkTimeOptimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<ClCompile>
|
||||
<LinkTimeOptimization>true</LinkTimeOptimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<ClCompile>
|
||||
<NoCommonBlocks>true</NoCommonBlocks>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions);USE_THREADS</PreprocessorDefinitions>
|
||||
<ThreadSafeStatics />
|
||||
<RelaxIEEE>true</RelaxIEEE>
|
||||
<RelaxIEEE>false</RelaxIEEE>
|
||||
<SymbolsHiddenByDefault>true</SymbolsHiddenByDefault>
|
||||
<ExceptionHandling>Disabled</ExceptionHandling>
|
||||
<RuntimeTypeInfo />
|
||||
@ -219,6 +270,30 @@
|
||||
<AdditionalOptions>-Wno-sign-conversion -Wno-conversion -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants -ffunction-sections -fdata-sections -pipe -std=gnu89 -m32 %(AdditionalOptions)</AdditionalOptions>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<LibraryDependencies>pthread;%(LibraryDependencies)</LibraryDependencies>
|
||||
<DebuggerSymbolInformation>OmitAllSymbolInformation</DebuggerSymbolInformation>
|
||||
<Relocation>false</Relocation>
|
||||
<FunctionBinding>false</FunctionBinding>
|
||||
<AdditionalOptions>-Wl,--gc-sections,-z,norelro -fwhole-program -flto=16 %(AdditionalOptions)</AdditionalOptions>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
|
||||
<ClCompile>
|
||||
<NoCommonBlocks>true</NoCommonBlocks>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions);USE_THREADS</PreprocessorDefinitions>
|
||||
<ThreadSafeStatics>
|
||||
</ThreadSafeStatics>
|
||||
<RelaxIEEE>true</RelaxIEEE>
|
||||
<SymbolsHiddenByDefault>true</SymbolsHiddenByDefault>
|
||||
<ExceptionHandling>Disabled</ExceptionHandling>
|
||||
<RuntimeTypeInfo>
|
||||
</RuntimeTypeInfo>
|
||||
<CLanguageStandard>c99</CLanguageStandard>
|
||||
<CppLanguageStandard>c++98</CppLanguageStandard>
|
||||
<AdditionalOptions>-Wno-sign-conversion -Wno-conversion -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants -ffunction-sections -fdata-sections -pipe -std=gnu89 -m32 %(AdditionalOptions)</AdditionalOptions>
|
||||
<DebugInformationFormat>None</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<LibraryDependencies>pthread;%(LibraryDependencies)</LibraryDependencies>
|
||||
<DebuggerSymbolInformation>OmitAllSymbolInformation</DebuggerSymbolInformation>
|
||||
|
@ -42,6 +42,9 @@
|
||||
<ClCompile Include="vlmcsd.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="kmsdata.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="config.h">
|
||||
@ -89,5 +92,8 @@
|
||||
<ClInclude Include="vlmcsd.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="kmsdata.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
775
src/vlmcsd.c
775
src/vlmcsd.c
File diff suppressed because it is too large
Load Diff
13
src/vlmcsd.h
13
src/vlmcsd.h
@ -48,17 +48,20 @@ int server_main(int argc, CARGV argv);
|
||||
#define INI_PARAM_FREEBIND 17
|
||||
#define INI_PARAM_PUBLIC_IP_PROTECTION_LEVEL 18
|
||||
#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_PARAM_HOST_BUILD 20
|
||||
#define INI_PARAM_WHITELISTING_LEVEL 24
|
||||
#define INI_PARAM_CHECK_CLIENT_TIME 25
|
||||
#define INI_PARAM_MAINTAIN_CLIENTS 26
|
||||
#define INI_PARAM_START_EMPTY 27
|
||||
#define INI_PARAM_DATA_FILE 28
|
||||
#define INI_PARAM_VPN 29
|
||||
#define INI_PARAM_EXIT_LEVEL 30
|
||||
|
||||
#define INI_FILE_PASS_1 1
|
||||
#define INI_FILE_PASS_2 2
|
||||
#define INI_FILE_PASS_3 3
|
||||
|
||||
typedef struct
|
||||
typedef struct IniFileParameter
|
||||
{
|
||||
const char* const Name;
|
||||
uint_fast8_t Id;
|
||||
|
@ -97,3 +97,25 @@ int main(int argc, CARGV argv)
|
||||
|
||||
return VLMCSD_EINVAL;
|
||||
}
|
||||
|
||||
|
||||
#if _MSC_VER && !defined(_DEBUG)
|
||||
int __stdcall WinStartUp(void)
|
||||
{
|
||||
WCHAR **szArgList;
|
||||
int argc;
|
||||
szArgList = CommandLineToArgvW(GetCommandLineW(), &argc);
|
||||
|
||||
int i;
|
||||
char **argv = (char**)vlmcsd_malloc(sizeof(char*)*argc);
|
||||
|
||||
for (i = 0; i < argc; i++)
|
||||
{
|
||||
int size = WideCharToMultiByte(CP_UTF8, 0, szArgList[i], -1, argv[i], 0, NULL, NULL);
|
||||
argv[i] = (char*)vlmcsd_malloc(size);
|
||||
WideCharToMultiByte(CP_UTF8, 0, szArgList[i], -1, argv[i], size, NULL, NULL);
|
||||
}
|
||||
|
||||
exit(main(argc, argv));
|
||||
}
|
||||
#endif // _MSC_VER && !defined(_DEBUG)&& !MULTI_CALL_BINARY
|
||||
|
@ -4,12 +4,13 @@ POSIX getopt for Windows
|
||||
AT&T Public License
|
||||
|
||||
Code given out at the 1985 UNIFORUM conference in Dallas.
|
||||
Modified for vlmcsd by Hotbird64
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#include "wingetopt.h"
|
||||
#include <stdio.h>
|
||||
//#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EOF (-1)
|
||||
@ -44,7 +45,7 @@ int getopt(int argc, char * const argv[], const char *opts)
|
||||
}
|
||||
optopt = c = argv[optind][sp];
|
||||
if (c == ':' || (cp = strchr(opts, c)) == NULL) {
|
||||
ERR(": illegal option -- ", (char)c);
|
||||
//ERR(": illegal option -- ", (char)c);
|
||||
if (argv[optind][++sp] == '\0') {
|
||||
optind++;
|
||||
sp = 1;
|
||||
@ -55,7 +56,7 @@ int getopt(int argc, char * const argv[], const char *opts)
|
||||
if (argv[optind][sp + 1] != '\0')
|
||||
optarg = (char*)&argv[optind++][sp + 1];
|
||||
else if (++optind >= argc) {
|
||||
ERR(": option requires an argument -- ", (char)c);
|
||||
//ERR(": option requires an argument -- ", (char)c);
|
||||
sp = 1;
|
||||
return('?');
|
||||
}
|
||||
@ -73,4 +74,5 @@ int getopt(int argc, char * const argv[], const char *opts)
|
||||
return(c);
|
||||
}
|
||||
|
||||
#endif /* __GNUC__ */
|
||||
#endif // _MSC_VER
|
||||
|
||||
|
@ -4,16 +4,15 @@ POSIX getopt for Windows
|
||||
AT&T Public License
|
||||
|
||||
Code given out at the 1985 UNIFORUM conference in Dallas.
|
||||
Modified for vlmcsd by Hotbird64
|
||||
*/
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#ifndef _WINGETOPT_H_
|
||||
#define _WINGETOPT_H_
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@ -28,5 +27,5 @@ extern "C" {
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _GETOPT_H_ */
|
||||
#endif /* __GNUC__ */
|
||||
#endif // _MSC_VER
|
||||
#endif // __wingetopt_h
|
||||
|
372
src/wintap.c
Normal file
372
src/wintap.c
Normal file
@ -0,0 +1,372 @@
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG
|
||||
#define CONFIG "config.h"
|
||||
#endif // CONFIG
|
||||
#include CONFIG
|
||||
#include "helpers.h"
|
||||
#include "wintap.h"
|
||||
|
||||
#ifndef NO_TAP
|
||||
|
||||
#include "types.h"
|
||||
#include "endian.h"
|
||||
#include "output.h"
|
||||
#include "tap-windows.h"
|
||||
#include <iphlpapi.h>
|
||||
|
||||
#if !_WIN32
|
||||
#include <arpa/inet.h>
|
||||
#endif // !_WIN32
|
||||
|
||||
static char* szIpAddress = "10.10.10.9";
|
||||
static char* szMask = "30";
|
||||
static char* szTapName;
|
||||
static char *ActiveTapName, *AdapterClass;
|
||||
static char* szLeaseDuration = "1d";
|
||||
static uint32_t IpAddress, Mask, Network, Broadcast, DhcpServer; // These are host-endian (=little-endian) for easier calculations
|
||||
static uint32_t Mtu;
|
||||
static uint_fast8_t Cidr;
|
||||
static HANDLE TapHandle;
|
||||
static TapDriverVersion_t DriverVersion;
|
||||
static IpPacket_t* IpPacket;
|
||||
static uint32_t DhcpLeaseDuration;
|
||||
|
||||
|
||||
static BOOL isAddressAssigned()
|
||||
{
|
||||
PMIB_IPADDRTABLE pIPAddrTable;
|
||||
DWORD dwSize = 0;
|
||||
BOOL result = FALSE;
|
||||
|
||||
pIPAddrTable = (PMIB_IPADDRTABLE)vlmcsd_malloc(sizeof(MIB_IPADDRTABLE));
|
||||
DWORD status = GetIpAddrTable(pIPAddrTable, &dwSize, 0);
|
||||
free(pIPAddrTable);
|
||||
|
||||
if (status != ERROR_INSUFFICIENT_BUFFER) return FALSE;
|
||||
pIPAddrTable = (MIB_IPADDRTABLE *)vlmcsd_malloc(dwSize);
|
||||
|
||||
if (GetIpAddrTable(pIPAddrTable, &dwSize, 0))
|
||||
{
|
||||
free(pIPAddrTable);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
PMIB_IPADDRROW row;
|
||||
for (row = pIPAddrTable->table; row < pIPAddrTable->table + pIPAddrTable->dwNumEntries; row++)
|
||||
{
|
||||
if (
|
||||
row->dwAddr == BE32(IpAddress) &&
|
||||
!(row->wType & (MIB_IPADDR_DELETED | MIB_IPADDR_DISCONNECTED | MIB_IPADDR_TRANSIENT))
|
||||
)
|
||||
{
|
||||
result = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
free(pIPAddrTable);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
static void parseTapArgument(char* argument)
|
||||
{
|
||||
char* equalsignPosition = strchr(argument, (int)'=');
|
||||
char* slashPosition = strchr(argument, (int)'/');
|
||||
char* colonPosition = strchr(argument, (int)':');
|
||||
|
||||
szTapName = argument;
|
||||
|
||||
if (equalsignPosition)
|
||||
{
|
||||
*equalsignPosition = 0;
|
||||
szIpAddress = equalsignPosition + 1;
|
||||
}
|
||||
|
||||
if (slashPosition)
|
||||
{
|
||||
*slashPosition = 0;
|
||||
szMask = slashPosition + 1;
|
||||
}
|
||||
|
||||
if (colonPosition)
|
||||
{
|
||||
*colonPosition = 0;
|
||||
szLeaseDuration = colonPosition + 1;
|
||||
}
|
||||
|
||||
IpAddress = BE32(inet_addr(szIpAddress));
|
||||
|
||||
if (IpAddress == BE32(INADDR_NONE))
|
||||
{
|
||||
printerrorf("Fatal: %s is not a valid IPv4 address\n", szIpAddress);
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
|
||||
char* next;
|
||||
Cidr = (uint8_t)strtol(szMask, &next, 10);
|
||||
|
||||
if (*next || Cidr < 8 || Cidr > 30)
|
||||
{
|
||||
printerrorf("Fatal: /%s is not a valid CIDR mask between /8 and /30\n", szMask);
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
|
||||
if (!((DhcpLeaseDuration = timeSpanString2Seconds(szLeaseDuration))))
|
||||
{
|
||||
printerrorf("Fatal: No valid time span specified in option -%c.\n", 'O');
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
|
||||
Mask = (uint32_t)~(0xffffffff >> Cidr);
|
||||
Network = IpAddress & Mask;
|
||||
Broadcast = IpAddress | ~Mask;
|
||||
DhcpServer = IpAddress + 1;
|
||||
|
||||
if (IpAddress <= Network || IpAddress + 1 >= Broadcast)
|
||||
{
|
||||
uint32_t lowerIpBE = BE32(Network + 1);
|
||||
uint32_t upperIpBE = BE32(Broadcast - 2);
|
||||
const char* szLower = vlmcsd_strdup(inet_ntoa(*(struct in_addr*)&lowerIpBE));
|
||||
const char* szUpper = vlmcsd_strdup(inet_ntoa(*(struct in_addr*)&upperIpBE));
|
||||
|
||||
printerrorf("Fatal: For this subnet the IPv4 address must be ");
|
||||
|
||||
if (lowerIpBE == upperIpBE)
|
||||
{
|
||||
printerrorf("%s\n", szLower);
|
||||
}
|
||||
else
|
||||
{
|
||||
printerrorf("between %s and %s\n", szLower, szUpper);
|
||||
}
|
||||
|
||||
exit(VLMCSD_EINVAL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
__noreturn static void WinErrorExit(DWORD error)
|
||||
{
|
||||
printerrorf("Registry read error: %s\n", win_strerror((int)error));
|
||||
exit(error);
|
||||
}
|
||||
|
||||
|
||||
static HANDLE OpenTapHandle()
|
||||
{
|
||||
HANDLE handle = INVALID_HANDLE_VALUE;
|
||||
HKEY regAdapterKey;
|
||||
DWORD regResult;
|
||||
if ((regResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, ADAPTER_KEY, 0, KEY_READ | KEY_WOW64_64KEY, ®AdapterKey)) != ERROR_SUCCESS)
|
||||
{
|
||||
WinErrorExit(regResult);
|
||||
}
|
||||
|
||||
char subkeyName[TAP_REGISTRY_DATA_SIZE];
|
||||
DWORD i, subKeySize = sizeof(subkeyName);
|
||||
|
||||
for (i = 0; (regResult = RegEnumKeyEx(regAdapterKey, i, subkeyName, &subKeySize, NULL, NULL, NULL, NULL)) != ERROR_NO_MORE_ITEMS; i++)
|
||||
{
|
||||
HKEY regSubKey;
|
||||
DWORD type, regDataSize;
|
||||
char regData[TAP_REGISTRY_DATA_SIZE];
|
||||
|
||||
if (regResult) WinErrorExit(regResult);
|
||||
|
||||
if ((regResult = RegOpenKeyEx(regAdapterKey, subkeyName, 0, KEY_READ | KEY_WOW64_64KEY, ®SubKey)) == ERROR_SUCCESS)
|
||||
{
|
||||
regDataSize = sizeof(regData);
|
||||
|
||||
if (RegQueryValueEx(regSubKey, "ComponentId", NULL, &type, (LPBYTE)regData, ®DataSize) == ERROR_SUCCESS)
|
||||
{
|
||||
if (
|
||||
type == REG_SZ &&
|
||||
(
|
||||
!strncmp(regData, "tap0801", sizeof(regData)) ||
|
||||
!strncmp(regData, "tap0901", sizeof(regData)) ||
|
||||
!strncmp(regData, "TEAMVIEWERVPN", sizeof(regData))
|
||||
)
|
||||
)
|
||||
{
|
||||
AdapterClass = vlmcsd_strdup(regData);
|
||||
regDataSize = sizeof(regData);
|
||||
|
||||
if (RegQueryValueEx(regSubKey, "NetCfgInstanceId", NULL, &type, (LPBYTE)regData, ®DataSize) == ERROR_SUCCESS && type == REG_SZ)
|
||||
{
|
||||
HKEY connectionKey;
|
||||
char connectionKeyName[TAP_REGISTRY_DATA_SIZE];
|
||||
|
||||
strncpy(connectionKeyName, NETWORK_CONNECTIONS_KEY "\\", sizeof(connectionKeyName));
|
||||
strncat(connectionKeyName, regData, sizeof(connectionKeyName));
|
||||
strncat(connectionKeyName, "\\Connection", sizeof(connectionKeyName));
|
||||
|
||||
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, connectionKeyName, 0, KEY_READ | KEY_WOW64_64KEY, &connectionKey) == ERROR_SUCCESS)
|
||||
{
|
||||
char deviceName[TAP_REGISTRY_DATA_SIZE];
|
||||
regDataSize = sizeof(deviceName);
|
||||
|
||||
if (RegQueryValueEx(connectionKey, "Name", NULL, &type, (LPBYTE)deviceName, ®DataSize) == ERROR_SUCCESS && type == REG_SZ)
|
||||
{
|
||||
if (!strcmp(szTapName, ".") || !strncasecmp(szTapName, deviceName, sizeof(deviceName)))
|
||||
{
|
||||
ActiveTapName = vlmcsd_strdup(deviceName);
|
||||
strncpy(deviceName, USERMODEDEVICEDIR, sizeof(deviceName));
|
||||
strncat(deviceName, regData, sizeof(deviceName));
|
||||
strncat(deviceName, strcmp(AdapterClass, "TEAMVIEWERVPN") ? TAP_WIN_SUFFIX : ".dgt", sizeof(deviceName));
|
||||
handle = CreateFile(deviceName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_SYSTEM, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RegCloseKey(connectionKey);
|
||||
}
|
||||
|
||||
if (handle == INVALID_HANDLE_VALUE) free(AdapterClass);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
RegCloseKey(regSubKey);
|
||||
subKeySize = sizeof(subkeyName);
|
||||
if (handle != INVALID_HANDLE_VALUE) break;
|
||||
}
|
||||
|
||||
RegCloseKey(regAdapterKey);
|
||||
|
||||
if (handle == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
printerrorf("Fatal: No compatible VPN adapter");
|
||||
|
||||
if (!strcmp(szTapName, "."))
|
||||
{
|
||||
printerrorf("s");
|
||||
}
|
||||
else
|
||||
{
|
||||
printerrorf(" with name \"%s\"", szTapName);
|
||||
}
|
||||
|
||||
printerrorf(" available for use\n");
|
||||
exit(ERROR_DEVICE_NOT_AVAILABLE);
|
||||
}
|
||||
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
||||
static int DevCtl(DWORD code, void* data, DWORD len)
|
||||
{
|
||||
if (!DeviceIoControl(TapHandle, code, data, len, data, len, &len, NULL))
|
||||
{
|
||||
const DWORD error = GetLastError();
|
||||
printerrorf("Fatal: VPN adapter error: %s\n", win_strerror(error));
|
||||
exit(error);
|
||||
}
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
static DWORD WINAPI TapMirror(LPVOID data_unused)
|
||||
{
|
||||
while (TRUE)
|
||||
{
|
||||
DWORD bytesRead, bytesWritten;
|
||||
if (!ReadFile(TapHandle, IpPacket, Mtu, &bytesRead, NULL)) break;
|
||||
|
||||
const uint32_t temp = IpPacket->ip_src;
|
||||
IpPacket->ip_src = IpPacket->ip_dst;
|
||||
IpPacket->ip_dst = temp;
|
||||
|
||||
if (!WriteFile(TapHandle, IpPacket, bytesRead, &bytesWritten, NULL)) break;
|
||||
|
||||
# if !defined(NO_LOG) && defined(_PEDANTIC)
|
||||
if (bytesRead != bytesWritten) logger("Warning: VPN device \"%s\": %u bytes could not be written\n", ActiveTapName, bytesRead - bytesWritten);
|
||||
# endif // !defined(NO_LOG) && defined(_PEDANTIC)
|
||||
}
|
||||
|
||||
const DWORD error = GetLastError();
|
||||
|
||||
# ifndef NO_LOG
|
||||
logger("Warning: VPN thread for device \"%s\" exiting: %s\n", ActiveTapName, win_strerror(error));
|
||||
# endif // NO_LOG
|
||||
|
||||
free(ActiveTapName);
|
||||
CloseHandle(TapHandle);
|
||||
exitOnWarningLevel(1);
|
||||
return error;
|
||||
}
|
||||
|
||||
|
||||
void startTap(char* const argument)
|
||||
{
|
||||
if (!strcmp(argument, "-")) return;
|
||||
parseTapArgument(argument);
|
||||
|
||||
TapHandle = OpenTapHandle();
|
||||
|
||||
// Get MTU and driver version
|
||||
DevCtl(TAP_WIN_IOCTL_GET_MTU, &Mtu, sizeof(Mtu));
|
||||
DevCtl(TAP_WIN_IOCTL_GET_VERSION, &DriverVersion, sizeof(DriverVersion));
|
||||
|
||||
// Configure TUN mode
|
||||
TapConfigTun_t tapTunCfg;
|
||||
tapTunCfg.Address.s_addr = BE32(IpAddress);
|
||||
tapTunCfg.Network.s_addr = BE32(Network);
|
||||
tapTunCfg.Mask.s_addr = BE32(Mask);
|
||||
DevCtl(TAP_WIN_IOCTL_CONFIG_TUN, &tapTunCfg, sizeof(tapTunCfg));
|
||||
|
||||
// Setup the drivers internal DHCP server
|
||||
TapConfigDhcp_t tapDhcpCfg;
|
||||
tapDhcpCfg.Address.s_addr = BE32(IpAddress);
|
||||
tapDhcpCfg.Mask.s_addr = BE32(Mask);
|
||||
tapDhcpCfg.DhcpServer.s_addr = BE32(IpAddress + 1);
|
||||
tapDhcpCfg.LeaseDuration = DhcpLeaseDuration;
|
||||
DevCtl(TAP_WIN_IOCTL_CONFIG_DHCP_MASQ, &tapDhcpCfg, sizeof(tapDhcpCfg));
|
||||
|
||||
// Connect the virtual network cable
|
||||
BOOL isCableConnected = TRUE;
|
||||
DevCtl(TAP_WIN_IOCTL_SET_MEDIA_STATUS, &isCableConnected, sizeof(isCableConnected));
|
||||
|
||||
// Allocate buffer and start mirror thread
|
||||
IpPacket = (IpPacket_t*)vlmcsd_malloc(Mtu);
|
||||
HANDLE threadHandle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)TapMirror, NULL, 0, NULL);
|
||||
|
||||
if (!threadHandle)
|
||||
{
|
||||
DWORD error = GetLastError();
|
||||
printerrorf("Fatal: Unable to start VPN thread: %s\n", win_strerror(error));
|
||||
exit(error);
|
||||
}
|
||||
|
||||
CloseHandle(threadHandle);
|
||||
|
||||
# ifndef NO_LOG
|
||||
logger("%s %u.%u.%u device \"%s\" started\n", AdapterClass, DriverVersion.Major, DriverVersion.Minor, DriverVersion.Build, ActiveTapName);
|
||||
# endif // NO_LOG
|
||||
|
||||
DWORD i;
|
||||
BOOL isAssigned;
|
||||
|
||||
// Wait up to 4 seconds until the IP address is up and running
|
||||
// so vlmcsd can actually bind to and listen on it
|
||||
for (i = 0; !((isAssigned = isAddressAssigned())) && i < 20; i++) Sleep(200);
|
||||
|
||||
if (!isAssigned)
|
||||
{
|
||||
printerrorf("Warning: IPv4 address %s not assigned\n", szIpAddress);
|
||||
}
|
||||
else
|
||||
{
|
||||
# ifndef NO_LOG
|
||||
logger("IPv4 address %s assigned\n", szIpAddress);
|
||||
# endif // NO_LOG
|
||||
}
|
||||
}
|
||||
|
||||
#endif // NO_TAP
|
||||
|
50
src/wintap.h
Normal file
50
src/wintap.h
Normal file
@ -0,0 +1,50 @@
|
||||
#ifndef __WINTAP_H
|
||||
#define __WINTAP_H
|
||||
|
||||
#define TAP_REGISTRY_DATA_SIZE 256
|
||||
|
||||
// Network-Endian (= Big-Endian)
|
||||
typedef struct TapConfigTun
|
||||
{
|
||||
struct in_addr Address;
|
||||
struct in_addr Network;
|
||||
struct in_addr Mask;
|
||||
} TapConfigTun_t, *PTapConfigTun_t;
|
||||
|
||||
// Network-Endian (= Big-Endian), except LeaseDuration
|
||||
typedef struct TapConfigDhcp
|
||||
{
|
||||
struct in_addr Address;
|
||||
struct in_addr Mask;
|
||||
struct in_addr DhcpServer;
|
||||
uint32_t LeaseDuration; // Host-Endian (=Little-Endian). Anything else is Big-Endian
|
||||
} TapConfigDhcp_t, *PTapConfigDhcp_t;
|
||||
|
||||
typedef struct TapDriverVersion
|
||||
{
|
||||
uint32_t Major;
|
||||
uint32_t Minor;
|
||||
uint32_t Build;
|
||||
uint32_t Revision;
|
||||
} TapDriverVersion_t, *PTapDriverVersion_t;
|
||||
|
||||
// Network-Endian (= Big-Endian)
|
||||
typedef struct IpPacket {
|
||||
uint8_t ip_hl : 4, /* header length */
|
||||
ip_v : 4; /* version */
|
||||
uint8_t ip_tos; /* type of service */
|
||||
int16_t ip_len; /* total length */
|
||||
uint16_t ip_id; /* identification */
|
||||
int16_t ip_off; /* fragment offset field */
|
||||
uint8_t ip_ttl; /* time to live */
|
||||
uint8_t ip_p; /* protocol */
|
||||
uint16_t ip_sum; /* checksum */
|
||||
uint32_t ip_src, ip_dst; /* source and dest address */
|
||||
uint8_t payload[0];
|
||||
} IpPacket_t, *PIpPacket_t;
|
||||
|
||||
void startTap(char* const argument);
|
||||
|
||||
#endif //__WINTAP_H
|
||||
|
||||
|
Reference in New Issue
Block a user