API Reference
Class
SMTPBannerAnalysis
Captures SMTP greeting banners and validates expected hostname and software strings.
Inheritance
- Object
- SMTPBannerAnalysis
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
- Method SmtpBannerNarrative.Build
- Method Converters.Convert
Constructors
public SMTPBannerAnalysis() #Methods
public async Task AnalyzeServer(String host, Int32 port, InternalLogger logger, CancellationToken cancellationToken = null) #Returns:
TaskChecks a single SMTP server banner.
Parameters
- host System.String
- port System.Int32
- logger DomainDetective.InternalLogger
- cancellationToken System.Threading.CancellationToken = null
public async Task AnalyzeServers(IEnumerable<String> hosts, Int32 port, InternalLogger logger, CancellationToken cancellationToken = null) #Returns:
TaskChecks multiple hosts on the same port.
Parameters
- hosts System.Collections.Generic.IEnumerable{System.String}
- port System.Int32
- logger DomainDetective.InternalLogger
- cancellationToken System.Threading.CancellationToken = null
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String Subject { get; set; } #Subject of the check (domain or host).
public Dictionary<String, BannerResult> ServerResults { get; } #Results for each host and port.
public TimeSpan Timeout { get; set; } #Connection timeout for banner retrieval.
public String ExpectedHostname { get; set; } #Expected hostname that should appear in the banner.
public String ExpectedSoftware { get; set; } #Expected software string that should appear in the banner.
public virtual List<Assessment> Assessments { get; } #Structured assessments captured during banner checks.
public IReadOnlyList<RecommendationAdvice> Recommendations { get; } #Represents the recommendations value.