mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
Merge pull request #1010 from xianglin1998/master
32 sector print incomplete for Mifare 4K
This commit is contained in:
commit
c40edaec82
1 changed files with 3 additions and 3 deletions
|
@ -827,7 +827,7 @@ static int CmdHF14AMfRdSc(const char *Cmd) {
|
||||||
|
|
||||||
uint8_t blocks = 4;
|
uint8_t blocks = 4;
|
||||||
uint8_t start = sectorNo * 4;
|
uint8_t start = sectorNo * 4;
|
||||||
if (sectorNo > 32) {
|
if (sectorNo >= 32) {
|
||||||
blocks = 16;
|
blocks = 16;
|
||||||
start = 128 + (sectorNo - 32) * 16;
|
start = 128 + (sectorNo - 32) * 16;
|
||||||
}
|
}
|
||||||
|
@ -3671,7 +3671,7 @@ static int CmdHF14AMfEGetSc(const char *Cmd) {
|
||||||
PrintAndLogEx(NORMAL, "----+------------------------------------------------");
|
PrintAndLogEx(NORMAL, "----+------------------------------------------------");
|
||||||
uint8_t blocks = 4;
|
uint8_t blocks = 4;
|
||||||
uint8_t start = sector * 4;
|
uint8_t start = sector * 4;
|
||||||
if (sector > 32) {
|
if (sector >= 32) {
|
||||||
blocks = 16;
|
blocks = 16;
|
||||||
start = 128 + (sector - 32) * 16;
|
start = 128 + (sector - 32) * 16;
|
||||||
}
|
}
|
||||||
|
@ -4365,7 +4365,7 @@ static int CmdHF14AMfCGetSc(const char *Cmd) {
|
||||||
PrintAndLogEx(NORMAL, "----+------------------------------------------------");
|
PrintAndLogEx(NORMAL, "----+------------------------------------------------");
|
||||||
uint8_t blocks = 4;
|
uint8_t blocks = 4;
|
||||||
uint8_t start = sector * 4;
|
uint8_t start = sector * 4;
|
||||||
if (sector > 32) {
|
if (sector >= 32) {
|
||||||
blocks = 16;
|
blocks = 16;
|
||||||
start = 128 + (sector - 32) * 16;
|
start = 128 + (sector - 32) * 16;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue