mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
CHG: 'HF MF C*' (chinese backdoor commands) According to douniwan5788 some magic/clone tags answers to the halt cmd and some not. I think I captured his ideas.
ref: 13b71e58fd
This commit is contained in:
parent
c3c12b5571
commit
d209443322
2 changed files with 8 additions and 6 deletions
|
@ -1217,10 +1217,9 @@ void MifareCSetBlock(uint32_t arg0, uint32_t arg1, uint8_t *datain){
|
|||
if(!iso14443a_select_card(uid, NULL, &cuid, true, 0)) {
|
||||
if (MF_DBGLEVEL >= MF_DBG_ERROR) Dbprintf("Can't select card");
|
||||
errormsg = MAGIC_UID;
|
||||
// break;
|
||||
}
|
||||
|
||||
if ( mifare_classic_halt_ex(NULL) ) break;
|
||||
mifare_classic_halt_ex(NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
// wipe tag, fill it with zeros
|
||||
|
@ -1239,7 +1238,7 @@ void MifareCSetBlock(uint32_t arg0, uint32_t arg1, uint8_t *datain){
|
|||
break;
|
||||
}
|
||||
|
||||
if ( mifare_classic_halt_ex(NULL) ) break;
|
||||
mifare_classic_halt_ex(NULL);
|
||||
}
|
||||
|
||||
// write block
|
||||
|
@ -1276,7 +1275,7 @@ void MifareCSetBlock(uint32_t arg0, uint32_t arg1, uint8_t *datain){
|
|||
}
|
||||
|
||||
if (workFlags & MAGIC_OFF)
|
||||
if ( mifare_classic_halt_ex(NULL) ) break;
|
||||
mifare_classic_halt_ex(NULL);
|
||||
|
||||
isOK = true;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue