Просмотр исходного кода

1.4.1 - Fix invalid nonces after skipping

AloneLiberty 2 лет назад
Родитель
Сommit
db21a62edf
2 измененных файлов с 4 добавлено и 1 удалено
  1. 1 1
      mifare_nested_i.h
  2. 3 0
      mifare_nested_worker.c

+ 1 - 1
mifare_nested_i.h

@@ -21,7 +21,7 @@
 #include <gui/modules/variable_item_list.h>
 #include "mifare_nested_icons.h"
 
-#define NESTED_VERSION_APP "1.4.0"
+#define NESTED_VERSION_APP "1.4.1"
 #define NESTED_GITHUB_LINK "https://github.com/AloneLiberty/FlipperNested"
 #define NESTED_RECOVER_KEYS_GITHUB_LINK "https://github.com/AloneLiberty/FlipperNestedRecovery"
 #define NESTED_NONCE_FORMAT_VERSION "3"

+ 3 - 0
mifare_nested_worker.c

@@ -552,6 +552,7 @@ bool mifare_nested_worker_check_initial_keys(
                 info->key_type = key_type;
                 info->block = mifare_nested_worker_get_block_by_sector(sector);
                 info->collected = false;
+                info->skipped = true;
 
                 nonces->nonces[sector][key_type][tries] = info;
             }
@@ -568,6 +569,7 @@ bool mifare_nested_worker_check_initial_keys(
             for(uint8_t tries = 0; tries < tries_count; tries++) {
                 Nonces* info = nonces->nonces[sector][0][tries];
                 info->collected = true;
+                info->skipped = true;
 
                 nonces->nonces[sector][0][tries] = info;
             }
@@ -588,6 +590,7 @@ bool mifare_nested_worker_check_initial_keys(
             for(uint8_t tries = 0; tries < tries_count; tries++) {
                 Nonces* info = nonces->nonces[sector][1][tries];
                 info->collected = true;
+                info->skipped = true;
 
                 nonces->nonces[sector][1][tries] = info;
             }