Vixen
02b45cc4
csharp
public sealed class SnapshotInspectorTarget

The snapshot inspector, which walks a packet it cannot decode.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Deliberately a separate target from SnapshotTarget even though it reads the same bytes. It is the tool a developer points at traffic they are suspicious of — a recorded capture, a peer's stream, a snapshot the client refused — which is to say it is aimed at exactly the inputs most likely to be malformed, by somebody who is already having a bad day. An inspector that throws on the packet you are inspecting is worse than no inspector.

Fields and properties (2)

  • public string Name

    What to call it on a command line and in a report.

  • public string What

    Which receive path this is, in one line.

Methods (4)

  • public SnapshotInspectorTarget()

    Creates the target.

  • public long AllowanceFor(int inputLength)

    How many bytes an input may cause to be allocated.

  • public void Seed(ICollection<byte[]> corpus)

    Adds well-formed inputs for the mutator to start from.

  • public long Run(ReadOnlySpan<byte> input)

    Pushes one input through the decoder.

Used by (1)

  • FuzzTargetsVixen.Net.Fuzz