1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // High frequency ISO14443A / ST commands
17 //-----------------------------------------------------------------------------
25 // get ST Microelectronics chip model (from UID)
27 const char *get_st_chip_model(uint8_t pc
) {
30 return "SRIX4K (Special)";
48 return "ST25??? IKEA Rothult";
58 return "ST25TA02KB-P";
60 return "ST25TA02KB-D";
68 // print UID info from SRx chips (ST Microelectronics)
69 void print_st_general_info(uint8_t *data, uint8_t len) {
70 //uid = first 8 bytes in data
71 PrintAndLogEx(NORMAL, "");
72 PrintAndLogEx(SUCCESS, " UID: " _GREEN_("%s"), sprint_hex(SwapEndian64(data, 8, 8), len));
73 PrintAndLogEx(SUCCESS, " MFG: %02X, " _YELLOW_("%s"), data[6], getTagInfo(data[6]));
74 PrintAndLogEx(SUCCESS, "Chip: %02X, " _YELLOW_("%s"), data[5] >> 2, get_st_chip_model(data[5] >> 2));