• Stars
    star
    257
  • Rank 152,985 (Top 4 %)
  • Language
    Ruby
  • License
    GNU General Publi...
  • Created about 8 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Kaitai Struct: visualizer and hex viewer tool

Kaitai Struct: visualizer

This is a simple visualizer for Kaitai Struct project.

screenshot

Kaitai Struct is a declarative language used for 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 files) only once and then can be compiled with this compiler into source files in one of the supported programming languages. These modules will include a generated code for a parser that can read described data structure from a file / stream and give access to it in a nice, easy-to-comprehend API.

Please refer to documentation in Kaitai Struct project for details on .ksy files and general usage patterns.

Downloading and installing

Requirements

From Ruby Gems repository

KS visualizer is written in Ruby and is available as .gem package. Thus, you'll need Ruby (RubyGems package manager comes bundled with Ruby since v1.9) installed on your box, and then you can just run:

gem install kaitai-struct-visualizer

Source code

If you're interested in developing the visualizer itself, you can check out source code in repository:

git clone https://github.com/kaitai-io/kaitai_struct_visualizer

Usage

ksv <binary-file> <ksy-file>... | <rb-file>

Running with Docker

Running image from Docker Hub:

docker run -v "$(pwd):/share" -it kaitai/ksv <binary-file> <ksy-file>

Rebuilding the image from local files:

docker build . --tag docker.io/kaitai/ksv

Licensing

Kaitai Struct visualizer is copyright (C) 2015-2021 Kaitai Project.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Note that it applies only to compiler itself, not .ksy input files that one supplies in normal process of compilation, nor to compiler's output files — that constitutes normal usage process and you obviously keep copyright to both.

More Repositories

1

kaitai_struct

Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Nim / Perl / PHP / Python / Ruby
Shell
3,799
star
2

kaitai_struct_formats

Kaitai Struct: library of binary file formats (.ksy)
Kaitai Struct
682
star
3

kaitai_struct_compiler

Kaitai Struct: compiler to translate .ksy => .cpp / .cs / .dot / .go / .java / .js / .lua / .nim / .php / .pm / .py / .rb
Scala
474
star
4

kaitai_struct_webide

Online editor / visualizer for Kaitai Struct .ksy files
TypeScript
258
star
5

awesome-kaitai

A curated list of Kaitai Struct tools and resources
181
star
6

kaitai_struct_python_runtime

Kaitai Struct: runtime for Python
Python
83
star
7

kaitai_struct_go_runtime

Kaitai Struct: runtime for Go
Go
67
star
8

kaitai_struct_cpp_stl_runtime

Kaitai Struct: runtime for C++ using STL
C++
63
star
9

kaitai_struct_csharp_runtime

Kaitai Struct: runtime for C#/.NET
C#
58
star
10

kaitai_fs

KaitaiFS: mount any filesystem specified with a .ksy as a real file system
Python
55
star
11

kaitai_struct_rust_runtime

Kaitai Struct: runtime for Rust
Rust
54
star
12

kaitai_struct_java_runtime

Kaitai Struct: runtime for Java
Java
41
star
13

kaitai_struct_javascript_runtime

Kaitai Struct: runtime for JavaScript
JavaScript
31
star
14

kaitai_struct_gui

Kaitai Struct: visualizer and hex viewer tool GUI in Java
Java
22
star
15

kaitai_struct_lua_runtime

Kaitai Struct: runtime for Lua
Lua
18
star
16

kaitai_struct_doc

Kaitai Struct: documentation
CSS
16
star
17

kaitai_struct_ruby_runtime

Kaitai Struct: runtime for Ruby
Ruby
15
star
18

ide-kaitai-io.github.io

Stable deployment of Kaitai Web IDE using GitHub pages - https://ide.kaitai.io/
JavaScript
14
star
19

kaitai_struct_tests

Kaitai Struct: tests in all supported programming languages
Ruby
12
star
20

ksy_schema

Kaitai Struct YAML (KSY) schema specification
12
star
21

kaitai_struct_swift_runtime

Kaitai Struct: runtime for Swift
Swift
10
star
22

ksylint

A linter for ksy files.
Python
10
star
23

kaitai_struct_php_runtime

Kaitai Struct: runtime for PHP
PHP
10
star
24

kaitai_struct_nim_runtime

Kaitai Struct: runtime for Nim
Nim
9
star
25

kaitai_compress

Kaitai Struct: data compression algorithms processing routines
Shell
9
star
26

formats-kaitai-io.github.io

Rendered HTML pages repository powering http://formats.kaitai.io/ — generated from https://github.com/kaitai-io/kaitai_struct_formats/
HTML
7
star
27

kaitai_struct_loader

Webpack loader for kaitai-struct .ksy definitions
JavaScript
7
star
28

java_bytecode.ksy

Java bytecode spec for Kaitai Struct
Ruby
6
star
29

kaitai-io.github.io

Kaitai Project homepage
HTML
6
star
30

kaitai_struct_benchmarks

Kaitai Struct: benchmarking suite
Kaitai Struct
5
star
31

edid.ksy

EDID (VESA Enhanced Extended Display Identification Data) structure for Kaitai Struct
Kaitai Struct
4
star
32

kaitai_struct_perl_runtime

Kaitai Struct: runtime for Perl
Perl
4
star
33

kaitai_struct_samples

Kaitai Struct: library of sample files for testing
Python
4
star
34

kaitai_ci_ui

Kaitai Struct CI UI
Vue
3
star
35

doc-kaitai-io.github.io

Rendered HTML pages repository powering https://doc.kaitai.io/ — generated from https://github.com/kaitai-io/kaitai_struct_doc/
HTML
3
star
36

dicom.ksy

DICOM (Digital Imaging and Communications in Medicine) file format spec for Kaitai Struct
Ruby
3
star
37

ci_targets

Kaitai Struct CI: test .ksy files compiled into target languages
C++
3
star
38

kaitai_struct_c_runtime

Kaitai Struct: runtime for C
3
star
39

kaitai_struct_typescript_runtime

Kaitai Struct: Runtime for Typescript
2
star
40

kaitai_struct_examples

HTML
2
star
41

coreldraw_cdr.ksy

CDR (CorelDRAW drawing) format specification for Kaitai Struct
Kaitai Struct
2
star
42

windows_resource_file.ksy

Windows resource file spec for Kaitai Struct
2
star
43

webide-usercontent.kaitai.io

HTML
1
star
44

kaitai_struct_docker_images

Docker containers that are sufficient to run relevant portion of Kaitai Struct tests for a particular target language
Dockerfile
1
star
45

ci-kaitai-io.github.io

ci.kaitai.io website
HTML
1
star
46

kaitai_struct_webide_vue

The kaitai struct webide completely rewritten from the ground up with vuejs and web components
Vue
1
star
47

ci_artifacts

Kaitai Struct CI: test run results
1
star