MCPcopy Create free account
hub / github.com/T3nb3w/ComDotNetExploit / CleanupClsid

Method CleanupClsid

Bypass_COM_PPL/registry_utils.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59void RegistryUtils::CleanupClsid(const CLSID& clsid) {
60 WCHAR clsidStr[40];
61 StringFromGUID2(clsid, clsidStr, 40);
62
63 std::wstring keyPath = std::wstring(L"CLSID\\") + clsidStr + L"\\TreatAs";
64 RegDeleteTree(HKEY_CLASSES_ROOT, keyPath.c_str());
65}
66
67bool RegistryUtils::SetOnlyUseLatestCLR(bool enable) {
68 HKEY hKey;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected