zeek/testing/btest/plugins
Arne Welzel f0b9c59adb Add experimental JavaScript support when libnode is available
zeek.on('zeek_init', () => {
        console.log('Hello, Zeek!');
    });

For interaction with external systems and HTTP APIs, JavaScript and the
Node.js ecosystem beat Zeek script. Make it more easily accessible by
including ZeekJS with Zeek directly.

When a recent enough libnode version is found on the build system, ZeekJS is
added as a builtin plugin. This behavior can be disabled via
``--disable-javascript``. Linux distributions providing such a package are
Ubuntu (22.10) and Debian (testing/bookworm) as libnode-dev.
Fedora provides it as nodejs-devel.

This plugin takes over loading of .js or .cjs files. When no such files
are provided to Zeek, Node and the V8 engine are not initialized and
should not get into the way.

This should be considered experimental.
2023-04-14 11:26:41 +02:00
..
binpac-flowbuffer-frame-length-plugin Spelling testing 2022-11-16 20:05:03 -05:00
conflict-plugin plugins: Reject dynamic plugins matching names of built-in ones 2022-10-12 18:45:17 +02:00
doctest-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
file-plugin file_analysis/Analyzer: Limit maximum number of violations 2022-11-08 16:44:39 -07:00
func-hook-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
hooks-plugin Add experimental JavaScript support when libnode is available 2023-04-14 11:26:41 +02:00
iosource-plugin Add a new plugin test with verbose IO source output 2023-03-21 09:15:39 +01:00
logging-hooks-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
packet-protocol-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
pktdumper-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
pktsrc-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
plugin-load-dependency Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
plugin-load-file-extended Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
plugin-nopatchversion-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
plugin-withpatchversion-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
protocol-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
reader-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
reporter-hook-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
unprocessed-packet-hook-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
writer-plugin Use clang-format for all files in testing/btest/plugins. 2022-07-13 17:58:53 +02:00
bifs-and-scripts-install-delete-source.sh tests: Add regression tests for zeek/cmake#61 2023-02-24 19:37:52 +01:00
bifs-and-scripts-install.sh tests/bifs-and-scripts-install: Remove unused activate.zeek 2023-02-24 16:14:05 +01:00
bifs-and-scripts.sh Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
binpac-flowbuffer-frame-length.zeek Rename aux/ to auxil/ 2020-06-04 15:18:44 -07:00
conflict-plugin.zeek plugins: Reject dynamic plugins matching names of built-in ones 2022-10-12 18:45:17 +02:00
debug-streams.zeek Merge remote-tracking branch 'origin/topic/awelzel/913-plugin-debug-stream-validation' 2022-07-08 10:00:39 +02:00
doctest-supported.zeek Add testcases for plugin with doctest usage 2021-12-06 12:17:22 -08:00
doctest-unsupported.zeek Add testcases for plugin with doctest usage 2021-12-06 12:17:22 -08:00
file.zeek file_analysis/Analyzer: Limit maximum number of violations 2022-11-08 16:44:39 -07:00
func-hook.zeek updates to test suite tests for compatibility with upcoming ZAM functionality 2021-06-01 09:25:30 -07:00
hooks.zeek Include spicy in build. 2022-05-16 09:07:11 +02:00
init-plugin.zeek Rename aux/ to auxil/ 2020-06-04 15:18:44 -07:00
iosource-plugin.zeek Add a new plugin test with verbose IO source output 2023-03-21 09:15:39 +01:00
logging-hooks.zeek Rename aux/ to auxil/ 2020-06-04 15:18:44 -07:00
packet-protocol.zeek annotated scripts to skip when testing compilation-to-C++ 2022-09-16 16:47:43 -07:00
pktdumper.zeek Rename aux/ to auxil/ 2020-06-04 15:18:44 -07:00
pktsrc.zeek Rename aux/ to auxil/ 2020-06-04 15:18:44 -07:00
plugin-load-dependency.zeek Add test creating multiple plugins with load dependencies. 2020-11-24 16:59:11 +00:00
plugin-load-file-extended.zeek Re-instantiate providing location information to LoadFile hooks. 2022-04-14 10:43:21 +02:00
plugin-nopatchversion.zeek Rename aux/ to auxil/ 2020-06-04 15:18:44 -07:00
plugin-withpatchversion.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
protocol.zeek Fix registration of protocol analyzers from inside plugins. 2021-07-18 10:00:49 +02:00
reader.zeek Increase timeout of plugins.reader btest 2021-04-03 09:40:45 -07:00
reporter-hook.zeek Expand plugin.reporter-hook testcase to verify -NN output 2022-04-14 15:20:08 -07:00
unprocessed-packet-hook.zeek Introduce telemetry framework 2022-08-05 11:43:44 +02:00
writer.zeek Rename aux/ to auxil/ 2020-06-04 15:18:44 -07:00