mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
Merge remote-tracking branch 'origin/master' into topic/seth/smb
This commit is contained in:
commit
7b3ec047d0
73 changed files with 1141 additions and 424 deletions
15
testing/btest/scripts/base/protocols/snmp/snmp-addr.bro
Normal file
15
testing/btest/scripts/base/protocols/snmp/snmp-addr.bro
Normal file
|
@ -0,0 +1,15 @@
|
|||
# @TEST-EXEC: bro -C -b -r $TRACES/snmp/snmpwalk-short.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
@load base/protocols/snmp
|
||||
|
||||
event snmp_response(c: connection, is_orig: bool, header: SNMP::Header, pdu: SNMP::PDU) {
|
||||
|
||||
for (i in pdu$bindings) {
|
||||
local binding = pdu$bindings[i];
|
||||
|
||||
if (binding$value?$address)
|
||||
print binding$value$address;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
# @TEST-EXEC: bro -C -r $TRACES/ssh/sshguess.pcap %INPUT | sort >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
event ssh_auth_failed(c: connection)
|
||||
{
|
||||
print c$uid;
|
||||
}
|
7
testing/btest/scripts/base/protocols/tcp/pending.bro
Normal file
7
testing/btest/scripts/base/protocols/tcp/pending.bro
Normal file
|
@ -0,0 +1,7 @@
|
|||
# @TEST-EXEC: bro -C -r $TRACES/tls/chrome-34-google.trace %INPUT
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
event connection_pending(c: connection)
|
||||
{
|
||||
print current_time(), "Connection pending", c$id, c$history;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue