Skip to content
Permalink
Browse files

Make compatible with 3.1

  • Loading branch information
0xxon committed Feb 12, 2020
1 parent dcf0b91 commit 5e19b2bbb341283ef79d670a3af4d4ac74251b68
@@ -23,7 +23,11 @@ export {
};
}

@if ( Version::at_least("3.0.0") )
event zeek_init()
@else
event bro_init()
@endif
{
Log::create_stream(CVE_2020_0601::LOG, [$columns=Info, $path="cve-2020-0601-certs"]);
}
@@ -7,6 +7,7 @@ IgnoreFiles = *.tmp *.swp #* *.trace .DS_Store

[environment]
BROBASE=`bro-config --bro_dist`
ZEEK=`%(testbase)s/zeek-name.sh`
BRO_SEED_FILE=%(testbase)s/random.seed
TZ=UTC
LC_ALL=C
@@ -1,4 +1,4 @@
# @TEST-EXEC: bro -C -r $TRACES/broken.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: $ZEEK -C -r $TRACES/broken.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: btest-diff notice.log


@@ -1,4 +1,4 @@
# @TEST-EXEC: bro -C -r $TRACES/explicit.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: $ZEEK -C -r $TRACES/explicit.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: btest-diff x509.log
# @TEST-EXEC: test ! -e notice.log

@@ -1,4 +1,4 @@
# @TEST-EXEC: bro -C -r $TRACES/exploit.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: $ZEEK -C -r $TRACES/exploit.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: btest-diff notice.log


@@ -1,4 +1,4 @@
# @TEST-EXEC: bro -C -r $TRACES/exploit.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: $ZEEK -C -r $TRACES/exploit.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: btest-diff notice.log
# @TEST-EXEC: btest-diff cve-2020-0601-certs.log

@@ -1,4 +1,4 @@
# @TEST-EXEC: bro -C -r $TRACES/ecdsa-cert.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: $ZEEK -C -r $TRACES/ecdsa-cert.pcap $SCRIPTS/cve-2020-0601.bro %INPUT
# @TEST-EXEC: test ! -e notice.log


@@ -0,0 +1,3 @@
#!/usr/bin/env bash

if hash zeek 2>/dev/null;then echo zeek;else echo bro;fi

0 comments on commit 5e19b2b

Please sign in to comment.
You can’t perform that action at this time.