mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
fix reading NDEF from Mifare Classic
This commit is contained in:
parent
5b53bf803d
commit
cb0a3257be
1 changed files with 2 additions and 2 deletions
|
@ -5922,10 +5922,10 @@ int CmdHFMFNDEFRead(const char *Cmd) {
|
|||
}
|
||||
|
||||
PrintAndLogEx(INFO, "reading data from tag");
|
||||
for (int i = 1; i <= madlen; i++) {
|
||||
for (int i = 0; i < madlen; i++) {
|
||||
if (ndef_aid == mad[i]) {
|
||||
uint8_t vsector[MFBLOCK_SIZE * 4] = {0};
|
||||
if (mfReadSector(i, keyB ? MF_KEY_B : MF_KEY_A, ndefkey, vsector)) {
|
||||
if (mfReadSector(i + 1, keyB ? MF_KEY_B : MF_KEY_A, ndefkey, vsector)) {
|
||||
PrintAndLogEx(ERR, "error, reading sector %d ", i + 1);
|
||||
return PM3_ESOFT;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue