mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
fix: hf mf nested - now print correct blockno/keytype. Unified output to autopwn style
This commit is contained in:
parent
55d93cd81e
commit
f8876bf748
1 changed files with 7 additions and 6 deletions
|
@ -478,10 +478,10 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBlockNo,
|
|||
free(statelists[1].head.slhead);
|
||||
num_to_bytes(key64, 6, resultKey);
|
||||
|
||||
PrintAndLogEx(SUCCESS, "target block:%3u key type: %c -- found valid key [ %012" PRIx64 " ]",
|
||||
(uint16_t)resp.oldarg[2] & 0xff,
|
||||
(resp.oldarg[2] >> 8) ? 'B' : 'A',
|
||||
key64
|
||||
PrintAndLogEx(SUCCESS, "target block:%3u key type: %c -- found valid key [ " _YELLOW_("%s") "]",
|
||||
package->block,
|
||||
package->keytype ? 'B' : 'A',
|
||||
sprint_hex(resultKey, 6)
|
||||
);
|
||||
return -5;
|
||||
}
|
||||
|
@ -489,8 +489,8 @@ int mfnested(uint8_t blockNo, uint8_t keyType, uint8_t *key, uint8_t trgBlockNo,
|
|||
|
||||
out:
|
||||
PrintAndLogEx(SUCCESS, "target block:%3u key type: %c",
|
||||
(uint16_t)resp.oldarg[2] & 0xff,
|
||||
(resp.oldarg[2] >> 8) ? 'B' : 'A'
|
||||
package->block,
|
||||
package->keytype ? 'B' : 'A'
|
||||
);
|
||||
|
||||
free(statelists[0].head.slhead);
|
||||
|
@ -498,6 +498,7 @@ out:
|
|||
return -4;
|
||||
}
|
||||
|
||||
|
||||
// MIFARE
|
||||
int mfReadSector(uint8_t sectorNo, uint8_t keyType, uint8_t *key, uint8_t *data) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue