Skip to content

winterthediplomat/lelei

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lelei: XML -> WireShark Generic Dissector

Disclaimer

Build Status

What is that?

Lelei is a cute sorceress... no, wait, nevermind. Lelei is a WireShark Generic Dissector generator: starting from an XML description of the structure you want to capture in Wireshark, it generates the .fdesc and .wsgd files you need to perform network analysis.

Please note that Lelei is not a validating generator: it means it may generate generic dissectors that violate the WSGD grammar or context (using basic types incorrectly, passing wrong values to transform specifications, ...). If you have a problem, please open an issue and we'll help you sorting it out.

How to use

  1. Define your packet structure in XML (see the test_data folder for some examples)
  2. Generate the generic dissectors: lelei <packet_structure.xml> <output>
  3. Copy the resulting output.fdesc and output.wsgd to your Wireshark folders
  4. Open Wireshark and analyze your net traffic!

Yet another generator, I see...

I don't know if Wireshark offers the same functionality, or other programs that do the same thing. If you're interested in alternatives, you may use Csjark, which translates C structures to Lua-based dissectors.

Important things: state of work

  • Basic Types

    • spare
    • char, schar, uchar
    • bool1, bool8, bool16, bool32
    • int2 -> int32, int40, int48, int64
    • uint1 -> uint32, uint40, uint48
    • float32, float64
    • string, string(size)
    • string_nl, string_nl(size)
    • raw(size)
    • padding_bits [type = padding]
  • Struct

  • Local byte order spec

  • Enum

  • Arrays

  • Multiple structures support

I don't need this project at my day job anymore, so the rest of the specification is probably not going to be implemented. If you need something that is not implemented yet, please feel free to contribute with a Pull Request via Github, or contact me.

About

A simple WireShark Generic Dissector generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages