mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

Conflicts: scripts/base/frameworks/software/main.bro scripts/policy/protocols/ftp/software.bro
28 lines
621 B
Text
28 lines
621 B
Text
##! Software detection with the FTP protocol.
|
|
|
|
# TODO:
|
|
#
|
|
# * Detect server software with initial 220 message
|
|
# * Detect client software with password given for anonymous users
|
|
# (e.g. cyberduck@example.net)
|
|
|
|
@load base/frameworks/software
|
|
|
|
module FTP;
|
|
|
|
export {
|
|
redef enum Software::Type += {
|
|
## Identifier for FTP clients in the software framework.
|
|
CLIENT,
|
|
## Not currently implemented.
|
|
SERVER,
|
|
};
|
|
}
|
|
|
|
event ftp_request(c: connection, command: string, arg: string) &priority=4
|
|
{
|
|
if ( command == "CLNT" )
|
|
{
|
|
Software::found(c$id, [$unparsed_version=arg, $host=c$id$orig_h, $software_type=CLIENT]);
|
|
}
|
|
}
|