Skip to content

Commit

Permalink
add new protocols in BF existing dump
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Sep 6, 2024
1 parent 9dc90e6 commit 34f1652
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions subbrute_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "views/subbrute_attack_view.h"
#include "views/subbrute_main_view.h"

#define SUB_BRUTE_FORCER_VERSION "Sub-GHz BruteForcer 3.D"
#define SUB_BRUTE_FORCER_VERSION "Sub-GHz BruteForcer 3.E"

#ifdef FURI_DEBUG
//#define SUBBRUTE_FAST_TRACK false
Expand Down Expand Up @@ -74,7 +74,6 @@ struct SubBruteState {
VariableItemList* var_list;
DialogsApp* dialogs;


char text_store[SUBBRUTE_MAX_LEN_NAME]; /**< Text store */
FuriString* file_path;

Expand Down
3 changes: 3 additions & 0 deletions subbrute_protocols.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,9 @@ static const char* subbrute_protocol_file_types[] = {
[PT2260FileProtocol] = "Princeton",
[HoneywellFileProtocol] = "Honeywell",
[HoltekFileProtocol] = "Holtek_HT12X",
[LegrandFileProtocol] = "Legrand",
[HollarmileProtocol] = "Hollarm",
[GangQiFileProtocol] = "GangQi",
[UnknownFileProtocol] = "Unknown"};

/**
Expand Down
6 changes: 5 additions & 1 deletion subbrute_protocols.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ typedef enum {
PT2260FileProtocol,
HoneywellFileProtocol,
HoltekFileProtocol,
LegrandFileProtocol,
HollarmileProtocol,
GangQiFileProtocol,
UnknownFileProtocol,
TotalFileProtocol,
} SubBruteFileProtocol;
Expand Down Expand Up @@ -360,4 +363,5 @@ void subbrute_protocol_file_generate_file(
*
* @return The maximum value that can be generated based on the attack parameters (uint64_t).
*/
uint64_t subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits, bool two_bytes);
uint64_t
subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits, bool two_bytes);

0 comments on commit 34f1652

Please sign in to comment.