Class NucleiTemplateReader

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

Reads a Nuclei YAML template off disk (or any text source) and fills a NucleiTemplate. Uses YamlDotNet's representation-model API directly rather than a typed deserialiser — Nuclei's schema is loose (fields polymorphic across templates, optional sections everywhere), so walking the node tree is more robust against the corpus's actual shape than declaring strict POCOs the deserialiser must hit exactly.

Read methods are static + side-effect-free. Errors from malformed YAML surface as YamlDotNet.Core.YamlException; callers usually catch and report-then-skip the file so a single broken template doesn't kill a 8000-file corpus walk.

public static class NucleiTemplateReader
Inheritance
NucleiTemplateReader
Inherited Members

Methods

ReadFile(string)

Read + parse a Nuclei template file.

public static NucleiTemplate ReadFile(string path)

Parameters

path string

Returns

NucleiTemplate

ReadText(string)

Parse a Nuclei template from a raw YAML string.

public static NucleiTemplate ReadText(string yaml)

Parameters

yaml string

Returns

NucleiTemplate