|
本帖最后由 2010hook 于 2023-3-12 20:25 编辑
如果想实现离线激活,要咋整?
我提取出以下代码,不过还不成功,提示没有KMS服务器,不知还缺什么:
- :kmsd
- pushd "%~dp0x64"
- set "kmsip=127.0.0.2"
- sc query "sppsvc" | find /i "stopped" >nul 2>nul || sc stop "sppsvc" >nul
- sc query "osppsvc" | find /i "stopped" >nul 2>nul || sc stop "osppsvc" >nul
- mklink "%SystemRoot%\system32\SECOPatcher.dll" "%vlmpath%\SECOPatcher.dll" >nul
- icacls "%SystemRoot%\system32\SECOPatcher.dll" /grant *S-1-5-32-545:rx >nul
- reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /v "Debugger" /t REG_SZ /d "rundll32.exe SECOPatcher.dll,PatcherMain" /f >nul
- netsh advfirewall firewall add rule action=allow dir=in profile=any name="vlmcsd" program="%vlmpath%\vlmcsd.exe" >nul
- start /b "" "vlmcsd.exe" -L %kmsip% -j "vlmcsd.kmd" -R 43200
- call :slmk
- reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SppExtComObj.exe" /f >nul
- del /f /q "%SystemRoot%\system32\SECOPatcher.dll" >nul
- netsh advfirewall firewall delete rule name="vlmcsd" >nul
- sc start sppsvc trigger=timer;sessionid=0 >nul
- goto end
复制代码 |
|