mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

* 'rdp_client_security' of https://github.com/neslog/zeek: Adding comments specific to client security data in record definition. Cleaning up indentations and return true. Adding record to init-bare Adding client_security_data to the analyzer. I added a unit test.
13 lines
534 B
Text
13 lines
534 B
Text
# @TEST-EXEC: zeek -r $TRACES/rdp/rdp-proprietary-encryption.pcap %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
@load base/protocols/rdp
|
|
|
|
event rdp_client_security_data(c: connection, data: RDP::ClientSecurityData)
|
|
{
|
|
print "rdp_client_security_data", data;
|
|
print " 40-bit flag", data$encryption_methods & 0x00000001 != 0;
|
|
print " 128-bit flag", data$encryption_methods & 0x00000002 != 0;
|
|
print " 56-bit flag", data$encryption_methods & 0x00000008 != 0;
|
|
print " fips flag", data$encryption_methods & 0x00000010 != 0;
|
|
}
|