Skip to content

Commit d076838

Browse files
committed
Initial commit
0 parents  commit d076838

30 files changed

Lines changed: 32692 additions & 0 deletions

MAS_1.2/All-In-One-Version/MAS_1.2_AIO_CRC32_C16049E9.cmd

Lines changed: 24180 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
@setlocal DisableDelayedExpansion
2+
@echo off
3+
@cls
4+
color 07
5+
title Check Activation Status [wmic]
6+
set wspp=SoftwareLicensingProduct
7+
set wsps=SoftwareLicensingService
8+
set ospp=OfficeSoftwareProtectionProduct
9+
set osps=OfficeSoftwareProtectionService
10+
set winApp=55c92734-d682-4d71-983e-d6ec3f16059f
11+
set o14App=59a52881-a989-479d-af46-f275c6370663
12+
set o15App=0ff1ce15-a989-479d-af46-f275c6370663
13+
for %%# in (spp_get,ospp_get,cW1nd0ws,sppw,c0ff1ce15,sppo,osppsvc,ospp14,ospp15) do set "%%#="
14+
for /f "tokens=6 delims=[]. " %%# in ('ver') do set winbuild=%%#
15+
set "spp_get=Description, DiscoveredKeyManagementServiceMachineName, DiscoveredKeyManagementServiceMachinePort, EvaluationEndDate, GracePeriodRemaining, ID, KeyManagementServiceMachine, KeyManagementServicePort, KeyManagementServiceProductKeyID, LicenseStatus, LicenseStatusReason, Name, PartialProductKey, ProductKeyID, VLActivationInterval, VLRenewalInterval"
16+
set "ospp_get=%spp_get%"
17+
if %winbuild% geq 9200 set "spp_get=%spp_get%, DiscoveredKeyManagementServiceMachineIpAddress, KeyManagementServiceLookupDomain, ProductKeyChannel, VLActivationTypeEnabled"
18+
19+
set "SysPath=%Windir%\System32"
20+
if exist "%Windir%\Sysnative\reg.exe" (set "SysPath=%Windir%\Sysnative")
21+
set "Path=%SysPath%;%Windir%;%SysPath%\Wbem;%SysPath%\WindowsPowerShell\v1.0\"
22+
set "line2=************************************************************"
23+
set "line3=____________________________________________________________"
24+
25+
call :casWpkey %wspp% %winApp% cW1nd0ws sppw
26+
if %winbuild% geq 9200 call :casWpkey %wspp% %o15App% c0ff1ce15 sppo
27+
wmic path %osps% get Version 1>nul 2>nul && (
28+
call :casWpkey %ospp% %o14App% osppsvc ospp14
29+
if %winbuild% lss 9200 call :casWpkey %ospp% %o15App% osppsvc ospp15
30+
)
31+
32+
echo %line2%
33+
echo *** Windows Status ***
34+
echo %line2%
35+
if not defined cW1nd0ws (
36+
echo:
37+
echo Error: product key not found.
38+
goto :casWcon
39+
)
40+
set winID=1
41+
for /f "tokens=2 delims==" %%# in ('"wmic path %wspp% where (ApplicationID='%winApp%' and PartialProductKey is not null) get ID /value"') do (
42+
set "chkID=%%#"
43+
call :casWdet "%wspp%" "%wsps%" "%spp_get%"
44+
call :casWout
45+
echo %line3%
46+
echo:
47+
)
48+
49+
:casWcon
50+
set winID=0
51+
set verbose=1
52+
if not defined c0ff1ce15 (
53+
if defined osppsvc goto :casWospp
54+
goto :casWend
55+
)
56+
echo %line2%
57+
echo *** Office Status ***
58+
echo %line2%
59+
for /f "tokens=2 delims==" %%# in ('"wmic path %wspp% where (ApplicationID='%o15App%' and PartialProductKey is not null) get ID /value"') do (
60+
set "chkID=%%#"
61+
call :casWdet "%wspp%" "%wsps%" "%spp_get%"
62+
call :casWout
63+
echo %line3%
64+
echo:
65+
)
66+
set verbose=0
67+
if defined osppsvc goto :casWospp
68+
goto :casWend
69+
70+
:casWospp
71+
if %verbose%==1 (
72+
echo %line2%
73+
echo *** Office Status ***
74+
echo %line2%
75+
)
76+
if defined ospp15 for /f "tokens=2 delims==" %%# in ('"wmic path %ospp% where (ApplicationID='%o15App%' and PartialProductKey is not null) get ID /value"') do (
77+
set "chkID=%%#"
78+
call :casWdet "%ospp%" "%osps%" "%ospp_get%"
79+
call :casWout
80+
echo %line3%
81+
echo:
82+
)
83+
if defined ospp14 for /f "tokens=2 delims==" %%# in ('"wmic path %ospp% where (ApplicationID='%o14App%' and PartialProductKey is not null) get ID /value"') do (
84+
set "chkID=%%#"
85+
call :casWdet "%ospp%" "%osps%" "%ospp_get%"
86+
call :casWout
87+
echo %line3%
88+
echo:
89+
)
90+
goto :casWend
91+
92+
:casWpkey
93+
wmic path %1 where (ApplicationID='%2' and PartialProductKey is not null) get ID /value 2>nul | findstr /i ID 1>nul && (set %3=1&set %4=1)
94+
exit /b
95+
96+
:casWdet
97+
for %%# in (%~3) do set "%%#="
98+
if %~1 equ %ospp% for %%# in (DiscoveredKeyManagementServiceMachineIpAddress, KeyManagementServiceLookupDomain, ProductKeyChannel, VLActivationTypeEnabled) do set "%%#="
99+
set "cKmsClient="
100+
set "cTblClient="
101+
set "cAvmClient="
102+
set "ExpireMsg="
103+
set "_xpr="
104+
for /f "tokens=* delims=" %%# in ('"wmic path %~1 where ID='%chkID%' get %~3 /value" ^| findstr ^=') do set "%%#"
105+
106+
set /a _gpr=(GracePeriodRemaining+1440-1)/1440
107+
echo %Description%| findstr /i VOLUME_KMSCLIENT 1>nul && (set cKmsClient=1&set _mTag=Volume)
108+
echo %Description%| findstr /i TIMEBASED_ 1>nul && (set cTblClient=1&set _mTag=Timebased)
109+
echo %Description%| findstr /i VIRTUAL_MACHINE_ACTIVATION 1>nul && (set cAvmClient=1&set _mTag=Automatic VM)
110+
cmd /c exit /b %LicenseStatusReason%
111+
set "LicenseReason=%=ExitCode%"
112+
set "LicenseMsg=Time remaining: %GracePeriodRemaining% minute(s) (%_gpr% day(s))"
113+
if %_gpr% GEQ 1 for /f "tokens=* delims=" %%# in ('powershell -nop -ep bypass -c "$([DateTime]::Now.addMinutes(%GracePeriodRemaining%)).ToString('yyyy-MM-dd HH:mm:ss')" 2^>nul') do set "_xpr=%%#"
114+
115+
if %LicenseStatus% EQU 0 (
116+
set "License=Unlicensed"
117+
set "LicenseMsg="
118+
)
119+
if %LicenseStatus% EQU 1 (
120+
set "License=Licensed"
121+
set "LicenseMsg="
122+
if %GracePeriodRemaining% EQU 0 (
123+
if %winID% EQU 1 (set "ExpireMsg=The machine is permanently activated.") else (set "ExpireMsg=The product is permanently activated.")
124+
) else (
125+
set "LicenseMsg=%_mTag% activation expiration: %GracePeriodRemaining% minute(s) (%_gpr% day(s))"
126+
if defined _xpr set "ExpireMsg=%_mTag% activation will expire %_xpr%"
127+
)
128+
)
129+
if %LicenseStatus% EQU 2 (
130+
set "License=Initial grace period"
131+
if defined _xpr set "ExpireMsg=Initial grace period ends %_xpr%"
132+
)
133+
if %LicenseStatus% EQU 3 (
134+
set "License=Additional grace period (KMS license expired or hardware out of tolerance)"
135+
if defined _xpr set "ExpireMsg=Additional grace period ends %_xpr%"
136+
)
137+
if %LicenseStatus% EQU 4 (
138+
set "License=Non-genuine grace period."
139+
if defined _xpr set "ExpireMsg=Non-genuine grace period ends %_xpr%"
140+
)
141+
if %LicenseStatus% EQU 6 (
142+
set "License=Extended grace period"
143+
if defined _xpr set "ExpireMsg=Extended grace period ends %_xpr%"
144+
)
145+
if %LicenseStatus% EQU 5 (
146+
set "License=Notification"
147+
if "%LicenseReason%"=="C004F200" (set "LicenseMsg=Notification Reason: 0xC004F200 (non-genuine)."
148+
) else if "%LicenseReason%"=="C004F009" (set "LicenseMsg=Notification Reason: 0xC004F009 (grace time expired)."
149+
) else (set "LicenseMsg=Notification Reason: 0x%LicenseReason%"
150+
)
151+
)
152+
if %LicenseStatus% GTR 6 (
153+
set "License=Unknown"
154+
set "LicenseMsg="
155+
)
156+
if not defined cKmsClient exit /b
157+
158+
if %KeyManagementServicePort%==0 set KeyManagementServicePort=1688
159+
set "KmsReg=Registered KMS machine name: %KeyManagementServiceMachine%:%KeyManagementServicePort%"
160+
if "%KeyManagementServiceMachine%"=="" set "KmsReg=Registered KMS machine name: KMS name not available"
161+
162+
if %DiscoveredKeyManagementServiceMachinePort%==0 set DiscoveredKeyManagementServiceMachinePort=1688
163+
set "KmsDns=KMS machine name from DNS: %DiscoveredKeyManagementServiceMachineName%:%DiscoveredKeyManagementServiceMachinePort%"
164+
if "%DiscoveredKeyManagementServiceMachineName%"=="" set "KmsDns=DNS auto-discovery: KMS name not available"
165+
166+
for /f "tokens=* delims=" %%# in ('"wmic path %~2 get ClientMachineID, KeyManagementServiceHostCaching /value" ^| findstr ^=') do set "%%#"
167+
if /i %KeyManagementServiceHostCaching%==True (set KeyManagementServiceHostCaching=Enabled) else (set KeyManagementServiceHostCaching=Disabled)
168+
169+
if %winbuild% lss 9200 exit /b
170+
if %~1 equ %ospp% exit /b
171+
172+
if "%DiscoveredKeyManagementServiceMachineIpAddress%"=="" set "DiscoveredKeyManagementServiceMachineIpAddress=not available"
173+
174+
if "%KeyManagementServiceLookupDomain%"=="" set "KeyManagementServiceLookupDomain="
175+
176+
if %VLActivationTypeEnabled% EQU 3 (
177+
set VLActivationType=Token
178+
) else if %VLActivationTypeEnabled% EQU 2 (
179+
set VLActivationType=KMS
180+
) else if %VLActivationTypeEnabled% EQU 1 (
181+
set VLActivationType=AD
182+
) else (
183+
set VLActivationType=All
184+
)
185+
exit /b
186+
187+
:casWout
188+
echo:
189+
echo Name: %Name%
190+
echo Description: %Description%
191+
echo Activation ID: %ID%
192+
echo Extended PID: %ProductKeyID%
193+
if defined ProductKeyChannel echo Product Key Channel: %ProductKeyChannel%
194+
echo Partial Product Key: %PartialProductKey%
195+
echo License Status: %License%
196+
if defined LicenseMsg echo %LicenseMsg%
197+
if not %LicenseStatus%==0 if not %EvaluationEndDate:~0,8%==16010101 echo Evaluation End Date: %EvaluationEndDate:~0,4%-%EvaluationEndDate:~4,2%-%EvaluationEndDate:~6,2% %EvaluationEndDate:~8,2%:%EvaluationEndDate:~10,2% UTC
198+
if not defined cKmsClient (
199+
if defined ExpireMsg echo:&echo: %ExpireMsg%
200+
exit /b
201+
)
202+
if defined VLActivationTypeEnabled echo Configured Activation Type: %VLActivationType%
203+
echo:
204+
if not %LicenseStatus%==1 (
205+
echo Please activate the product in order to update KMS client information values.
206+
exit /b
207+
)
208+
echo Most recent activation information:
209+
echo Key Management Service client information
210+
echo: Client Machine ID (CMID): %ClientMachineID%
211+
echo: %KmsDns%
212+
echo: %KmsReg%
213+
if defined DiscoveredKeyManagementServiceMachineIpAddress echo: KMS machine IP address: %DiscoveredKeyManagementServiceMachineIpAddress%
214+
echo: KMS machine extended PID: %KeyManagementServiceProductKeyID%
215+
echo: Activation interval: %VLActivationInterval% minutes
216+
echo: Renewal interval: %VLRenewalInterval% minutes
217+
echo: KMS host caching: %KeyManagementServiceHostCaching%
218+
if defined KeyManagementServiceLookupDomain echo: KMS SRV record lookup domain: %KeyManagementServiceLookupDomain%
219+
if defined ExpireMsg echo:&echo: %ExpireMsg%
220+
exit /b
221+
222+
:casWend
223+
echo:
224+
echo Press any key to exit.
225+
pause >nul
226+
exit /b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
====================================================================================================
2+
File Details:
3+
====================================================================================================
4+
5+
fabb5a0fc1e6a372219711152291339af36ed0b5 *gatherosstate.exe Virus Total = 0/68
6+
ca3a51fdfc8749b8be85f7904b1c238a6dfba135 *slc.dll Virus Total = 1/67
7+
578364cb2319da7999acd8c015b4ce8da8f1b282 *ARM64_gatherosstate.exe Virus Total = 0/70
8+
5dbea3a580cf60391453a04a5c910a3ceca2b810 *ARM64_slc.dll Virus Total = 0/69
9+
48d928b1bec25a56fe896c430c2c034b7866aa7a *ClipUp.exe Virus Total = 0/67
10+
11+
Virus Total Report Date: 08-12-2019
12+
13+
- File Sources:
14+
15+
- ClipUp.exe (Original):
16+
From Windows server 2016 x64 ISO
17+
18+
- gatherosstate.exe (Original):
19+
From Windows 10 x86 14393 ADK
20+
21+
- ARM64_gatherosstate.exe (Original):
22+
From Windows 10 ARM64 18362 ISO
23+
24+
- ARM64_slc.dll and slc.dll:
25+
26+
Original slshim
27+
https://github.com/vyvojar/slshim
28+
29+
Improved by @mspaintmsi
30+
https://www.nsaneforums.com/topic/316668--/?do=findComment&comment=1497887
31+
https://gitlab.com/massgrave/massgrave
32+
33+
Source code is included.
34+
slc.dll is based on Integrated_Patcher_2 method.
35+
It is currently in use in HWID/KMS38 Activation script.
36+
37+
____________________________________________________________________________________________________
38+
39+
You can safely delete the following files if it's not required for you.
40+
41+
ClipUp.exe - Required to KMS38 activate Server Cor and Acor editions.
42+
ARM64_gatherosstate.exe and ARM64_slc.dll - Required to activate ARM64 Arch Windows 10.
43+
44+
====================================================================================================
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)