base/protocols/ftp/main.bro
-
FTP
The logging this script does is primarily focused on logging FTP commands
along with metadata. For example, if files are transferred, the argument
will take on the full path that the client is at along with the requested
file name.
Detailed Interface
Runtime Options
-
FTP::guest_ids
-
{
"anonymous",
"ftpuser",
"guest",
"ftp"
}
User IDs that can be considered “anonymous”.
-
FTP::logged_commands
-
{
"RETR",
"PORT",
"ACCT",
"DELE",
"STOR",
"EPRT",
"STOU",
"APPE",
"PASV",
"EPSV"
}
List of commands that should have their command/response pairs logged.
Types
-
FTP::ReplyCode
-
This record is to hold a parsed FTP reply code. For example, for the
201 status code, the digits would be parsed as: x->2, y->0, z->1.
Events
-
FTP::log_ftp
-
Event that can be handled to access the FTP::Info
record as it is sent on to the logging framework.
Functions
-
FTP::parse_ftp_reply_code
-
Parse FTP reply codes into the three constituent single digit values.