Explorar o código

custom zero key adf

Eric Betts hai 8 meses
pai
achega
bcaa7d2ced
Modificáronse 4 ficheiros con 11 adicións e 26 borrados
  1. 2 1
      .catalog/README.md
  2. 5 4
      README.md
  3. 2 2
      keys-example.txt
  4. 2 19
      keys.c

+ 2 - 1
.catalog/README.md

@@ -1,6 +1,7 @@
 ## Keys
 
-**The app uses all zero keys by default**. If you'd like to use your own keys, use the format of the 'keys-example.txt' to specify them, and place into 'SD Card/apps_data/seos/keys.txt'
+**The app uses all zero keys by default**. It uses an ADF OID of 030107090000000000 ("0.3.1.7.9.0.0.0.0.0").
+If you'd like to use your own keys/ADF OID, use the format of the 'keys-example.txt' to specify them, and place into 'SD Card/apps_data/seos/keys.txt'
 
 ## Note
 

+ 5 - 4
README.md

@@ -4,6 +4,11 @@ Flipper app for reading and emulating Seos-compatible cards/fobs/mobile credenti
 
 ![Demo Video](demo.mp4)
 
+## Keys
+
+**The app uses all 00 keys by default.**  It uses an ADF OID of 030107090000000000 ("0.3.1.7.9.0.0.0.0.0").
+If you'd like to use your own keys/ADF OID, use the format of the `keys-example.txt` to specify them, and place into `SD Card/apps_data/seos/keys.txt`
+
 ## Note
 
 This software incorporates a third-party implementation of Seos®️  technology. It is not developed, authorized, licensed, or endorsed by HID Global, ASSA ABLOY, or any of their affiliates. References to Seos®️  are solely for descriptive and compatibility purposes.
@@ -20,10 +25,6 @@ Seos®️ , HID Global, and ASSA ABLOY are trademarks or registered trademarks o
 - When parsing incoming data, use buffer + len instead of BitBuffer so I can increment buffer pointer as I parse header(s)
 - CMAC checking where I missed it
 
-## Keys
-
-The app uses all 00 keys by default. If you'd like to use your own keys, use the format of the `keys-example.txt` to specify them, and place into `SD Card/apps_data/seos/keys.txt`
-
 ## Hardware for BLE support (experimental)
 
 1. Install/setup nordic SDK

+ 2 - 2
keys-example.txt

@@ -1,7 +1,7 @@
 Filetype: Seos keys
 Version: 1
-SEOS_ADF_OID_LEN: 17
-SEOS_ADF_OID: 2b 06 01 04 01 81 e4 38 01 01 02 01 18 01 01 02 02
+SEOS_ADF_OID_LEN: 8
+SEOS_ADF_OID: 03 01 07 09 00 00 00 00 00
 SEOS_ADF1_PRIV_ENC: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 SEOS_ADF1_PRIV_MAC: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 SEOS_ADF1_READ: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

+ 2 - 19
keys.c

@@ -1,25 +1,8 @@
 #include <stdint.h>
 #include <stddef.h>
 
-size_t SEOS_ADF_OID_LEN = 17;
-uint8_t SEOS_ADF_OID[] = {
-    0x2b,
-    0x06,
-    0x01,
-    0x04,
-    0x01,
-    0x81,
-    0xe4,
-    0x38,
-    0x01,
-    0x01,
-    0x02,
-    0x01,
-    0x18,
-    0x01,
-    0x01,
-    0x02,
-    0x02};
+size_t SEOS_ADF_OID_LEN = 8;
+uint8_t SEOS_ADF_OID[] = {0x03, 0x01, 0x07, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00};
 uint8_t SEOS_ADF1_PRIV_ENC[] =
     {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 uint8_t SEOS_ADF1_PRIV_MAC[] =