mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
19 lines
747 B
Text
19 lines
747 B
Text
# @TEST-DOC: Multipart message transferred via BDAT as a single chunk.
|
|
#
|
|
# @TEST-EXEC: zeek -b -r $TRACES/smtp/rfc3030-bdat-multipart.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
|
|
@load frameworks/files/hash-all-files
|
|
|
|
event smtp_request(c: connection, is_orig: bool, command: string, arg: string)
|
|
{
|
|
print c$uid, is_orig, command, arg;
|
|
}
|