zeek/testing/btest/scripts/base/files/pe/timestamp.test
Johanna Amann 03b358f6d1 Merge branch 'files_pe_timestamp_sync' of https://github.com/mvhensbergen/zeek
* 'files_pe_timestamp_sync' of https://github.com/mvhensbergen/zeek:
  Don't hardcode values
  Add btest for timestamp check
  Copy timestamp from file object
2024-05-29 14:16:31 +01:00

10 lines
408 B
Text

# This tests if a pe file's timestamp in pe.log matches the files timestamp in files.log
# We simply test if the timestamp and uid of the file is in both pe.log and files.log
# @TEST-EXEC: zcat <$TRACES/pe/pe_files_timestamp.pcap.gz | zeek -b -r - %INPUT
# @TEST-EXEC: zeek-cut ts id < pe.log > pevalues.txt
# @TEST-EXEC: fgrep "`cat pevalues.txt`" files.log
@load base/protocols/http
@load base/files/pe