opus-nt/mods/[hell]/disable windows defender/modscript.py

15 lines
1.3 KiB
Python
Raw Normal View History

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","4","/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","1","/f"])
2022-04-07 11:40:12 +00:00
# Disable sample submission
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender","/v","SubmitSamplesConsent","/t","REG_DWORD","/d","2","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender","/v","SpynetReporting","/t","REG_DWORD","/d","0","/f"])
2022-04-07 11:40:12 +00:00
# I'm tired of this...
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableBehaviorMonitoring","/t","REG_DWORD","/d","1","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableOnAccessProtection","/t","REG_DWORD","/d","1","/f"])
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection","/v","DisableScanOnRealtimeEnable","/t","REG_DWORD","/d","1","/f"])