FSecurity.Api by Stijn Moreels

<PackageReference Include="FSecurity.Api" Version="2.1.0-beta" />

 VulnerabilityExtensions

Extensions on the vulnerability type for a dev-friendly C#-context.

public static Vulnerability WithPayloads(Vulnerability vuln, IEnumerable<string> payloads)

Sets the payloads that triggered this vulnerability.

public static Vulnerability WithResponseContent(Vulnerability vuln, string txt)

Sets the response content of the vulnerability.

public static Vulnerability WithSeverity(Vulnerability vuln, Severity severity)

Sets the severity of this vulnerability.

public static Vulnerability WithSummary(Vulnerability vuln, string txt)

Sets the summary of the vulnerability.