Voltar ao ranking

kaitai-io/kaitai_struct

Shellkaitai.io

Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Nim / Perl / PHP / Python / Ruby / Rust

reverse-engineeringprotocol-analyserfile-formatdeclarative-languagerubyjavajavascriptpythoncsharpgolangperlphp
Crescimento de estrelas
Estrelas
4.6k
Forks
209
Crescimento semanal
Issues
513
2k4k
abr. de 2016set. de 2019fev. de 2023jul. de 2026
README

Kaitai Struct

Join the chat at https://gitter.im/kaitai_struct/Lobby

[!NOTE] If you want to make changes to the project, do not fork this kaitai_struct repository. Instead, choose the component you want to modify in the file tree above and fork that individual component instead.

This is an umbrella repository, containing the components only as submodules to make it easier to check out the entire project. Unless you want to modify this README, it is not the repo where you can make edits.

What is Kaitai Struct?

Kaitai Struct (KS) is a declarative language used to describe various binary data structures, laid out in files or in memory: i.e. binary file formats, network stream packet formats, etc.

The main idea is that a particular format is described in Kaitai Struct language (.ksy file) only once and then can be compiled with kaitai-struct-compiler (or ksc for short) into source files in one of the supported programming languages. These modules will include generated code for a parser that can read the described data structure from a file or stream and provide access to it in a nice, easy-to-comprehend API.

What is it used for?

Have you ever found yourself writing repetitive, error-prone and hard-to-debug code that reads binary data structures from file / network stream and somehow represents them in memory for easier access?

Kaitai Struct tries to make this job easier — you only have to describe the binary format once and then everybody can use it from their programming languages — cross-language, cross-platform.

Kaitai Struct includes a growing collection of format descriptions, available in formats submodule repository.

Using KS in your project

Typically, using formats described in KS in your project involves the following steps:

  • Describe the format — i.e. create a .ksy file
  • Use a visualizer to debug the format and ensure that it parses data properly (official visualizers are Web IDE and the console visualizer ksv)
  • Compile the .ksy file into a target language source file and include that file in your project
  • Add the KS runtime library for your particular language to your project (don't worry, it's small and it's there mostly to ensure readability of generated code)
  • Use the generated class(es) to parse your binary file or stream and access its components

To see an example, a list of supported languages, download instructions and licensing information, visit https://kaitai.io/.

Repositórios relacionados
Hack-with-Github/Awesome-Hacking

A collection of various awesome lists for hackers, pentesters and security researchers

Creative Commons Zero v1.0 Universalhackingsecurity
116.6k10.5k
NationalSecurityAgency/ghidra

Ghidra is a software reverse engineering (SRE) framework

JavaMavenApache License 2.0software-analysisdisassembler
nsa.gov/ghidra
71.2k7.8k
xtekky/gpt4free

The official gpt4free repository | various collection of powerful language models | opus 4.6 gpt 5.3 kimi 2.5 deepseek v3.2 gemini 3

PythonPyPIGNU General Public License v3.0chatgptchatgpt-4
t.me/g4f_channel
66.5k13.5k
WerWolv/ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.

C++GNU General Public License v2.0hex-editorreverse-engineering
imhex.werwolv.net
54.2k2.4k
x64dbg/x64dbg

An open-source user mode debugger for Windows. Optimized for reverse engineering and malware analysis.

C++Otherdebuggerwindows
x64dbg.com
49k2.8k
JCodesMore/ai-website-cloner-template

Clone any website with one command using AI coding agents

TypeScriptnpmMIT Licenseaiai-agents
dsc.gg/jcodesmore
29.5k4.2k
librepods-org/librepods

AirPods liberated from Apple's ecosystem.

KotlinGNU General Public License v3.0airpodslinux
29.1k1.6k
iBotPeaches/Apktool

A tool for reverse engineering Android apk files

JavaMavenApache License 2.0apktoolapk
apktool.org
25.1k4k
radareorg/radare2

UNIX-like reverse engineering framework and command-line toolset

COtherradare2c
radare.org
24.4k3.3k
rizinorg/cutter

Free and Open Source Reverse Engineering Platform powered by rizin

C++GNU General Public License v3.0cuttergui
cutter.re
19.4k1.4k
vitalysim/Awesome-Hacking-Resources

A collection of hacking / penetration testing resources to make you better!

GNU General Public License v3.0ctfhacking
17.3k2.2k
Tyrrrz/YoutubeDownloader

Downloads videos and playlists from YouTube

C#MIT Licenseyoutubedownload
github.com/Tyrrrz/YoutubeDownloader/releases
15.7k2k