48ee413c9b
New protocols (from ProtoPirate): - Mazda V0: 433MHz, pair-based decoding, XOR deobfuscation - Mitsubishi V0: 868MHz, PWM, bit negation + XOR unscrambling - Porsche Touareg: 433/868MHz, sync preamble, 24-bit rotate cipher - Fiat V1 (Magneti Marelli BSI): 433MHz, auto-detected timing variants Protocol fixes aligned with ProtoPirate reference: - Kia V1: Fix Manchester level mapping (inverted convention), off-by-one bit count, CRC4 simplified to 7 bytes + offset 1 - Kia V2: Fix CRC byte layout (was double-counting nibbles), off-by-one bit count, preamble short-HIGH handling - Fiat V0: Fix endbyte transform (remove (<<1)|1), standard Manchester encoder (was differential), 7 btn bits (was 6), gap path fallback - PSA: Fix modified TEA (XTEA-like dynamic key selection), XOR decrypt byte mapping, critical key2_low construction bug, encoder polarity and preamble, add key1_high nibble validation, dual preamble patterns - Ford V0: Add calculate_checksum (sums all serial+count bytes) for encoder Kia V6 encoder ported: - Forward AES-128 (SubBytes, ShiftRows, MixColumns, encrypt) - encrypt_payload: build plaintext, AES encrypt, pack into 3 parts - Two-pass Manchester upload (640 + 38 preamble pairs) - fx_field extraction stored in DecodedSignal.extra for encode roundtrip Updated README, protocol docs, and version bump to 1.2.0.
64 lines
1.1 KiB
TOML
64 lines
1.1 KiB
TOML
[package]
|
|
name = "kat"
|
|
version = "1.2.0"
|
|
edition = "2021"
|
|
description = "Keyfob Analysis Toolkit - HackRF/RTL-SDR signal capture, decode, and transmit (HackRF only)"
|
|
authors = ["KAT Team"]
|
|
license = "BSD-3-Clause"
|
|
|
|
[dependencies]
|
|
# TUI
|
|
ratatui = "0.29"
|
|
crossterm = "0.28"
|
|
|
|
# HackRF library
|
|
libhackrf = "0.1"
|
|
|
|
# RTL-SDR (receive-only support, e.g. RTL433 hardware)
|
|
rtl-sdr-rs = "0.3"
|
|
|
|
# Signal processing
|
|
num-complex = "0.4"
|
|
|
|
# Async runtime
|
|
tokio = { version = "1.43", features = ["full"] }
|
|
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
toml = "0.8"
|
|
|
|
# INI config
|
|
configparser = "3"
|
|
|
|
# Config directory
|
|
dirs = "5.0"
|
|
|
|
# Time handling
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# Error handling
|
|
anyhow = "1.0"
|
|
thiserror = "2.0"
|
|
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# Bit manipulation
|
|
bitvec = "1.0"
|
|
|
|
# TTY detection
|
|
atty = "0.2"
|
|
|
|
[build-dependencies]
|
|
pkg-config = "0.3"
|
|
|
|
[patch.crates-io]
|
|
# Vendored with ARM fix: c_char is u8 on ARM, so the upstream transmute fails
|
|
libhackrf = { path = "vendor/libhackrf" }
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|