Code Monkey home page Code Monkey logo

ki211-seed-key's Introduction

Seed key algorithm for Mercedes 211/209/203/171 instrument clusters

Implementation of seed key algorithm for KI211/KI209/KI203/KI171 etc. clusters in Rust.

Although seed given by most of these clusters is 8 bytes, only 4 bytes are used for key calculation, therefore it's possible that this algorithm will work for older KI203 cluster that return 4 bytes seed.

The produced key is 4 bytes long, however some clusters require access level (1 byte) and dongle ID (2 bytes) present in response. It looks like dongle ID can be any value and it's not used by cluster at all and just gets stored in EEPROM.

For calculation you would need to have a root key (4 bytes) which is different for each cluster software version.

Some examples are demonstrated in tests.

The root key can be bruteforced if at least one seed key pair is known.

FOR EDUCATIONAL PURPOSES ONLY

License

MIT

This software does not include or require copyrighted or proprietary files.

When interacting with this repository (PR, issues, comments), please avoid including copyrighted/proprietary files, as they will be removed without notice.

ki211-seed-key's People

Contributors

rnd-ash avatar vladlupashevskyi avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

crackintosh

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.