mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
hf mf rdsc - use fcts instead
This commit is contained in:
parent
c40edaec82
commit
14fd9a54df
1 changed files with 3 additions and 6 deletions
|
@ -825,12 +825,9 @@ static int CmdHF14AMfRdSc(const char *Cmd) {
|
||||||
PrintAndLogEx(NORMAL, "isOk:%02x", isOK);
|
PrintAndLogEx(NORMAL, "isOk:%02x", isOK);
|
||||||
if (isOK) {
|
if (isOK) {
|
||||||
|
|
||||||
uint8_t blocks = 4;
|
uint8_t blocks = NumBlocksPerSector(sectorNo);
|
||||||
uint8_t start = sectorNo * 4;
|
uint8_t start = FirstBlockOfSector(sectorNo);
|
||||||
if (sectorNo >= 32) {
|
|
||||||
blocks = 16;
|
|
||||||
start = 128 + (sectorNo - 32) * 16;
|
|
||||||
}
|
|
||||||
for (int i = 0; i < blocks; i++) {
|
for (int i = 0; i < blocks; i++) {
|
||||||
PrintAndLogEx(NORMAL, "%3d | %s", start + i, sprint_hex(data + (i * 16), 16));
|
PrintAndLogEx(NORMAL, "%3d | %s", start + i, sprint_hex(data + (i * 16), 16));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue