Skip to content

Commit baf5034

Browse files
authored
Merge pull request #87 from derskythe/feat-add-subbrute-frequency
Add CAME 12bit 303MHz to SubBrute
2 parents a8b4877 + 04e1697 commit baf5034

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

applications/plugins/subbrute/subbrute.c

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define TAG "SubBruteApp"
2222

2323
static const char* subbrute_menu_names[] = {
24+
[SubBruteAttackCAME12bit303] = "CAME 12bit 303MHz",
2425
[SubBruteAttackCAME12bit307] = "CAME 12bit 307MHz",
2526
[SubBruteAttackCAME12bit433] = "CAME 12bit 433MHz",
2627
[SubBruteAttackCAME12bit868] = "CAME 12bit 868MHz",
@@ -36,6 +37,7 @@ static const char* subbrute_menu_names[] = {
3637
};
3738

3839
static const char* subbrute_menu_names_small[] = {
40+
[SubBruteAttackCAME12bit303] = "CAME 303MHz",
3941
[SubBruteAttackCAME12bit307] = "CAME 307MHz",
4042
[SubBruteAttackCAME12bit433] = "CAME 433MHz",
4143
[SubBruteAttackCAME12bit868] = "CAME 868MHz",

applications/plugins/subbrute/subbrute_device.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,13 @@ SubBruteFileResult subbrute_device_attack_set(SubBruteDevice* instance, SubBrute
292292
// return file_result; // RETURN
293293
// }
294294
break;
295+
case SubBruteAttackCAME12bit303:
295296
case SubBruteAttackCAME12bit307:
296297
case SubBruteAttackCAME12bit433:
297298
case SubBruteAttackCAME12bit868:
298-
if(type == SubBruteAttackCAME12bit307) {
299+
if(type == SubBruteAttackCAME12bit303) {
300+
instance->frequency = 303875000;
301+
} else if(type == SubBruteAttackCAME12bit307) {
299302
instance->frequency = 307800000;
300303
} else if(type == SubBruteAttackCAME12bit433) {
301304
instance->frequency = 433920000;

applications/plugins/subbrute/subbrute_device.h

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#define SUBBRUTE_PAYLOAD_SIZE 16
1818

1919
typedef enum {
20+
SubBruteAttackCAME12bit303,
2021
SubBruteAttackCAME12bit307,
2122
SubBruteAttackCAME12bit433,
2223
SubBruteAttackCAME12bit868,

0 commit comments

Comments
 (0)