test for new ssl/tls dpd signature

This commit is contained in:
Bernhard Amann 2014-04-10 14:33:14 -07:00
parent aa73d42120
commit 5d9fb1631c
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,8 @@
Start test run
Client hello, 192.168.4.149, 91.227.4.92, 2
Start test run
Client hello, 192.150.187.164, 194.127.84.106, 2
Client hello, 192.150.187.164, 194.127.84.106, 769
Client hello, 192.150.187.164, 194.127.84.106, 769
Start test run
Client hello, 10.0.0.80, 68.233.76.12, 771

Binary file not shown.

View file

@ -0,0 +1,19 @@
# @TEST-EXEC: bro -C -b -r $TRACES/tls/ssl-v2.trace %INPUT
# @TEST-EXEC: bro -b -r $TRACES/tls/ssl.v3.trace %INPUT
# @TEST-EXEC: bro -b -r $TRACES/tls/tls1.2.trace %INPUT
# @TEST-EXEC: btest-diff .stdout
@load base/frameworks/dpd
@load base/frameworks/signatures
@load-sigs base/protocols/ssl/dpd.sig
event bro_init()
{
print "Start test run";
}
event ssl_client_hello(c: connection, version: count, possible_ts: time, client_random: string, session_id: string, ciphers: index_vec) &priority=5
{
print "Client hello", c$id$orig_h, c$id$resp_h, version;
}