Skip to content

Commit

Permalink
added tools for dumping flash on supply chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Athryx committed Mar 24, 2024
1 parent 9d35129 commit 457db45
Show file tree
Hide file tree
Showing 432 changed files with 70,732 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ERA/keys
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
operational / damaged component secret id
..y....a....rl.H...6D2..OL
23 changes: 23 additions & 0 deletions MIT/key.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# I think this is the key
# address 0x1001afac
# wrong
key = b"'\x01\xf8\x0c\x92b,E8\xc40Pz\xee0\x00\xd2c+-\xb0\xc1t\xdc\xf2\x0e\x90\xaf\x04\xc5\xa3\xbc"
print(len(key))

secret = key.hex()
print(secret)
key_c_str = "".join(["\\x" + secret[i:i+2] for i in range(0, len(secret), 2)])

print(key_c_str)

from pwn import *

# potential code of mit_encrypt
code = b'-\xe9\xf0O%L\x05F\x0eF\x85\xb0A\x1c\x05\xf1\x13\x07#0\xaeF\x05\xf1\x0c\x0c\xa2F\xa8FO\xf0\x00\t\x18\xf8\x01\xbf\x1a\xf8\x01;\xe0E\x83\xea\x0b\x03I\xea\x03\t\xf5\xd1\xb9\xf1\x00\x0f,\xd0\xdf\xf8\\\xa0\xa8FO\xf0\x00\t\x18\xf8\x01\xbf\x1a\xf8\x01;\xe0E\x83\xea\x0b\x03I\xea\x03\t\xf5\xd1\xb9\xf1\x00\x0f\x1a\xd0O\xf0\x00\x08\x1e\xf8\x01\x9f\x14\xf8\x01;\xe6E\x83\xea\t\x03H\xea\x03\x08\xf5\xd1\xb8\xf1\x00\x0f\x0b\xd0\xcd\xe9\x02\x07\xcd\xe9\x00b\x06H\x13#*F\x00\xf04\xfd\x05\xb0\xbd\xe8\xf0\x8fO\xf0\xff0\xf9\xe7\x1c\x08\x00 '
print(disasm(code, arch='thumb'))

ld_addr = 0x1000e34e + 0x24
print(hex(ld_addr))

# new address: 0x1001afac

2 changes: 2 additions & 0 deletions i2c_overflow/i2c_supply_chain/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.nix text eol=lf
*.sh text eol=lf
23 changes: 23 additions & 0 deletions i2c_overflow/i2c_supply_chain/.github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
workflow_dispatch:
push:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Run
env:
TOKEN: ${{ secrets.TOKEN }}
IP: ${{ secrets.IP }}
PORT: ${{ secrets.PORT }}
run: python upload.py '${{ github.sha }}' '${{ github.actor }}' '${{ github.event.head_commit.message }}' '${{ github.run_id }}'
Loading

0 comments on commit 457db45

Please sign in to comment.