Skip to content
Permalink
Browse files

Compatibility with Zeek 3.1

  • Loading branch information
0xxon committed Feb 12, 2020
1 parent ae2fea6 commit f6845d68acb85238b613c47c721462e530c94f04
@@ -0,0 +1 @@
build
@@ -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"]);
}
@@ -1 +0,0 @@
scripts.extract-exploit
@@ -11,6 +11,7 @@ ZEEK_PLUGIN_PATH=`%(testbase)s/get-zeek-env zeek_plugin_path`
PATH=`%(testbase)s/get-zeek-env path`
BROBASE=`bro-config --bro_dist`
BRO_SEED_FILE=%(testbase)s/random.seed
ZEEK_SEED_FILE=%(testbase)s/random.seed
TZ=UTC
LC_ALL=C
TRACES=%(testbase)s/Traces

This file was deleted.

@@ -0,0 +1,4 @@
# @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: test ! -e notice.log
# @TEST-EXEC: btest-diff .stdout

This file was deleted.

@@ -0,0 +1,4 @@
# @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
# @TEST-EXEC: btest-diff .stdout

0 comments on commit f6845d6

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