Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Decoder = &decoder.StreamDecoder{ Type: types.Type_NC_SMTP, Name: serviceSMTP, Description: "The Simple Mail Transfer Protocol is a communication protocol for electronic mail transmission", PostInit: func(d *decoder.StreamDecoder) (err error) { smtpLog, _, err = logging.InitZapLogger( decoderconfig.Instance.Out, "mail", decoderconfig.Instance.Debug, ) if err != nil { return err } return nil }, Specificity: core.SpecificityStructural, CanDecode: func(client, server []byte) bool { s, c := bytes.ToUpper(server), bytes.ToUpper(client) if replyPrefix(s) && bytes.Contains(s, smtpName) { return true } for _, prefix := range [][]byte{[]byte("EHLO "), []byte("HELO "), []byte("MAIL FROM:")} { if bytes.HasPrefix(c, prefix) { return true } } return false }, DeInit: func(sd *decoder.StreamDecoder) error { return smtpLog.Sync() }, Factory: &smtpReader{}, Typ: core.TCP, }
Decoder for protocol analysis and writing audit records to disk.
Functions ¶
func PartialGreeting ¶
PartialGreeting is weak evidence and requires a known SMTP service port.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.