Kaynağa Gözat

Add Keri and Jablotron to RFID Fuzzer

SkeletonMan03 2 yıl önce
ebeveyn
işleme
68e4587a7e
2 değiştirilmiş dosya ile 95 ekleme ve 9 silme
  1. 2 0
      README.md
  2. 93 9
      lib/worker/protocol.c

+ 2 - 0
README.md

@@ -25,6 +25,8 @@ This is a completely remade app, visual style inspired by [iButton fuzzer](https
 - Paradox
 - Paradox
 - Indala26
 - Indala26
 - Viking
 - Viking
+- Keri
+- Jablotron
 
 
 ## Application Features
 ## Application Features
 ### Main screen
 ### Main screen

+ 93 - 9
lib/worker/protocol.c

@@ -79,6 +79,9 @@ const uint8_t uid_list_cyfral[][Cyfral_DATA_SIZE] = {
 #define PARADOX_DATA_SIZE (6)
 #define PARADOX_DATA_SIZE (6)
 #define INDALA26_DATA_SIZE (4)
 #define INDALA26_DATA_SIZE (4)
 #define VIKING_DATA_SIZE (4)
 #define VIKING_DATA_SIZE (4)
+#define PYRAMID_DATA_SIZE (4)
+#define KERI_DATA_SIZE (4)
+#define JABLOTRON_DATA_SIZE (5)
 
 
 const uint8_t uid_list_em4100[][EM4100_DATA_SIZE] = {
 const uint8_t uid_list_em4100[][EM4100_DATA_SIZE] = {
     {0x00, 0x00, 0x00, 0x00, 0x00}, // Null bytes
     {0x00, 0x00, 0x00, 0x00, 0x00}, // Null bytes
@@ -176,16 +179,16 @@ const uint8_t uid_list_ioproxxsf[][IOPROXXSF_DATA_SIZE] = {
 
 
 const uint8_t uid_list_paradox[][PARADOX_DATA_SIZE] = {
 const uint8_t uid_list_paradox[][PARADOX_DATA_SIZE] = {
     {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // Null bytes
     {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // Null bytes
-    {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}, //Only FF
+    {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}, // Only FF
     {0x11, 0x11, 0x11, 0x11, 0x11, 0x11}, // Only 11
     {0x11, 0x11, 0x11, 0x11, 0x11, 0x11}, // Only 11
     {0x22, 0x22, 0x22, 0x22, 0x22, 0x22}, // Only 22
     {0x22, 0x22, 0x22, 0x22, 0x22, 0x22}, // Only 22
     {0x33, 0x33, 0x33, 0x33, 0x33, 0x33}, // Only 33
     {0x33, 0x33, 0x33, 0x33, 0x33, 0x33}, // Only 33
     {0x44, 0x44, 0x44, 0x44, 0x44, 0x44}, // Only 44
     {0x44, 0x44, 0x44, 0x44, 0x44, 0x44}, // Only 44
-    {0x55, 0x55, 0x55, 0x55, 0x55, 0x55}, //Only 55
+    {0x55, 0x55, 0x55, 0x55, 0x55, 0x55}, // Only 55
     {0x66, 0x66, 0x66, 0x66, 0x66, 0x66}, // Only 66
     {0x66, 0x66, 0x66, 0x66, 0x66, 0x66}, // Only 66
     {0x77, 0x77, 0x77, 0x77, 0x77, 0x77}, // Only 77
     {0x77, 0x77, 0x77, 0x77, 0x77, 0x77}, // Only 77
     {0x88, 0x88, 0x88, 0x88, 0x88, 0x88}, // Only 88
     {0x88, 0x88, 0x88, 0x88, 0x88, 0x88}, // Only 88
-    {0x99, 0x99, 0x99, 0x99, 0x99, 0x99}, //Only 99
+    {0x99, 0x99, 0x99, 0x99, 0x99, 0x99}, // Only 99
     {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC}, // Incremental UID
     {0x12, 0x34, 0x56, 0x78, 0x9A, 0xBC}, // Incremental UID
     {0xFF, 0xDE, 0xBC, 0x9A, 0x78, 0x56}, // Decremental UID
     {0xFF, 0xDE, 0xBC, 0x9A, 0x78, 0x56}, // Decremental UID
     {0xCA, 0xCA, 0xCA, 0xCA, 0xCA, 0xCA}, // From arha
     {0xCA, 0xCA, 0xCA, 0xCA, 0xCA, 0xCA}, // From arha
@@ -193,16 +196,16 @@ const uint8_t uid_list_paradox[][PARADOX_DATA_SIZE] = {
 
 
 const uint8_t uid_list_indala26[][INDALA26_DATA_SIZE] = {
 const uint8_t uid_list_indala26[][INDALA26_DATA_SIZE] = {
     {0x00, 0x00, 0x00, 0x00}, // Null bytes
     {0x00, 0x00, 0x00, 0x00}, // Null bytes
-    {0xFF, 0xFF, 0xFF, 0xFF}, //Only FF
+    {0xFF, 0xFF, 0xFF, 0xFF}, // Only FF
     {0x11, 0x11, 0x11, 0x11}, // Only 11
     {0x11, 0x11, 0x11, 0x11}, // Only 11
     {0x22, 0x22, 0x22, 0x22}, // Only 22
     {0x22, 0x22, 0x22, 0x22}, // Only 22
     {0x33, 0x33, 0x33, 0x33}, // Only 33
     {0x33, 0x33, 0x33, 0x33}, // Only 33
     {0x44, 0x44, 0x44, 0x44}, // Only 44
     {0x44, 0x44, 0x44, 0x44}, // Only 44
-    {0x55, 0x55, 0x55, 0x55}, //Only 55
+    {0x55, 0x55, 0x55, 0x55}, // Only 55
     {0x66, 0x66, 0x66, 0x66}, // Only 66
     {0x66, 0x66, 0x66, 0x66}, // Only 66
     {0x77, 0x77, 0x77, 0x77}, // Only 77
     {0x77, 0x77, 0x77, 0x77}, // Only 77
     {0x88, 0x88, 0x88, 0x88}, // Only 88
     {0x88, 0x88, 0x88, 0x88}, // Only 88
-    {0x99, 0x99, 0x99, 0x99}, //Only 99
+    {0x99, 0x99, 0x99, 0x99}, // Only 99
     {0x12, 0x34, 0x56, 0x78}, // Incremental UID
     {0x12, 0x34, 0x56, 0x78}, // Incremental UID
     {0xFF, 0xDE, 0xBC, 0x9A}, // Decremental UID
     {0xFF, 0xDE, 0xBC, 0x9A}, // Decremental UID
     {0xCA, 0xCA, 0xCA, 0xCA}, // From arha
     {0xCA, 0xCA, 0xCA, 0xCA}, // From arha
@@ -210,21 +213,72 @@ const uint8_t uid_list_indala26[][INDALA26_DATA_SIZE] = {
 
 
 const uint8_t uid_list_viking[][VIKING_DATA_SIZE] = {
 const uint8_t uid_list_viking[][VIKING_DATA_SIZE] = {
     {0x00, 0x00, 0x00, 0x00}, // Null bytes
     {0x00, 0x00, 0x00, 0x00}, // Null bytes
-    {0xFF, 0xFF, 0xFF, 0xFF}, //Only FF
+    {0xFF, 0xFF, 0xFF, 0xFF}, // Only FF
+    {0x11, 0x11, 0x11, 0x11}, // Only 11
+    {0x22, 0x22, 0x22, 0x22}, // Only 22
+    {0x33, 0x33, 0x33, 0x33}, // Only 33
+    {0x44, 0x44, 0x44, 0x44}, // Only 44
+    {0x55, 0x55, 0x55, 0x55}, // Only 55
+    {0x66, 0x66, 0x66, 0x66}, // Only 66
+    {0x77, 0x77, 0x77, 0x77}, // Only 77
+    {0x88, 0x88, 0x88, 0x88}, // Only 88
+    {0x99, 0x99, 0x99, 0x99}, // Only 99
+    {0x12, 0x34, 0x56, 0x78}, // Incremental UID
+    {0xFF, 0xDE, 0xBC, 0x9A}, // Decremental UID
+    {0xCA, 0xCA, 0xCA, 0xCA}, // From arha
+};
+
+const uint8_t uid_list_pyramid[][PYRAMID_DATA_SIZE] = {
+    {0x00, 0x00, 0x00, 0x00}, // Null bytes
+    {0xFF, 0xFF, 0xFF, 0xFF}, // Only FF
     {0x11, 0x11, 0x11, 0x11}, // Only 11
     {0x11, 0x11, 0x11, 0x11}, // Only 11
     {0x22, 0x22, 0x22, 0x22}, // Only 22
     {0x22, 0x22, 0x22, 0x22}, // Only 22
     {0x33, 0x33, 0x33, 0x33}, // Only 33
     {0x33, 0x33, 0x33, 0x33}, // Only 33
     {0x44, 0x44, 0x44, 0x44}, // Only 44
     {0x44, 0x44, 0x44, 0x44}, // Only 44
-    {0x55, 0x55, 0x55, 0x55}, //Only 55
+    {0x55, 0x55, 0x55, 0x55}, // Only 55
     {0x66, 0x66, 0x66, 0x66}, // Only 66
     {0x66, 0x66, 0x66, 0x66}, // Only 66
     {0x77, 0x77, 0x77, 0x77}, // Only 77
     {0x77, 0x77, 0x77, 0x77}, // Only 77
     {0x88, 0x88, 0x88, 0x88}, // Only 88
     {0x88, 0x88, 0x88, 0x88}, // Only 88
-    {0x99, 0x99, 0x99, 0x99}, //Only 99
+    {0x99, 0x99, 0x99, 0x99}, // Only 99
     {0x12, 0x34, 0x56, 0x78}, // Incremental UID
     {0x12, 0x34, 0x56, 0x78}, // Incremental UID
     {0xFF, 0xDE, 0xBC, 0x9A}, // Decremental UID
     {0xFF, 0xDE, 0xBC, 0x9A}, // Decremental UID
     {0xCA, 0xCA, 0xCA, 0xCA}, // From arha
     {0xCA, 0xCA, 0xCA, 0xCA}, // From arha
 };
 };
 
 
+const uint8_t uid_list_keri[][KERI_DATA_SIZE] = {
+    {0x00, 0x00, 0x00, 0x00}, // Null bytes
+    {0xFF, 0xFF, 0xFF, 0xFF}, // Only FF
+    {0x11, 0x11, 0x11, 0x11}, // Only 11
+    {0x22, 0x22, 0x22, 0x22}, // Only 22
+    {0x33, 0x33, 0x33, 0x33}, // Only 33
+    {0x44, 0x44, 0x44, 0x44}, // Only 44
+    {0x55, 0x55, 0x55, 0x55}, // Only 55
+    {0x66, 0x66, 0x66, 0x66}, // Only 66
+    {0x77, 0x77, 0x77, 0x77}, // Only 77
+    {0x88, 0x88, 0x88, 0x88}, // Only 88
+    {0x99, 0x99, 0x99, 0x99}, // Only 99
+    {0x12, 0x34, 0x56, 0x78}, // Incremental UID
+    {0xFF, 0xDE, 0xBC, 0x9A}, // Decremental UID
+    {0xCA, 0xCA, 0xCA, 0xCA}, // From arha
+};
+
+const uint8_t uid_list_jablotron[][JABLOTRON_DATA_SIZE] = {
+    {0x00, 0x00, 0x00, 0x00, 0x00}, // Null bytes
+    {0xFF, 0xFF, 0xFF, 0xFF, 0xFF}, // Only FF
+    {0x11, 0x11, 0x11, 0x11, 0x11}, // Only 11
+    {0x22, 0x22, 0x22, 0x22, 0x22}, // Only 22
+    {0x33, 0x33, 0x33, 0x33, 0x33}, // Only 33
+    {0x44, 0x44, 0x44, 0x44, 0x44}, // Only 44
+    {0x55, 0x55, 0x55, 0x55, 0x55}, // Only 55
+    {0x66, 0x66, 0x66, 0x66, 0x66}, // Only 66
+    {0x77, 0x77, 0x77, 0x77, 0x77}, // Only 77
+    {0x88, 0x88, 0x88, 0x88, 0x88}, // Only 88
+    {0x99, 0x99, 0x99, 0x99, 0x99}, // Only 99
+    {0x12, 0x34, 0x56, 0x78, 0x9A}, // Incremental UID
+    {0xFF, 0xDE, 0xBC, 0x9A, 0x78}, // Decremental UID
+    {0xCA, 0xCA, 0xCA, 0xCA, 0xCA}, // From arha
+};
+
 #if defined(RFID_125_PROTOCOL)
 #if defined(RFID_125_PROTOCOL)
 const FuzzerProtocol fuzzer_proto_items[] = {
 const FuzzerProtocol fuzzer_proto_items[] = {
     // EM4100
     // EM4100
@@ -307,6 +361,36 @@ const FuzzerProtocol fuzzer_proto_items[] = {
                 .len = COUNT_OF(uid_list_viking),
                 .len = COUNT_OF(uid_list_viking),
             },
             },
     },
     },
+   // Pyramid
+    {
+        .name = "Pyramid",
+        .data_size = PYRAMID_DATA_SIZE,
+        .dict =
+            {
+                .val = (const uint8_t*)&uid_list_pyramid,
+                .len = COUNT_OF(uid_list_pyramid),
+            },
+    },
+   // Keri
+    {
+        .name = "Keri",
+        .data_size = KERI_DATA_SIZE,
+        .dict =
+            {
+                .val = (const uint8_t*)&uid_list_keri,
+                .len = COUNT_OF(uid_list_keri),
+            },
+    },
+   // Jablotron
+    {
+        .name = "Jablotron",
+        .data_size = JABLOTRON_DATA_SIZE,
+        .dict =
+            {
+                .val = (const uint8_t*)&uid_list_jablotron,
+                .len = COUNT_OF(uid_list_jablotron),
+            },
+    },
 };
 };
 #else
 #else
 const FuzzerProtocol fuzzer_proto_items[] = {
 const FuzzerProtocol fuzzer_proto_items[] = {