mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 14:13:42 -07:00
wipe command tested - works.
This commit is contained in:
parent
71d670d5b2
commit
5d50a99b51
2 changed files with 1 additions and 6 deletions
|
@ -1255,22 +1255,18 @@ void MifareCWipe(uint32_t arg0, uint32_t arg1, uint32_t arg2, uint8_t *datain){
|
|||
// send blocks command
|
||||
for (int blockNo = 0; blockNo < numBlocks; blockNo++) {
|
||||
if ((mifare_sendcmd_short(NULL, 0, 0xA0, blockNo, receivedAnswer, receivedAnswerPar, NULL) != 1) || (receivedAnswer[0] != 0x0a)) {
|
||||
if (MF_DBGLEVEL >= 1) Dbprintf("write block auth command error");
|
||||
if (MF_DBGLEVEL >= 1) Dbprintf("write block send command error");
|
||||
break;
|
||||
};
|
||||
|
||||
// check type of block and add crc
|
||||
Dbprintf("--- %d", blockNo);
|
||||
if (!isBlockTrailer(blockNo)){
|
||||
memcpy(d_block, block1, 16);
|
||||
Dbprintf("1");
|
||||
} else {
|
||||
memcpy(d_block, blockK, 16);
|
||||
Dbprintf("K");
|
||||
}
|
||||
if (blockNo == 0) {
|
||||
memcpy(d_block, block0, 16);
|
||||
Dbprintf("0");
|
||||
}
|
||||
AppendCrc14443a(d_block, 16);
|
||||
|
||||
|
|
|
@ -415,7 +415,6 @@ int mfEmlSetMem(uint8_t *data, int blockNum, int blocksCount) {
|
|||
int mfCGetBlock(uint8_t blockNo, uint8_t *data, uint8_t params) {
|
||||
uint8_t isOK = 0;
|
||||
|
||||
return 0;
|
||||
UsbCommand c = {CMD_MIFARE_CGETBLOCK, {params, 0, blockNo}};
|
||||
SendCommand(&c);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue