zeek/policy/protocols/ftp/software.bro
Seth Hall d3d9fedd2c Reshuffling notice declarations to make them exported.
- Notices were not available outside of their namespaces.
2011-06-09 11:59:06 -04:00

28 lines
547 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 ftp/base
@load software
module FTP;
export {
redef enum Software::Type += {
FTP_CLIENT,
FTP_SERVER,
};
}
event ftp_request(c: connection, command: string, arg: string) &priority=4
{
if ( command == "CLNT" )
{
local si = Software::parse(arg, c$id$orig_h, FTP_CLIENT);
Software::found(c$id, si);
}
}