mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
add test for smb1_com_transaction2_secondary_request event changes
This commit is contained in:
parent
4807b7d847
commit
4c0b6e0984
3 changed files with 13 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
smb1_transaction2_secondary_request hdr: [command=51, status=0, flags=0, flags2=0, tid=29550, pid=1, uid=25541, mid=2], args: [total_param_count=11, total_data_count=9, param_count=11, param_offset=54, param_displacement=9, data_count=9, data_offset=68, data_displacement=11, FID=65535], params: some_params, data: some_data
|
Binary file not shown.
|
@ -0,0 +1,12 @@
|
||||||
|
#@TEST-EXEC: bro -b -C -r $TRACES/smb/smb1_transaction2_secondary_request.pcap %INPUT
|
||||||
|
#@TEST-EXEC: btest-diff .stdout
|
||||||
|
|
||||||
|
@load base/protocols/smb
|
||||||
|
@load policy/protocols/smb
|
||||||
|
|
||||||
|
# Check that smb1_transaction2_secondary requests are parsed correctly
|
||||||
|
|
||||||
|
event smb1_transaction2_secondary_request(c: connection, hdr: SMB1::Header, args: SMB1::Trans2_Sec_Args, parameters: string, data: string)
|
||||||
|
{
|
||||||
|
print fmt("smb1_transaction2_secondary_request hdr: %s, args: %s, params: %s, data: %s", hdr, args, parameters, data);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue