Show / Hide Table of Contents

Class OpenPortCollector

Collects data about the local ports open.

Inheritance
System.Object
BaseCollector
OpenPortCollector
Implements
IPlatformRunnable
Inherited Members
BaseCollector.Results
BaseCollector.TryExecute()
BaseCollector.RunStatus
BaseCollector.Start()
BaseCollector.Stop()
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 Source

OpenPortCollector(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 Source

CanRunOnPlatform()

Declaration
public override bool CanRunOnPlatform()
Returns
Type Description
System.Boolean
Overrides
BaseCollector.CanRunOnPlatform()
| Improve this Doc View Source

ExecuteInternal()

Declaration
public override void ExecuteInternal()
Overrides
BaseCollector.ExecuteInternal()
| Improve this Doc View Source

ExecuteWindows()

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()

Implements

IPlatformRunnable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX