added the possibility to abort the dumping of mifare card clientside

This commit is contained in:
iceman1001
2023-04-08 09:52:17 +02:00
parent 7b6ca6d50f
commit 04f9850b1b
+8
View File
@@ -505,6 +505,14 @@ static int mfc_read_tag(iso14a_card_select_t *card, uint8_t *carddata, uint8_t n
PrintAndLogEx(NORMAL, "." NOLF);
fflush(stdout);
if (kbd_enter_pressed()) {
PrintAndLogEx(WARNING, "\naborted via keyboard!\n");
free(fptr);
free(keyA);
free(keyB);
return PM3_EOPABORTED;
}
payload.blockno = mfFirstBlockOfSector(sectorNo) + mfNumBlocksPerSector(sectorNo) - 1;
payload.keytype = current_key;