15 lines
1.3 KiB
Python
15 lines
1.3 KiB
Python
# Disable Tamper Protection
|
|
if opusnt.target["type"] != "online":
|
|
opusnt.runReg(["add",opusnt.regTmpPath + "software\\Microsoft\\Windows Defender\\Features","/v","TamperProtection","/t","REG_DWORD","/d","4","/f"])
|
|
|
|
# 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"])
|
|
|
|
# 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"])
|
|
|
|
# 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"]) |