Kaitai Struct is a File formats and network protocols dissection language and web IDE, generating parsers in C++, C.
How to get this tool
To use this tool, please use a method listed below.
In a Linux (Debian OS), run the following command(s).
# Import GPG key, if you never used any BinTray repos before
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv 379CE192D401AB61
# Add stable repository
echo "deb https://dl.bintray.com/kaitai-io/debian jessie main" | sudo tee /etc/apt/sources.list.d/kaitai.list
# ... or unstable repository
echo "deb https://dl.bintray.com/kaitai-io/debian_unstable jessie main" | sudo tee /etc/apt/sources.list.d/kaitai.list sudo apt-get update sudo apt-get install kaitai-struct-compiler
Download directly from the following link:
How to execute
Python example of Kaitai extracting width and height of a GIF
>g = Gif.from_file("path/to/some.gif") print("width = %d" % (g.logical_screen.image_width)) print("height = %d" % (g.logical_screen.image_height))
- Apply for membership (free) at caribbeancspa.org > apply, if you have a photo ID from the Caribbean.
- View our list of Members at caribbeancspa.org > members.
This article was contributed by Jason Jacobs from Guyana. Jason is a member of the Caribbean CSPA.