Readme.md

March 20, 2022 ยท View on GitHub

Disable Windows Defender via registry

An easy tool to disable and enable windows defender protections

Install & Compile

nimble install winregistry winim cligen
nim c -x -f Fdefender.nim

How to use

ProtectionCommand
Disable all protectionsFdefender.exe -D
Enable all protectionsFdefender.exe -E
Disable Automatic sample submissionFdefender.exe -S --Off
Enable Automatic sample submissionFdefender.exe -S --On
Disable Real-Time protectionFdefender.exe -R --Off
Enable Real-Time protectionFdefender.exe -R --On
Disable Cloud-Delivered protectionFdefender.exe -C --Off
Enable Cloud-Delivered protectionFdefender.exe -C --On
Disable Network ProtectionFdefender.exe -N --Off
Enable Network ProtectionFdefender.exe -N --On
Disable Controlled folder accessFdefender.exe -F --Off
Enable Controlled folder accessFdefender.exe -F --On

You can also combine flags in order to disable/enable many protections together.

Fdefender.exe -FRS --On | Fdefender.exe -FRS --Off

All Flags must start with Capital letters: Info, Off, On.


Good To Mention

I want to mention that the following technique to turn on and off "windows defender" came from the necessity to quickly turn off "windows defender" on a computer managed by an organization. The registry values under: "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Policy Manager" They appear only if the computer is under an organization.

BUT

It still works on a computer that is not managed. All you have to do is execute "Fdefender.exe -E" which will enable all defender protections in order to create the values we need under the key above. After that, you can manage your defender via this tool.

TODO

  • Auto Privilege escalation using exploit/Vul driver