This commit is contained in:
qtkite 2021-07-31 23:17:03 +10:00
parent 01e3e2d0f4
commit a4fe54a4f0
2 changed files with 5 additions and 4 deletions

View File

@ -32,5 +32,4 @@ I will release a version that enables it in the near future.
If you are interested in how I developed this program check out the writeup [here](https://github.com/qtkite/defender-control/blob/main/Writeup.md).
## TO-DO
- Build an interface
- Create native bindings for .NET
- Build an interface

View File

@ -312,7 +312,7 @@ namespace dcontrol
return false;
}
// string types
// BSTR types
//
helper->execute("EnableControlledFolderAccess", "Enabled");
helper->execute("PUAProtection", "enable");
@ -321,7 +321,7 @@ namespace dcontrol
h->execute<BOOL>(name, wmic::variant_type::t_bool, FALSE);
};
// bool types
// BOOL types
//
helper_disable(helper, "DisableRealtimeMonitoring");
helper_disable(helper, "DisableBehaviorMonitoring");
@ -335,6 +335,8 @@ namespace dcontrol
helper_disable(helper, "DisableAntiSpyware");
helper_disable(helper, "DisableAntiVirus");
// Cleanup
//
delete helper;
manage_windefend(true);