ENNAENNA

Kaitai Struct

๐Ÿงฌ Reverse Engineering ยท Scala

Kaitai Struct is a declarative language and toolset for describing binary data structures. You define a format specification in YAML (.ksy file) describing fields, their types, conditions, and relationships, then compile it into parser source code for any of 12+ supported languages (C++, C#, Go, Java, JavaScript, Lua, Nim, Perl, PHP, Python, Ruby, Swift). The Web IDE provides interactive visualization of binary files with real-time parsing. The format gallery contains hundreds of pre-built specifications for common formats (ELF, PE, ZIP, PNG, etc.). Kaitai eliminates manual binary parsing code and ensures consistency across implementations.

4.6kstars
206forks
510issues
Updated 5d ago
+I use this

Installation

$ brew install kaitai-struct-compiler

Use Cases

  • Defining and parsing proprietary binary formats
  • Generating consistent parsers across multiple languages
  • Interactive binary file exploration and visualization
  • Malware file format reverse engineering

Tags

binary-parsingformat-specificationcode-generationdeclarativecross-languagec-plus-pluscppcsharpdeclarative-languagefile-formatgogolanggraphvizjavajavascriptluanimperlphpprotocol-analyserpythonreverse-engineeringrubyrust

Community Reviews

More in Reverse Engineering