mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
add test for smb1_com_transaction_response event changes
This commit is contained in:
parent
4c0b6e0984
commit
015eec8c71
3 changed files with 13 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
smb1_transaction_response hdr: [command=37, status=0, flags=128, flags2=0, tid=41669, pid=1, uid=17768, mid=2], params: some_params, data: some_data
|
BIN
testing/btest/Traces/smb/smb1_transaction_response.pcap
Normal file
BIN
testing/btest/Traces/smb/smb1_transaction_response.pcap
Normal file
Binary file not shown.
|
@ -0,0 +1,12 @@
|
||||||
|
#@TEST-EXEC: bro -b -C -r $TRACES/smb/smb1_transaction_response.pcap %INPUT
|
||||||
|
#@TEST-EXEC: btest-diff .stdout
|
||||||
|
|
||||||
|
@load base/protocols/smb
|
||||||
|
@load policy/protocols/smb
|
||||||
|
|
||||||
|
# Check that smb1_transaction_response requests are parsed correctly
|
||||||
|
|
||||||
|
event smb1_transaction_response(c: connection, hdr: SMB1::Header, parameters: string, data: string)
|
||||||
|
{
|
||||||
|
print fmt("smb1_transaction_response hdr: %s, params: %s, data: %s", hdr, parameters, data);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue