base/protocols/ftp/utils.zeek

FTP

Utilities specific for FTP processing.

Namespace

FTP

Imports

base/protocols/ftp/info.zeek, base/utils/addrs.zeek, base/utils/paths.zeek

Summary

Functions

FTP::build_url: function

Creates a URL from an FTP::Info record.

FTP::build_url_ftp: function

Creates a URL from an FTP::Info record.

FTP::describe: function

Create an extremely shortened representation of a log line.

Detailed Interface

Functions

FTP::build_url
Type

function (rec: FTP::Info) : string

Creates a URL from an FTP::Info record.

Parameters

rec – An FTP::Info record.

Returns

A URL, not prefixed by "ftp://".

FTP::build_url_ftp
Type

function (rec: FTP::Info) : string

Creates a URL from an FTP::Info record.

Parameters

rec – An FTP::Info record.

Returns

A URL prefixed with "ftp://".

FTP::describe
Type

function (rec: FTP::Info) : string

Create an extremely shortened representation of a log line.