Kaitai Struct - File formats and network protocols dissection language and web IDE, generating parsers in C++, C.

Overview

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

 

References:

 

-----

Next steps:

 

This article was contributed by Jason Jacobs from Guyana. Jason is a member of the Caribbean CSPA.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.