zeek/testing/btest/scripts/base/protocols/http/multipart-extract.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

13 lines
368 B
Plaintext

# @TEST-EXEC: zeek -b -C -r $TRACES/http/multipart.trace %INPUT
# @TEST-EXEC: btest-diff http.log
# @TEST-EXEC: cat extract_files/http-item-* | sort > extractions
@load base/protocols/http
@load base/files/extract
event file_new(f: fa_file)
{
local fname = fmt("http-item-%s", f$id);
Files::add_analyzer(f, Files::ANALYZER_EXTRACT, [$extract_filename=fname]);
}