diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 5e6b764f1..5e4af4015 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -2601,6 +2601,10 @@ all_found: 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)"); for (current_sector_i = 0; current_sector_i < sectors_cnt; current_sector_i++) {