mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
chg: enhanced verify t55xx write.
We set config to the cloned block0, whats left is to identify the offset, which we try to do.
This commit is contained in:
parent
775394ae58
commit
3726df62a4
14 changed files with 202 additions and 69 deletions
|
@ -144,16 +144,15 @@ static int CmdPrescoClone(const char *Cmd) {
|
|||
return PM3_ETIMEOUT;
|
||||
}
|
||||
|
||||
// write block0, needs a detect.
|
||||
if (i == 0) {
|
||||
printf("enter detect ");
|
||||
bool ok = t55xxAquireAndDetect(false, 0, blocks[i], false);
|
||||
printf(" b0 = '%c' \n", (ok) ? 'Y':'N');
|
||||
SetConfigWithBlock0(blocks[0]);
|
||||
if ( t55xxAquireAndCompareBlock0(false, 0, blocks[0], false) )
|
||||
continue;
|
||||
}
|
||||
if (t55xxVerifyWrite(i, 0, false, false, 0, 0xFF, blocks[i]) == false) {
|
||||
|
||||
if (t55xxVerifyWrite(i, 0, false, false, 0, 0xFF, blocks[i]) == false)
|
||||
res++;
|
||||
printf(" i = %d \n", i);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( res == 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue