chg: iclass output

This commit is contained in:
Chris 2018-06-30 18:34:58 +02:00
commit cd3fc9242e

View file

@ -547,7 +547,10 @@ 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 );
PrintAndLogEx(NORMAL, " App IA: %s", sprint_hex(data+8*5, 8)); PrintAndLogEx(NORMAL, " App IA: %s", sprint_hex(data+8*5, 8));
PrintAndLogEx(NORMAL, " : Possible iClass %s", (legacy) ? "(legacy tag)" : "(NOT legacy tag)"); if ( legacy )
PrintAndLogEx(SUCCESS, " : Possible iClass (legacy tag)");
else
PrintAndLogEx(WARNING, " : Possible iClass (NOT legacy tag)");
} }
if (tagFound && !loop) { if (tagFound && !loop) {