Ver Fonte

Fix max value in BF dump brute

DerSkythe há 3 anos atrás
pai
commit
a148f0c23a

+ 1 - 1
applications/plugins/subbrute/subbrute_device.c

@@ -20,7 +20,7 @@ SubBruteDevice* subbrute_device_alloc() {
     instance->environment = subghz_environment_alloc();
     instance->environment = subghz_environment_alloc();
 
 
 #ifdef FURI_DEBUG
 #ifdef FURI_DEBUG
-    subbrute_device_attack_set_default_values(instance, SubBruteAttackCAME12bit433);
+    subbrute_device_attack_set_default_values(instance, SubBruteAttackLoadFile);
 #else
 #else
     subbrute_device_attack_set_default_values(instance, SubBruteAttackCAME12bit433);
     subbrute_device_attack_set_default_values(instance, SubBruteAttackCAME12bit433);
 #endif
 #endif

+ 2 - 2
applications/plugins/subbrute/subbrute_protocols.c

@@ -281,7 +281,7 @@ void subbrute_protocol_file_payload(
     furi_string_replace_at(candidate, load_index * 3, 3, subbrute_payload_byte);
     furi_string_replace_at(candidate, load_index * 3, 3, subbrute_payload_byte);
 
 
 #ifdef FURI_DEBUG
 #ifdef FURI_DEBUG
-    //FURI_LOG_D(TAG, "candidate: %s, step: %lld", furi_string_get_cstr(candidate), step);
+    FURI_LOG_D(TAG, "candidate: %s, step: %lld", furi_string_get_cstr(candidate), step);
 #endif
 #endif
     stream_clean(stream);
     stream_clean(stream);
 
 
@@ -407,7 +407,7 @@ void subbrute_protocol_file_generate_file(
 uint64_t subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits) {
 uint64_t subbrute_protocol_calc_max_value(SubBruteAttacks attack_type, uint8_t bits) {
     uint64_t max_value;
     uint64_t max_value;
     if(attack_type == SubBruteAttackLoadFile) {
     if(attack_type == SubBruteAttackLoadFile) {
-        max_value = 0x3F;
+        max_value = 0xFF;
     } else {
     } else {
         FuriString* max_value_s;
         FuriString* max_value_s;
         max_value_s = furi_string_alloc();
         max_value_s = furi_string_alloc();