CHG: added possible SE credential identification text
This commit is contained in:
@@ -547,9 +547,14 @@ int HFiClassReader(const char *Cmd, bool loop, bool verbose) {
|
|||||||
}
|
}
|
||||||
if (readStatus & FLAG_ICLASS_READER_AIA) {
|
if (readStatus & FLAG_ICLASS_READER_AIA) {
|
||||||
bool legacy = ( memcmp( (uint8_t *)(data + 8*5), "\xff\xff\xff\xff\xff\xff\xff\xff", 8) == 0 );
|
bool legacy = ( memcmp( (uint8_t *)(data + 8*5), "\xff\xff\xff\xff\xff\xff\xff\xff", 8) == 0 );
|
||||||
|
|
||||||
|
bool se_enabled = ( memcmp( (uint8_t *)(data + 8*5), "\xff\xff\xff\x00\x06\xff\xff\xff", 8) == 0 );
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, " App IA: %s", sprint_hex(data+8*5, 8));
|
PrintAndLogEx(NORMAL, " App IA: %s", sprint_hex(data+8*5, 8));
|
||||||
if ( legacy )
|
if ( legacy )
|
||||||
PrintAndLogEx(SUCCESS, " : Possible iClass (legacy tag)");
|
PrintAndLogEx(SUCCESS, " : Possible iClass (legacy credential tag)");
|
||||||
|
else if( se_enabled )
|
||||||
|
PrintAndLogEx(SUCCESS, " : Possible iClass (SE credential tag)");
|
||||||
else
|
else
|
||||||
PrintAndLogEx(WARNING, " : Possible iClass (NOT legacy tag)");
|
PrintAndLogEx(WARNING, " : Possible iClass (NOT legacy tag)");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user