ofw pr 4316 MIFARE Plus 2K Cards in SL1 Mode

testing only, for dev branch
PR by LuemmelSec

https://github.com/flipperdevices/flipperzero-firmware/pull/4316/files

TODO: mf_classic_get_total_sectors_num
This commit is contained in:
MX
2025-12-13 19:21:15 +03:00
parent 969770919a
commit 647e65cfae
29 changed files with 74 additions and 36 deletions

View File

@@ -63,7 +63,7 @@ bool mf_classic_key_cache_save(MfClassicKeyCache* instance, const MfClassicData*
if(!flipper_format_write_hex_uint64(ff, "Key A map", &data->key_a_mask, 1)) break;
if(!flipper_format_write_hex_uint64(ff, "Key B map", &data->key_b_mask, 1)) break;
uint8_t sector_num = mf_classic_get_total_sectors_num(data->type);
uint8_t sector_num = mf_classic_get_scannable_sectors_num(data->type);
bool key_save_success = true;
for(size_t i = 0; (i < sector_num) && (key_save_success); i++) {
MfClassicSectorTrailer* sec_tr = mf_classic_get_sector_trailer_by_sector(data, i);

View File

@@ -8,7 +8,7 @@ void nfc_render_mf_classic_info(
FuriString* str) {
nfc_render_iso14443_3a_info(data->iso14443_3a_data, format_type, str);
uint8_t sectors_total = mf_classic_get_total_sectors_num(data->type);
uint8_t sectors_total = mf_classic_get_scannable_sectors_num(data->type);
uint8_t keys_total = sectors_total * 2;
uint8_t keys_found = 0;
uint8_t sectors_read = 0;