subbrute 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. commit 34f16521cb99f0503aa541d18390e032bfe7a79e
  2. Author: MX <10697207+xMasterX@users.noreply.github.com>
  3. Date: Fri Sep 6 12:35:14 2024 +0300
  4. add new protocols in BF existing dump
  5. diff --git a/subbrute_i.h b/subbrute_i.h
  6. index 3b542d1c1..63748edf5 100644
  7. --- a/subbrute_i.h
  8. +++ b/subbrute_i.h
  9. @@ -31,7 +31,7 @@
  10. #include "views/subbrute_attack_view.h"
  11. #include "views/subbrute_main_view.h"
  12. -#define SUB_BRUTE_FORCER_VERSION "Sub-GHz BruteForcer 3.D"
  13. +#define SUB_BRUTE_FORCER_VERSION "Sub-GHz BruteForcer 3.E"
  14. #ifdef FURI_DEBUG
  15. //#define SUBBRUTE_FAST_TRACK false
  16. @@ -74,7 +74,6 @@ struct SubBruteState {
  17. VariableItemList* var_list;
  18. DialogsApp* dialogs;
  19. -
  20. char text_store[SUBBRUTE_MAX_LEN_NAME]; /**< Text store */
  21. FuriString* file_path;
  22. diff --git a/subbrute_protocols.c b/subbrute_protocols.c
  23. index 19384aad6..574d5ca86 100644
  24. --- a/subbrute_protocols.c
  25. +++ b/subbrute_protocols.c
  26. @@ -541,6 +541,9 @@ static const char* subbrute_protocol_file_types[] = {
  27. [PT2260FileProtocol] = "Princeton",
  28. [HoneywellFileProtocol] = "Honeywell",
  29. [HoltekFileProtocol] = "Holtek_HT12X",
  30. + [LegrandFileProtocol] = "Legrand",
  31. + [HollarmileProtocol] = "Hollarm",
  32. + [GangQiFileProtocol] = "GangQi",
  33. [UnknownFileProtocol] = "Unknown"};
  34. /**
  35. diff --git a/subbrute_protocols.h b/subbrute_protocols.h
  36. index 2ddd5797a..9dade49ef 100644
  37. --- a/subbrute_protocols.h
  38. +++ b/subbrute_protocols.h
  39. @@ -57,6 +57,9 @@ typedef enum {
  40. PT2260FileProtocol,
  41. HoneywellFileProtocol,
  42. HoltekFileProtocol,
  43. + LegrandFileProtocol,
  44. + HollarmileProtocol,
  45. + GangQiFileProtocol,
  46. UnknownFileProtocol,
  47. TotalFileProtocol,
  48. } SubBruteFileProtocol;
  49. @@ -360,4 +363,5 @@ void subbrute_protocol_file_generate_file(
  50. *
  51. * @return The maximum value that can be generated based on the attack parameters (uint64_t).
  52. */
  53. -uint64_t subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits, bool two_bytes);
  54. +uint64_t
  55. + subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits, bool two_bytes);