Class PortResolution
A value representing the result of a port scan.
Implements
Inherited Members
Namespace: SociallyDistant.Core.OS.Network
Assembly: SociallyDistant.Framework.dll
Syntax
public record PortResolution : IEquatable<PortResolution>
Constructors
PortResolution(ushort, IComputer, Vulnerability[])
A value representing the result of a port scan.
Declaration
public PortResolution(ushort Port, IComputer Computer, Vulnerability[] Vulnerabilities)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | Port | The port that was scanned. |
| IComputer | Computer | An implementation of IComputer representing the device reachable via the port. |
| Vulnerability[] | Vulnerabilities | A list of security vulnerabilities for the hackable listening on this port. |
Properties
Computer
An implementation of IComputer representing the device reachable via the port.
Declaration
public IComputer Computer { get; init; }
Property Value
| Type | Description |
|---|---|
| IComputer |
Port
The port that was scanned.
Declaration
public ushort Port { get; init; }
Property Value
| Type | Description |
|---|---|
| ushort |
Vulnerabilities
A list of security vulnerabilities for the hackable listening on this port.
Declaration
public Vulnerability[] Vulnerabilities { get; init; }
Property Value
| Type | Description |
|---|---|
| Vulnerability[] |