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

Not sure about the origin of this pcap, so adding it in a separate commit, but it seems a nice real-world test case.
18 lines
704 B
Text
18 lines
704 B
Text
# @TEST-DOC: PCAP with kernel mailing list BDAT transfer.
|
|
#
|
|
# @TEST-EXEC: zeek -C -b -r $TRACES/smtp/smtp-bdat-pipeline-8bitmime.pcap %INPUT >out
|
|
# @TEST-EXEC: zeek-cut -m uid id.orig_h id.orig_p id.resp_h id.resp_p service duration < conn.log > conn.log.cut
|
|
# @TEST-EXEC: zeek-cut -m uid source depth mime_type filename sha1 < files.log > files.log.cut
|
|
# @TEST-EXEC: btest-diff out
|
|
# @TEST-EXEC: btest-diff conn.log.cut
|
|
# @TEST-EXEC: btest-diff smtp.log
|
|
# @TEST-EXEC: btest-diff files.log.cut
|
|
# @TEST-EXEC: test ! -f weird.log
|
|
|
|
@load base/protocols/conn
|
|
@load base/protocols/smtp
|
|
|
|
event smtp_request(c: connection, is_orig: bool, command: string, arg: string)
|
|
{
|
|
print c$uid, is_orig, command, arg;
|
|
}
|