Add test for new handling of unknown RDP keyboards

This commit is contained in:
Tim Wojtulewicz 2023-01-23 12:58:00 -07:00
parent 6cfb45d24f
commit 89675fc7de
3 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,11 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path rdp
#open XXXX-XX-XX-XX-XX-XX
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p cookie result security_protocol client_channels keyboard_layout client_build client_name client_dig_product_id desktop_width desktop_height requested_color_depth cert_type cert_count cert_permanent encryption_level encryption_method
#types time string addr port addr port string string string vector[string] string string string string count count string string count bool string string
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 192.168.1.1 54990 192.168.1.2 3389 JOHN-PC - RDP rdpdr,rdpsnd,cliprdr,drdynvc Thai (Best Guess for 263198) RDP 8.1 JOHN-PC-LAPTOP 3c571ed0-3415-474b-ae94-74e151b 1920 1080 16bit - 0 - - -
#close XXXX-XX-XX-XX-XX-XX

Binary file not shown.

View file

@ -0,0 +1,8 @@
# Tests the keyboard_layout code in the RDP protocol for handling
# keyboards script-layer doesn't know about, and the fallback
# to looking for best guesses.
# @TEST-EXEC: zeek -C -b -r $TRACES/rdp/rdp-unknown-keyboard.pcap %INPUT
# @TEST-EXEC: btest-diff rdp.log
@load base/protocols/rdp