Class OpenPortCollector
Collects data about the local ports open.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AttackSurfaceAnalyzer.Collectors
Assembly: AsaLib.dll
Syntax
public class OpenPortCollector : BaseCollector, IPlatformRunnable
Constructors
| Improve this Doc View SourceOpenPortCollector(CollectCommandOptions, Action<CollectObject>)
Declaration
public OpenPortCollector(CollectCommandOptions opts = null, Action<CollectObject> changeHandler = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectCommandOptions | opts | |
| System.Action<CollectObject> | changeHandler |
Methods
| Improve this Doc View SourceCanRunOnPlatform()
Declaration
public override bool CanRunOnPlatform()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceExecuteInternal()
Declaration
public override void ExecuteInternal()
Overrides
| Improve this Doc View SourceExecuteWindows()
Executes the OpenPortCollector on Windows. Uses the .NET Core APIs to gather active TCP and UDP listeners and writes them to the database.
Declaration
public void ExecuteWindows()