mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
btest: Update tests and baselines after adding ctx to conn_id
This commit is contained in:
parent
25fc4d5d98
commit
112e3c1c03
251 changed files with 96497 additions and 96497 deletions
|
@ -4,7 +4,7 @@
|
|||
@load base/utils/conn-ids
|
||||
|
||||
global c: conn_id = [ $orig_h = 10.0.0.100, $orig_p = 10000/tcp,
|
||||
$resp_h = 10.0.0.200, $resp_p = 20000/tcp, $proto=6 ];
|
||||
$resp_h = 10.0.0.200, $resp_p = 20000/tcp, $proto=6, $ctx=[] ];
|
||||
|
||||
print id_string(c);
|
||||
print reverse_id_string(c);
|
||||
|
|
|
@ -11,19 +11,19 @@ global remote_ip = 192.168.1.100;
|
|||
|
||||
global local2local: conn_id = [
|
||||
$orig_h = 10.0.0.100, $orig_p = 10000/tcp,
|
||||
$resp_h = 10.0.0.200, $resp_p = 20000/tcp, $proto=6 ];
|
||||
$resp_h = 10.0.0.200, $resp_p = 20000/tcp, $proto=6, $ctx=[] ];
|
||||
|
||||
global local2remote: conn_id = [
|
||||
$orig_h = 10.0.0.100, $orig_p = 10000/tcp,
|
||||
$resp_h = 192.168.1.100, $resp_p = 20000/tcp, $proto=6 ];
|
||||
$resp_h = 192.168.1.100, $resp_p = 20000/tcp, $proto=6, $ctx=[] ];
|
||||
|
||||
global remote2local: conn_id = [
|
||||
$orig_h = 192.168.1.100, $orig_p = 10000/tcp,
|
||||
$resp_h = 10.0.0.100, $resp_p = 20000/tcp, $proto=6 ];
|
||||
$resp_h = 10.0.0.100, $resp_p = 20000/tcp, $proto=6, $ctx=[] ];
|
||||
|
||||
global remote2remote: conn_id = [
|
||||
$orig_h = 192.168.1.100, $orig_p = 10000/tcp,
|
||||
$resp_h = 192.168.1.200, $resp_p = 20000/tcp, $proto=6 ];
|
||||
$resp_h = 192.168.1.200, $resp_p = 20000/tcp, $proto=6, $ctx=[] ];
|
||||
|
||||
function test_host(ip: addr, h: Host, expect: bool)
|
||||
{
|
||||
|
|
|
@ -13,11 +13,11 @@ redef Software::vulnerable_versions += {
|
|||
|
||||
event zeek_init()
|
||||
{
|
||||
Software::found([$orig_h=1.2.3.4, $orig_p=1234/tcp, $resp_h=4.3.2.1, $resp_p=80/tcp, $proto=6],
|
||||
Software::found([$orig_h=1.2.3.4, $orig_p=1234/tcp, $resp_h=4.3.2.1, $resp_p=80/tcp, $proto=6, $ctx=[]],
|
||||
[$name="Java", $host=1.2.3.4, $version=[$major=1, $minor=7, $minor2=0, $minor3=15]]);
|
||||
Software::found([$orig_h=1.2.3.5, $orig_p=1234/tcp, $resp_h=4.3.2.1, $resp_p=80/tcp, $proto=6],
|
||||
Software::found([$orig_h=1.2.3.5, $orig_p=1234/tcp, $resp_h=4.3.2.1, $resp_p=80/tcp, $proto=6, $ctx=[]],
|
||||
[$name="Java", $host=1.2.3.5, $version=[$major=1, $minor=6, $minor2=0, $minor3=43]]);
|
||||
Software::found([$orig_h=1.2.3.6, $orig_p=1234/tcp, $resp_h=4.3.2.1, $resp_p=80/tcp, $proto=6],
|
||||
Software::found([$orig_h=1.2.3.6, $orig_p=1234/tcp, $resp_h=4.3.2.1, $resp_p=80/tcp, $proto=6, $ctx=[]],
|
||||
[$name="Java", $host=1.2.3.6, $version=[$major=1, $minor=6, $minor2=0, $minor3=50]]);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue