mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge branch 'smb3-negotiate-response' of https://github.com/mauropalumbo75/zeek
* 'smb3-negotiate-response' of https://github.com/mauropalumbo75/zeek: added test and pcap files for smb 3.1.1 negotiate-response smb3.1.1 additions to negotiate-response command I made several modifications: - Code format, style, naming changes - For completeness/correctness, I added parsing support for the remaining context type structures. - Moved the optional padding before the NegotiateContextList field to also require the 0x0311 dialect version (some failures in pre-existing unit tests pointed this out as an issue)
This commit is contained in:
commit
1b76d92e97
11 changed files with 264 additions and 26 deletions
12
testing/btest/scripts/base/protocols/smb/smb311.test
Normal file
12
testing/btest/scripts/base/protocols/smb/smb311.test
Normal file
|
@ -0,0 +1,12 @@
|
|||
# @TEST-EXEC: bro -b -C -r $TRACES/smb/smb311.pcap %INPUT
|
||||
# @TEST-EXEC: test ! -f dpd.log
|
||||
# @TEST-EXEC: test ! -f weird.log
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
@load base/protocols/smb
|
||||
|
||||
# Add some tests for SMB3
|
||||
event smb2_negotiate_response(c: connection, hdr: SMB2::Header, nr: SMB2::NegotiateResponse)
|
||||
{
|
||||
print fmt("smb2_negotiate_response %s -> %s:%d %s", c$id$orig_h, c$id$resp_h, c$id$resp_p, nr);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue