A very early, API for creating Wireshark plugins in the ZIG language.
At the moment, only the ability to build for MacOS and Linux has been tested, but as soon as the main functionality is completed, support for Windows will be implemented.
To build the Wireshark libraries, you need to have nix
installed.
nix develop --command ./scripts/build-wireshark-libs.bash
If you don't have nix
, you can use the fallback script
which will try using the
nix
;docker
withnix
(This build will only be for Linux);- run script locally(You will need to install dependencies manually).
./nix-fallback.bash ./scripts/build-wireshark-libs.bash
To quickly test the plugin, use the command:
zig build && mkdir -p ~/.local/lib/wireshark/plugins/4-4/epan && cp zig-out/lib/libsharkuana.dylib ~/.local/lib/wireshark/plugins/4-4/epan/libsharkuana.so && /Applications/Wireshark.app/Contents/MacOS/Wireshark --log-domains sharkuana --log-level noisy
This project is licensed under the MIT License - see the LICENSE file for details.