From 04e16970db5cc5a1023625fa8231b96ee000fb16 Mon Sep 17 00:00:00 2001 From: derskythe Date: Wed, 5 Oct 2022 17:45:45 +0400 Subject: [PATCH] Add CAME 12bit 303MHz to SubBrute --- applications/plugins/subbrute/subbrute.c | 2 ++ applications/plugins/subbrute/subbrute_device.c | 5 ++++- applications/plugins/subbrute/subbrute_device.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/applications/plugins/subbrute/subbrute.c b/applications/plugins/subbrute/subbrute.c index f9c6e67dc..488073b0a 100644 --- a/applications/plugins/subbrute/subbrute.c +++ b/applications/plugins/subbrute/subbrute.c @@ -21,6 +21,7 @@ #define TAG "SubBruteApp" static const char* subbrute_menu_names[] = { + [SubBruteAttackCAME12bit303] = "CAME 12bit 303MHz", [SubBruteAttackCAME12bit307] = "CAME 12bit 307MHz", [SubBruteAttackCAME12bit433] = "CAME 12bit 433MHz", [SubBruteAttackCAME12bit868] = "CAME 12bit 868MHz", @@ -36,6 +37,7 @@ static const char* subbrute_menu_names[] = { }; static const char* subbrute_menu_names_small[] = { + [SubBruteAttackCAME12bit303] = "CAME 303MHz", [SubBruteAttackCAME12bit307] = "CAME 307MHz", [SubBruteAttackCAME12bit433] = "CAME 433MHz", [SubBruteAttackCAME12bit868] = "CAME 868MHz", diff --git a/applications/plugins/subbrute/subbrute_device.c b/applications/plugins/subbrute/subbrute_device.c index d5712d96b..4fbaba5dd 100644 --- a/applications/plugins/subbrute/subbrute_device.c +++ b/applications/plugins/subbrute/subbrute_device.c @@ -292,10 +292,13 @@ SubBruteFileResult subbrute_device_attack_set(SubBruteDevice* instance, SubBrute // return file_result; // RETURN // } break; + case SubBruteAttackCAME12bit303: case SubBruteAttackCAME12bit307: case SubBruteAttackCAME12bit433: case SubBruteAttackCAME12bit868: - if(type == SubBruteAttackCAME12bit307) { + if(type == SubBruteAttackCAME12bit303) { + instance->frequency = 303875000; + } else if(type == SubBruteAttackCAME12bit307) { instance->frequency = 307800000; } else if(type == SubBruteAttackCAME12bit433) { instance->frequency = 433920000; diff --git a/applications/plugins/subbrute/subbrute_device.h b/applications/plugins/subbrute/subbrute_device.h index 46a1d2598..c2a6ed38f 100644 --- a/applications/plugins/subbrute/subbrute_device.h +++ b/applications/plugins/subbrute/subbrute_device.h @@ -17,6 +17,7 @@ #define SUBBRUTE_PAYLOAD_SIZE 16 typedef enum { + SubBruteAttackCAME12bit303, SubBruteAttackCAME12bit307, SubBruteAttackCAME12bit433, SubBruteAttackCAME12bit868,