mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge branch 'smb2_write_response' of https://github.com/mauropalumbo75/zeek
* 'smb2_write_response' of https://github.com/mauropalumbo75/zeek: smb2_write_response event added Fixed the unit test to ignore bad checksums in the pcap
This commit is contained in:
commit
8a2371c7ea
7 changed files with 45 additions and 2 deletions
|
@ -0,0 +1,13 @@
|
|||
# @TEST-EXEC: bro -C -r $TRACES/smb/smb2readwrite.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
@load base/protocols/smb
|
||||
|
||||
# A test for write response.
|
||||
event smb2_write_response(c: connection, hdr: SMB2::Header, length: count)
|
||||
{
|
||||
print fmt("smb2_write_response %s -> %s:%d, length: %d", c$id$orig_h, c$id$resp_h, c$id$resp_p, length);
|
||||
print (hdr);
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue