Domain Detective

API Reference

Class

PortScanAnalysis

Namespace DomainDetective
Assembly DomainDetective
Implements

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

Accepted by parameters

Constructors

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 requiredposition: 0
port System.Int32 = 80 optionalposition: 1
cancellationToken System.Threading.CancellationToken = null optionalposition: 2
Scan 2 overloads
public Task Scan(String host, PortScanProfile profile, InternalLogger logger = null, CancellationToken cancellationToken = null, Boolean showProgress = true) #
Returns: Task

Performs a scan against the host.

Parameters

host System.String requiredposition: 0
ports System.Collections.Generic.IEnumerable{System.Int32} requiredposition: 1
logger DomainDetective.InternalLogger = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = null optionalposition: 3
showProgress System.Boolean = true optionalposition: 4
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 required
profile DomainDetective.PortScanProfileDefinition.PortScanProfile required
logger DomainDetective.InternalLogger required
cancellationToken System.Threading.CancellationToken required
showProgress System.Boolean required

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.

{{ include "footer" }}