mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
parent
f0a28788ad
commit
6f891ca2ff
2 changed files with 35 additions and 0 deletions
BIN
testing/btest/Traces/smtp-multi-addr.pcap
Normal file
BIN
testing/btest/Traces/smtp-multi-addr.pcap
Normal file
Binary file not shown.
35
testing/btest/scripts/policy/frameworks/intel/seen/smtp.bro
Normal file
35
testing/btest/scripts/policy/frameworks/intel/seen/smtp.bro
Normal file
|
@ -0,0 +1,35 @@
|
|||
# @TEST-EXEC: bro -r $TRACES/smtp-multi-addr.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff intel.log
|
||||
|
||||
@TEST-START-FILE intel.dat
|
||||
#fields indicator indicator_type meta.source meta.desc meta.url
|
||||
jan.grashoefer@gmail.com Intel::EMAIL source1 test entry http://some-data-distributor.com/100000
|
||||
jan.grashoefer@cern.ch Intel::EMAIL source1 test entry http://some-data-distributor.com/100000
|
||||
jan.grashofer@cern.ch Intel::EMAIL source1 test entry http://some-data-distributor.com/100000
|
||||
addr-spec@example.com Intel::EMAIL source1 test entry http://some-data-distributor.com/100000
|
||||
angle-addr@example.com Intel::EMAIL source1 test entry http://some-data-distributor.com/100000
|
||||
name-addr@example.com Intel::EMAIL source1 test entry http://some-data-distributor.com/100000
|
||||
@TEST-END-FILE
|
||||
|
||||
@load base/frameworks/intel
|
||||
@load frameworks/intel/seen
|
||||
|
||||
redef Intel::read_files += { "intel.dat" };
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
suspend_processing();
|
||||
}
|
||||
|
||||
event Input::end_of_data(name: string, source: string)
|
||||
{
|
||||
continue_processing();
|
||||
}
|
||||
|
||||
event SMTP::log_smtp(rec: SMTP::Info)
|
||||
{
|
||||
for ( adr in rec$to )
|
||||
{
|
||||
print fmt("Addr: '%s'", adr);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue