Table of Contents

Class PcapngUtils

Namespace
Fluxzy.Core.Pcap.Pcapng
Assembly
Fluxzy.Core.Pcap.dll
public static class PcapngUtils
Inheritance
PcapngUtils
Inherited Members

Methods

CreateHttpHandler(string, SslProvider)

Create a HttpMessageHandler that will write the pcapng file to the specified location

public static Task<HttpMessageHandler> CreateHttpHandler(string outPcapFileName, SslProvider sslProvider = SslProvider.BouncyCastle)

Parameters

outPcapFileName string
sslProvider SslProvider

Returns

Task<HttpMessageHandler>

CreatePcapngFileWithKeysAsync(string, Stream, Stream)

Create a PCAPNG file from an existing file with included NSS key

public static Task CreatePcapngFileWithKeysAsync(string nssKey, Stream inRawCaptureStream, Stream outFileStream)

Parameters

nssKey string
inRawCaptureStream Stream
outFileStream Stream

Returns

Task

GetPcapngFileWithKeyStream(Stream, string)

Get the pcapng stream if the nsskey included. Stream must be seekable

public static Stream GetPcapngFileWithKeyStream(Stream originalStream, string nssKey)

Parameters

originalStream Stream
nssKey string

Returns

Stream

ReadWithKeysAsync(string)

Read the pcapng file with the included keys if available. SslKeyLogFile must be in the same directory as the pcapng file, with the same name but with the extension .nsskeylog

public static Stream ReadWithKeysAsync(string pcapngFile)

Parameters

pcapngFile string

Returns

Stream