/WiresharkDissectorGenerator_CPP

Application to generate Dissector plugin for Wireshark based on JSON description.

Primary LanguageC++MIT LicenseMIT

WiresharkDissectorGenerator (C++ version)

Introduction

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.

Dependencies

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) :

Installation && Usage

  • 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.