mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
added the possibility to abort the dumping of mifare card clientside
This commit is contained in:
parent
7b6ca6d50f
commit
04f9850b1b
1 changed files with 8 additions and 0 deletions
|
@ -505,6 +505,14 @@ static int mfc_read_tag(iso14a_card_select_t *card, uint8_t *carddata, uint8_t n
|
||||||
PrintAndLogEx(NORMAL, "." NOLF);
|
PrintAndLogEx(NORMAL, "." NOLF);
|
||||||
fflush(stdout);
|
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.blockno = mfFirstBlockOfSector(sectorNo) + mfNumBlocksPerSector(sectorNo) - 1;
|
||||||
payload.keytype = current_key;
|
payload.keytype = current_key;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue