This tool generate for you a dissector plugin for Wireshark based on a JSON description of the packet you want to analyze. Once generated, you just have import the LUA plugin into Wireshark and let the magic begin !
This project is a C++ porting of my orignal JS Dissector Generator for Wireshark : WiresharkDissectorGenerator.
In order to compile :
- GCC 5 or later (Support for C++17)
- [Alternative] Clang 5 or later.
Following your compiler, you might need to modify the Makefile
(CXX variable). By default the project use g++
to compile.
This project depends on two "header-only" projects (included in external_include
folder) :
- nlohmann/json (v3.9.1) : JSON for modern C++
- tristanpenman/valijson (v0.3) : JSON schema validation
- Clone the repository
- Compile the library using the
Makefile
- Include
WiresharkDissectorGenerator.hpp
and link the library to your projet.
Refer to main.cpp
in example
directory on how to use it.
The generated LUA plugin can be found in data
folder.