Giter Club home page Giter Club logo

catibo's Introduction

Catibo: read/write/analyze CTB, CBDDLP, and PHZ files

Catibo is a Rust crate for working with the file formats used by low-end resin 3D printers like the Elegoo Mars, CREALITY LD-002R, and Phrozen Sonic Mini. It provides a low-level API for manipulating these files and a set of command line tools.

Catibo is the result of reverse engineering of files produced for those printers, and is not sanctioned or supported by printer manufacturers or the authors of the proprietary printer control software. To my knowledge, it contains the first known decoding and implementation of:

  • Several newly decoded fields in the files,
  • The format of the preview images stored in the files,
  • The PHZ headers.
  • The encryption algorithm used in CTB and PHZ files.

catibo-convert

The catibo-convert tool is included as an example. It can convert between the ctb, cbddlp, and phz formats, clear data from reserved areas of files, and add or remove encryption. It can't currently produce antialiased CBDDLP files from CTB files, because antialiased CBDDLP is really unnecessarily complex and I ran out of steam.

Converting files between printer formats is merely a demonstration that the decodings work, and isn't very useful in day to day life.

Example:

# Strip encryption
$ cargo run --bin catibo-convert -- --key=0 input.ctb input-decrypted.ctb
# Converting between formats
$ cargo run --bin catibo-convert input.ctb output.cbddlp

catibo-inspect

The catibo-inspect tool helps reverse engineering by printing parsed headers from supported file types. If you'd like far too much information about the contents of a file, but don't want to spend hours squinting at a hexdump, this tool may be of interest.

catibo's People

Contributors

cbiffle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.