Skip to content

Commit

Permalink
Proper call to nfc_util
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrrra committed Jun 28, 2023
1 parent 10def78 commit 3740f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nfc/nfc_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ void nfc_worker_mf_classic_dict_attack(NfcWorker* nfc_worker) {
mf_classic_get_sector_trailer_by_sector(data, i);

uint8_t current_key[6];
nfc_util_num2bytes(key, current_key, 6);
nfc_util_num2bytes(key, 6, current_key);

if(mf_classic_is_key_found(data, i, MfClassicKeyA) &&
memcmp(sec_trailer->key_a, current_key, 6) == 0) {
Expand All @@ -970,7 +970,7 @@ void nfc_worker_mf_classic_dict_attack(NfcWorker* nfc_worker) {
mf_classic_get_sector_trailer_by_sector(data, i);

uint8_t current_key[6];
nfc_util_num2bytes(key, current_key, 6);
nfc_util_num2bytes(key, 6, current_key);

if(mf_classic_is_key_found(data, i, MfClassicKeyB) &&
memcmp(sec_trailer->key_b, current_key, 6) == 0) {
Expand Down

0 comments on commit 3740f1e

Please sign in to comment.