mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
info-byte
This commit is contained in:
parent
91ed51c673
commit
5122e1289d
1 changed files with 11 additions and 0 deletions
|
@ -161,6 +161,17 @@ int MAD1DecodeAndPrint(uint8_t *sector, bool verbose, bool *haveMAD2) {
|
||||||
if (verbose)
|
if (verbose)
|
||||||
PrintAndLogEx(NORMAL, "CRC8-MAD OK.");
|
PrintAndLogEx(NORMAL, "CRC8-MAD OK.");
|
||||||
|
|
||||||
|
// info byte
|
||||||
|
uint8_t InfoByte = sector[16 + 1] & 0x3f;
|
||||||
|
if (InfoByte) {
|
||||||
|
PrintAndLogEx(NORMAL, "Card publisher sector: 0x%02x", InfoByte);
|
||||||
|
} else {
|
||||||
|
if (verbose)
|
||||||
|
PrintAndLogEx(NORMAL, "Card publisher sector not present.");
|
||||||
|
}
|
||||||
|
if (InfoByte == 0x10 || InfoByte >= 0x28)
|
||||||
|
PrintAndLogEx(WARNING, "Info byte error");
|
||||||
|
|
||||||
for(int i = 1; i < 16; i++) {
|
for(int i = 1; i < 16; i++) {
|
||||||
uint16_t AID = madGetAID(sector, 1, i);
|
uint16_t AID = madGetAID(sector, 1, i);
|
||||||
PrintAndLogEx(NORMAL, "%02d [%04X] %s", i, AID, GetAIDDescription(AID));
|
PrintAndLogEx(NORMAL, "%02d [%04X] %s", i, AID, GetAIDDescription(AID));
|
||||||
|
|
Loading…
Reference in a new issue