mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
added the possibility to abort the dumping of mifare card clientside
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user