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

Fixed most @load dependency issues in the process. The test is still failing in a "known" way due to hot.conn.bro and scan.bro. Adressess #545
27 lines
553 B
Text
27 lines
553 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/main
|
|
|
|
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);
|
|
}
|
|
}
|