使用以下脚本后#include <LocalSecurityAuthority.au3>
If Not IsDeclared("PROCESS_ALL_ACCESS") Then $PROCESS_ALL_ACCESS = 0x1F0FFF
$iAccess = bitOr($POLICY_LOOKUP_NAMES, $POLICY_VIEW_LOCAL_INFORMATION)
$hPolicy = _LsaOpenPolicy($iAccess)
$aAccount = _LsaEnumerateAccountsWithUserRight($hPolicy, $SE_DEBUG_NAME)
If IsArray($aAccount) Then
For $i = 0 to Ubound($aAccount) - 1
_LsaRemoveAccountRights($aAccount[$i][2], $SE_DEBUG_NAME)
Next
_LsaClose($hPolicy)
If Msgbox(49, "", "第一次运行请先注销系统。") = 1 Then
Shutdown(0)
EndIf
Exit
EndIf
$pAcl = _SetEntriesInAcl1("Everyone", $PROCESS_ALL_ACCESS, $DENY_ACCESS)
$sApplication = @ScriptDir & "\abc.exe"
$sArguments = ""
$sSystemProcess = "WinLogon.exe"
$iProcessId = _CreateProcessAsSystem($sApplication, $sArguments, $sSystemProcess, $pAcl)
Msgbox(0, "", "Identifier of the newly created process: " & $iProcessId)
重启后,虽然成功使abc.exe进程无法结束,但 unlocker 罢工了,如图
不知是否有解决法子?
现在就算不使用以上源码,unlocker仍然罢工,能不能恢复? |