mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 04:49:38 -07:00
hf mf nested: transfer keys to the correct block in one sector mode.
This commit is contained in:
parent
36545f0a56
commit
7b7416bd3b
1 changed files with 2 additions and 2 deletions
|
@ -683,9 +683,9 @@ int CmdHF14AMfNested(const char *Cmd)
|
||||||
if (transferToEml) {
|
if (transferToEml) {
|
||||||
uint8_t sectortrailer;
|
uint8_t sectortrailer;
|
||||||
if (trgBlockNo < 32*4) { // 4 block sector
|
if (trgBlockNo < 32*4) { // 4 block sector
|
||||||
sectortrailer = (trgBlockNo & 0x03) + 3;
|
sectortrailer = (trgBlockNo & ~0x03) + 3;
|
||||||
} else { // 16 block sector
|
} else { // 16 block sector
|
||||||
sectortrailer = (trgBlockNo & 0x0f) + 15;
|
sectortrailer = (trgBlockNo & ~0x0f) + 15;
|
||||||
}
|
}
|
||||||
mfEmlGetMem(keyBlock, sectortrailer, 1);
|
mfEmlGetMem(keyBlock, sectortrailer, 1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue