Skip to content

Converts a Kaitai Struct file description to a Wireshark LUA plugin

License

Notifications You must be signed in to change notification settings

lain3d/kaitai-to-wireshark

 
 

Repository files navigation

kaitai-to-wireshark

Converts a Kaitai Struct binary file description to a Wireshark LUA dissector.

Usage

./convert.py description.ksy > plugin.lua

Supported data types

Type Status Comment
u1
u2
u2be
u2le
u4
u4be
u4le
u8 Cannot be decoded in Wireshark (Lua uses 32 bit)
u8be Cannot be decoded in Wireshark (Lua uses 32 bit)
u8le Cannot be decoded in Wireshark (Lua uses 32 bit)
s1
s2
s2be
s2le
s4
s4be
s4le
s8 Cannot be decoded in Wireshark (Lua uses 32 bit)
s8be Cannot be decoded in Wireshark (Lua uses 32 bit)
s8le Cannot be decoded in Wireshark (Lua uses 32 bit)
fxxx
bx
str
strz

Supported features

Feature Status Comment
size Static values and simple references to "local" fields
types
contents No check if equal
instances
value
doc
endian
repeat
encoding
size-eos
terminator
enums
if
switch

About

Converts a Kaitai Struct file description to a Wireshark LUA plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 84.8%
  • Jinja 11.3%
  • Shell 3.9%