base/utils/files.zeek

Imports

base/utils/addrs.zeek

Summary

Functions

extract_filename_from_content_disposition: function

For CONTENT-DISPOSITION headers, this function can be used to extract the filename.

generate_extraction_filename: function

This function can be used to generate a consistent filename for when contents of a file, stream, or connection are being extracted to disk.

Detailed Interface

Functions

extract_filename_from_content_disposition
Type

function (data: string) : string

For CONTENT-DISPOSITION headers, this function can be used to extract the filename.

generate_extraction_filename
Type

function (prefix: string, c: connection, suffix: string) : string

This function can be used to generate a consistent filename for when contents of a file, stream, or connection are being extracted to disk.