2022-04-07 11:40:12 +00:00
|
|
|
# Disable Tamper Protection
|
2022-06-10 18:16:02 +00:00
|
|
|
if opusnt.target["type"] != "online":
|
|
|
|
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender\\Features","/v","TamperProtection","/t","REG_DWORD","/d","0x00000004","/f"])
|
2022-04-07 11:40:12 +00:00
|
|
|
|
|
|
|
# Disable real time protection
|
|
|
|
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableRealtimeMonitoring","/t","REG_DWORD","/d","0x00000001","/f"])
|
|
|
|
|
|
|
|
# Disable sample submission
|
|
|
|
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender","/v","SubmitSamplesConsent","/t","REG_DWORD","/d","0x00000002","/f"])
|
|
|
|
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender","/v","SpynetReporting","/t","REG_DWORD","/d","0x00000000","/f"])
|
|
|
|
|
|
|
|
# I'm tired of this...
|
|
|
|
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableBehaviorMonitoring","/t","REG_DWORD","/d","0x00000001","/f"])
|
|
|
|
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableOnAccessProtection","/t","REG_DWORD","/d","0x00000001","/f"])
|
|
|
|
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableScanOnRealtimeEnable","/t","REG_DWORD","/d","0x00000001","/f"])
|