Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: massgravel/Microsoft-Activation-Scripts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: LazyDevv/Hilao
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 20 commits
  • 17 files changed
  • 1 contributor

Commits on Feb 17, 2024

  1. Delete MAS directory

    LazyDevv authored Feb 17, 2024
    Copy the full SHA
    9d40e34 View commit details
  2. Add files via upload

    LazyDevv authored Feb 17, 2024
    Copy the full SHA
    954d22d View commit details
  3. Update KMS38_Activation.ps1

    LazyDevv authored Feb 17, 2024
    Copy the full SHA
    2f15e33 View commit details

Commits on Feb 18, 2024

  1. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    602fa78 View commit details
  2. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    47b4399 View commit details
  3. Add files via upload

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    5f4778a View commit details
  4. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    27d3f97 View commit details
  5. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    2df0439 View commit details
  6. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    045fedd View commit details
  7. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    cdb1741 View commit details
  8. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    7cf0ea0 View commit details
  9. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    ebe7e5c View commit details
  10. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    efd051d View commit details
  11. Delete ctrlcctrlv.jpg

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    247cca7 View commit details
  12. Add files via upload

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    3008853 View commit details
  13. Update README.md

    LazyDevv authored Feb 18, 2024
    Copy the full SHA
    7a1526f View commit details

Commits on Aug 2, 2024

  1. Update README.md

    LazyDevv authored Aug 2, 2024
    Copy the full SHA
    90473c7 View commit details

Commits on Sep 19, 2024

  1. Update KMS38_Activation.ps1

    LazyDevv authored Sep 19, 2024
    Copy the full SHA
    1468fba View commit details
  2. Update KMS38_Activation.ps1

    LazyDevv authored Sep 19, 2024
    Copy the full SHA
    d597a52 View commit details

Commits on Oct 15, 2024

  1. Add files via upload

    LazyDevv authored Oct 15, 2024
    Copy the full SHA
    83bdaa9 View commit details
Original file line number Diff line number Diff line change
@@ -101,7 +101,7 @@ popd

cls
color 07
title KMS38 Activation %masver%
title Loading...

set _args=
set _elev=
@@ -240,66 +240,8 @@ exit /b

::========================================================================================================================================

:: Check for updates

set -=
set old=

for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
if not [%%#]==[] (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
)

if defined old (
echo ________________________________________________
%eline%
echo You are running outdated version MAS %masver%
echo ________________________________________________
echo:
if not %_unattended%==1 (
echo [1] Get Latest MAS
echo [0] Continue Anyway
echo:
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
choice /C:10 /N
if !errorlevel!==2 rem
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
)
)
cls

::========================================================================================================================================

if %_rem%==1 goto :k_uninstall

:k_menu

if %_unattended%==0 (
cls
mode 76, 25
title KMS38 Activation %masver%

echo:
echo:
echo:
echo:
echo ____________________________________________________________
echo:
echo [1] KMS38 Activation
echo ____________________________________________
echo:
echo [2] Remove KM38 Protection
echo:
echo [0] %_exitmsg%
echo ____________________________________________________________
echo:
call :dk_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,0]"
choice /C:120 /N
set _el=!errorlevel!
if !_el!==3 exit /b
if !_el!==2 goto :k_uninstall
if !_el!==1 goto :k_menu2
goto :k_menu
)
goto :k_menu2

::========================================================================================================================================

@@ -308,10 +250,10 @@ goto :k_menu
cls
mode 110, 34
if exist "%Systemdrive%\Windows\System32\spp\store_test\" mode 134, 34
title KMS38 Activation %masver%
title Simplified Windows Activation By Tj Via KMS38

echo:
echo Initializing...
echo Please Wait...

:: Check PowerShell

@@ -618,7 +560,7 @@ if not exist "%tdir%\" md "%tdir%\" %nul%

if exist "%tdir%\Genuine*" del /f /q "%tdir%\Genuine*" %nul%
if exist "%tdir%\*.xml" del /f /q "%tdir%\*.xml" %nul%
if exist "%ProgramData%\Microsoft\Windows\ClipSVC\Install\Migration\*" del /f /q "%ProgramData%\Microsoft\Windows\ClipSVC\Install\Migration\*" %nul%
if exist "%ProgramData%\Microsoft\Windows\ClipSVC\Install\Migration\*" del /f /q "%ProgramData%\Microsoft\Windows\ClipSVC\Install\Migration\*" %nul%

:: Signature value is as it is, it's not encoded
:: Session ID is in Base64 encoded format. It's decoded value is "OSMajorVersion=5;OSMinorVersion=1;OSPlatformId=2;PP=0;GVLKExp=2038-01-19T03:14:07Z;DownlevelGenuineState=1;"
@@ -778,31 +720,6 @@ goto :dk_done

::========================================================================================================================================

:k_uninstall

cls
mode 99, 28
title Remove KMS38 Protection %masver%

%nul% reg delete "HKLM\%specific_kms%" /f
%nul% reg delete "HKU\S-1-5-20\%specific_kms%" /f

%nul% reg query "HKLM\%specific_kms%" && (
%psc% "$f=[io.file]::ReadAllText('!_batp!') -split ':regdel\:.*';iex ($f[1]);"
%nul% reg delete "HKLM\%specific_kms%" /f
)

echo:
%nul% reg query "HKLM\%specific_kms%" && (
call :dk_color %Red% "Removing Specific KMS Host [Failed]"
) || (
echo Removing Specific KMS Host [Successful]
)

goto :dk_done

::========================================================================================================================================

:: This code runs to protect/undo below registry key for KMS38 protection
:: HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\55c92734-d682-4d71-983e-d6ec3f16059f

@@ -1387,8 +1304,8 @@ exit /b

echo:
if %_unattended%==1 timeout /t 2 & exit /b
timeout /t 5
call :dk_color %_Yellow% "Press any key to %_exitmsg%..."
pause %nul1%
exit /b

::========================================================================================================================================
25 changes: 25 additions & 0 deletions KMS38_Activation.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Enable TLSv1.2 if it's not already enabled
if (-not ([System.Net.ServicePointManager]::SecurityProtocol.HasFlag([System.Net.SecurityProtocolType]::Tls12))) {
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12
}

$DownloadURL = 'https://raw.githubusercontent.com/LazyDevv/Hilao/master/KMS38_Activation.cmd'
$FilePath = "$env:TEMP\KMS38_Activation.cmd"

try {
Invoke-WebRequest -Uri $DownloadURL -UseBasicParsing -OutFile $FilePath
} catch {
Write-Error "Failed to download the file from $DownloadURL. Error: $_"
Return
}

if (Test-Path $FilePath) {
try {
Start-Process $FilePath -Wait
Remove-Item -LiteralPath $FilePath -Force
} catch {
Write-Error "An error occurred while executing or deleting the file. Error: $_"
}
} else {
Write-Error "The downloaded file does not exist at $FilePath."
}
Loading