Class ComObjectCollector
Collects Com Objects referenced by the registry
Implements
Inherited Members
Namespace: Microsoft.CST.AttackSurfaceAnalyzer.Collectors
Assembly: AsaLib.dll
Syntax
public class ComObjectCollector : BaseCollector, IPlatformRunnable
Constructors
| Improve this Doc View SourceComObjectCollector(CollectorOptions, Nullable<Action<CollectObject>>)
Declaration
public ComObjectCollector(CollectorOptions opts = null, Action<CollectObject>? changeHandler = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectorOptions | opts | |
| System.Nullable<Action<CollectObject>> | changeHandler |
Methods
| Improve this Doc View SourceCanRunOnPlatform()
Com Objects only exist on Windows.
Declaration
public override bool CanRunOnPlatform()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceParseComObjects(RegistryKey, RegistryView, Boolean)
Parse all the Subkeys of the given SearchKey into ComObjects and returns a list of them
Declaration
public static IEnumerable<CollectObject> ParseComObjects(RegistryKey SearchKey, RegistryView View, bool SingleThreaded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| RegistryKey | SearchKey | The Registry Key to search |
| RegistryView | View | The View of the registry to use |
| System.Boolean | SingleThreaded |
Returns
| Type | Description |
|---|---|
| IEnumerable<CollectObject> |