Class NucleiOptions

Namespace
Kuestenlogik.Bowire.Security.Templates.Nuclei
Assembly
Kuestenlogik.Bowire.Security.Templates.Nuclei.dll

Limits applied while a Nuclei template is resolved against a target. Bound from the SectionName configuration section by bowire scan; an embedded host sets it on the scan options or passes it to FromTarget(string, int?, Func<string>?, NucleiOptions?).

public sealed class NucleiOptions
Inheritance
NucleiOptions
Inherited Members

Constructors

NucleiOptions()

public NucleiOptions()

Fields

DefaultMaxRandomLength

Default for MaxRandomLength: 1 MiB of random characters. Real templates use lengths in the tens; this leaves room for a deliberate large-payload probe while capping what one template can allocate at about 2 MB.

public const int DefaultMaxRandomLength = 1048576

Field Value

int

SectionName

Configuration section the options bind from.

public const string SectionName = "Bowire:Security:Nuclei"

Field Value

string

Properties

MaxRandomLength

The most random characters one template may generate through {{RandStr_N}} / {{RandInt_N}}, summed over its distinct placeholders (a memoised repeat costs nothing). A template is untrusted input and {{RandStr_2000000000}} is a valid int (#881); a placeholder that would exceed the budget is left unresolved and recorded in UnresolvedRandomPlaceholders.

public int MaxRandomLength { get; set; }

Property Value

int