Class OastServeOptions

Namespace
Kuestenlogik.Bowire.Oast.Server
Assembly
Kuestenlogik.Bowire.Oast.dll

Options for bowire oast serve.

public sealed record OastServeOptions : IEquatable<OastServeOptions>
Inheritance
OastServeOptions
Implements
Inherited Members

Constructors

OastServeOptions()

public OastServeOptions()

Properties

DnsPort

DNS catcher port. Default 53 — a real delegation cannot use another.

public int DnsPort { get; init; }

Property Value

int

Domain

The delegated zone this instance is authoritative for, e.g. oast.example.com. Callback hosts are handed out beneath it.

public required string Domain { get; init; }

Property Value

string

HttpPort

HTTP catcher + API port. Default 80.

public int HttpPort { get; init; }

Property Value

int

ListenIp

Address to bind. Default all interfaces.

public string ListenIp { get; init; }

Property Value

string

PublicIp

The instance's public address — answered for A queries, so a target that resolves a callback host then connects lands on the HTTP catcher.

public required string PublicIp { get; init; }

Property Value

string

SessionIdleMinutes

Idle sessions are evicted after this long. Default 1h.

public int SessionIdleMinutes { get; init; }

Property Value

int

Token

When set, register calls must present it as Authorization. Without it the instance is an open callback catcher for anyone who finds it.

public string? Token { get; init; }

Property Value

string

Methods

Equals(OastServeOptions?)

public bool Equals(OastServeOptions? other)

Parameters

other OastServeOptions

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OastServeOptions?, OastServeOptions?)

public static bool operator ==(OastServeOptions? left, OastServeOptions? right)

Parameters

left OastServeOptions
right OastServeOptions

Returns

bool

operator !=(OastServeOptions?, OastServeOptions?)

public static bool operator !=(OastServeOptions? left, OastServeOptions? right)

Parameters

left OastServeOptions
right OastServeOptions

Returns

bool