From 2ad0726655a144d77d6e509b4b792d35e0bb028a Mon Sep 17 00:00:00 2001 From: Philipp Rossak Date: Fri, 10 Feb 2023 21:36:14 +0100 Subject: [PATCH] Add Tag structure and cleanup * update actions yml to generate a nicer toc * moving important infos to the top --- .github/workflows/auto_toc_update.yml | 2 +- README.md | 64 ++++++++++++++++++++++++--- 2 files changed, 58 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto_toc_update.yml b/.github/workflows/auto_toc_update.yml index 5f22521..c5e09de 100644 --- a/.github/workflows/auto_toc_update.yml +++ b/.github/workflows/auto_toc_update.yml @@ -19,7 +19,7 @@ jobs: - run: | curl https://raw.githubusercontent.com/ekalinin/github-markdown-toc/0.8.0/gh-md-toc -o gh-md-toc chmod a+x gh-md-toc - ./gh-md-toc --insert --no-backup --hide-footer README.md + ./gh-md-toc --insert --no-backup --hide-footer --skip-header README.md rm gh-md-toc - uses: stefanzweifel/git-auto-commit-action@v4 with: diff --git a/README.md b/README.md index b6909aa..7eae5a7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # Bambulab RFID Tag Hacking Guide +This guide gives you a basic overview how you can encrypt your tags. Since we don't know how Bambulab will react on this guide and the general reverse engineering of the tags: **Please don't share you tag's UID and the related keys for now.** + +We are currently working on a way to sumbmit the tag data in a secure way so analysis on the data could be done. + +# Table of contents * [Bambulab RFID Tag Hacking Guide](#bambulab-rfid-tag-hacking-guide) * [Before you start](#before-you-start) @@ -16,15 +21,12 @@ * [Compatible RFID tags - By generation](#compatible-rfid-tags----by-generation) - - -## Before you start - -This guide gives you a basic overview how you can encrypt your tags. Since we don't know how Bambulab will react on this guide and the general reverse engineering of the tags: **Please don't share you tag's UID and the related keys for now.** - - ## Todos/Timeline/Next steps +- [ ] Tool for automatic trace analysis +- [ ] Web service for tag submisson with automatic anonymized data publishing to github +- [ ] Tag content analysis + ## Required Epuipment @@ -121,6 +123,54 @@ This can be viewed now in a hex or binary editor or you can view it with: **TODO** +## Tag stucture + +The following infos are already known + +| sec | blk | Data | +|-----|-----|----------------------------------------------------------------------------------------| +| 0 | 0 | UID and Manufacturing Data - Tag specific | +| 0 | 1 | Unkown ASCII string | +| 0 | 2 | Flimaent type in ASCII (PLA, ..) | +| 0 | 3 | A-Keys Sector 0 (6 bytes), Permission Sector 1 (4 bytes), B-Keys Sector 0 (6 bytes) | +| 1 | 4 | ASCII string of detailed Filament type (PLA Basic, ...) | +| 1 | 5 | Color in hex (first 3 Bytes) & **Unkown binary data** | +| 1 | 6 | **Unkown binary data** | +| 1 | 7 | A-Keys Sector 1 (6 bytes), Permission Sector 1 (4 bytes), B-Keys Sector 1 (6 bytes) | +| 2 | 8 | **Unkown binary data** | +| 2 | 9 | **Unkown binary data** and ASCII string | +| 2 | 10 | **Unkown binary data** | +| 2 | 11 | A-Keys Sector 2 (6 bytes), Permission Sector 2 (4 bytes), B-Keys Sector 2 (6 bytes) | +| 3 | 12 | Production Date and Time in ASCII ? `____` | +| 3 | 13 | **Unkown binary data** | +| 3 | 14 | **Unkown binary data** | +| 3 | 15 | A-Keys Sector 3 (6 bytes), Permission Sector 3 (4 bytes), B-Keys Sector 3 (6 bytes) | +| 4 | 16 | **Empty** | +| 4 | 17 | **Empty** | +| 4 | 18 | **Empty** | +| 4 | 19 | A-Keys Sector 4 (6 bytes), Permission Sector 4 (4 bytes), B-Keys Sector 4 (6 bytes) | +| 5 | 20 | **Empty** | +| 5 | 21 | **Empty** | +| 5 | 22 | **Empty** | +| 5 | 23 | A-Keys Sector 5 (6 bytes), Permission Sector 5 (4 bytes), B-Keys Sector 5 (6 bytes) | +| 6 | 24 | **Empty** | +| 6 | 25 | **Empty** | +| 6 | 26 | **Empty** | +| 6 | 27 | A-Keys Sector 6 (6 bytes), Permission Sector 6 (4 bytes), B-Keys Sector 6 (6 bytes) | +| 7 | 28 | **Empty** | +| 7 | 29 | **Empty** | +| 7 | 30 | **Empty** | +| 7 | 31 | A-Keys Sector 7 (6 bytes), Permission Sector 7 (4 bytes), B-Keys Sector 7 (6 bytes) | +| 8 | 32 | **Empty** | +| 8 | 33 | **Empty** | +| 8 | 34 | **Empty** | +| 8 | 35 | A-Keys Sector 8 (6 bytes), Permission Sector 8 (4 bytes), B-Keys Sector 8 (6 bytes) | +| 9 | 37 | **Empty** | +| 9 | 38 | **Empty** | +| 9 | 39 | **Empty** | +| 9 | 15 | A-Keys Sector 9 (6 bytes), Permission Sector 9 (4 bytes), B-Keys Sector 9 (6 bytes) | +| 10-15 | * | **Unkown binary data** Maybe CRC | + ## Compatible RFID tags - By generation