API Reference
Class
PortScanAnalysis
Scans TCP and UDP ports on a host.
Inheritance
- Object
- PortScanAnalysis
Remarks
This analysis attempts connections in parallel and records latency or failure reasons for each tested port.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property DomainHealthCheck.PortScanAnalysis
- Property PortScanInfo.Raw
Accepted by parameters
- Method PortScanNarrative.Build
- Method Converters.Convert
Constructors
public PortScanAnalysis() #Methods
public static async Task<Boolean> IsIPv6Reachable(String host, Int32 port = 80, CancellationToken cancellationToken = null) #Returns:
Task<Boolean>Determines whether the host has a reachable IPv6 address.
Parameters
- host System.String
- port System.Int32 = 80
- cancellationToken System.Threading.CancellationToken = null
Scan 2 overloads
public Task Scan(String host, PortScanProfile profile, InternalLogger logger = null, CancellationToken cancellationToken = null, Boolean showProgress = true) #Returns:
TaskPerforms a scan against the host.
Parameters
- host System.String
- ports System.Collections.Generic.IEnumerable{System.Int32}
- logger DomainDetective.InternalLogger = null
- cancellationToken System.Threading.CancellationToken = null
- showProgress System.Boolean = true
Scan(System.String host, DomainDetective.PortScanProfileDefinition.PortScanProfile profile, DomainDetective.InternalLogger logger, System.Threading.CancellationToken cancellationToken, System.Boolean showProgress) #Performs a scan using a predefined profile.
Parameters
- host System.String
- profile DomainDetective.PortScanProfileDefinition.PortScanProfile
- logger DomainDetective.InternalLogger
- cancellationToken System.Threading.CancellationToken
- showProgress System.Boolean
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Subject { get; set; } #Subject for this analysis (usually the host name).
public Dictionary<Int32, ScanResult> Results { get; } #Scan results keyed by port number.
public TimeSpan Timeout { get; set; } #Maximum wait time per connection.
public Int32 MaxConcurrency { get; set; } #Controls the number of concurrent connection attempts.
UdpClientFactory #Factory used to create UdpClient instances.
public virtual List<Assessment> Assessments { get; } #Structured assessments captured during port scans.
public static IReadOnlyList<Int32> DefaultPorts { get; } #List of default ports to scan.