mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
clear emulator mem before fillig it
This commit is contained in:
parent
4a254a13ce
commit
137517111f
1 changed files with 4 additions and 0 deletions
|
@ -2601,6 +2601,10 @@ all_found:
|
||||||
PrintAndLogEx(ERR, "Failed to save keys to file");
|
PrintAndLogEx(ERR, "Failed to save keys to file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// clear emulator mem
|
||||||
|
clearCommandBuffer();
|
||||||
|
SendCommandNG(CMD_HF_MIFARE_EML_MEMCLR, NULL, 0);
|
||||||
|
|
||||||
PrintAndLogEx(SUCCESS, "transferring keys to simulator memory (Cmd Error: 04 can occur)");
|
PrintAndLogEx(SUCCESS, "transferring keys to simulator memory (Cmd Error: 04 can occur)");
|
||||||
|
|
||||||
for (current_sector_i = 0; current_sector_i < sectors_cnt; current_sector_i++) {
|
for (current_sector_i = 0; current_sector_i < sectors_cnt; current_sector_i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue