mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
add some info
This commit is contained in:
parent
1b620434c6
commit
cbb484588c
1 changed files with 35 additions and 0 deletions
|
@ -211,6 +211,32 @@ void CIPURSECSetActChannelSecurityLevels(CipurseChannelSecurityLevel req, Cipurs
|
||||||
CipurseCChannelSetSecurityLevels(&cipurseContext, req, resp);
|
CipurseCChannelSetSecurityLevels(&cipurseContext, req, resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void CIPURSEPrintPersoMode(uint8_t data) {
|
||||||
|
if (data & 0x01)
|
||||||
|
PrintAndLogEx(INFO, "Perso: filesystem");
|
||||||
|
if (data & 0x02)
|
||||||
|
PrintAndLogEx(INFO, "Perso: EMV");
|
||||||
|
if (data & 0x04)
|
||||||
|
PrintAndLogEx(INFO, "Perso: transaction supported");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static void CIPURSEPrintProfileInfo(uint8_t data) {
|
||||||
|
if (data & 0x01)
|
||||||
|
PrintAndLogEx(INFO, "Profile: L");
|
||||||
|
if (data & 0x02)
|
||||||
|
PrintAndLogEx(INFO, "Profile: S");
|
||||||
|
if (data & 0x04)
|
||||||
|
PrintAndLogEx(INFO, "Profile: T");
|
||||||
|
}
|
||||||
|
|
||||||
|
static void CIPURSEPrintManufacturerInfo(uint8_t data) {
|
||||||
|
if (data == 0)
|
||||||
|
PrintAndLogEx(INFO, "Manufacturer: n/a");
|
||||||
|
else
|
||||||
|
PrintAndLogEx(INFO, "Manufacturer: %s", getTagInfo(data)); // getTagInfo from cmfhf14a.h
|
||||||
|
}
|
||||||
|
|
||||||
void CIPURSEPrintInfoFile(uint8_t *data, size_t len) {
|
void CIPURSEPrintInfoFile(uint8_t *data, size_t len) {
|
||||||
if (len < 2) {
|
if (len < 2) {
|
||||||
PrintAndLogEx(ERR, "Info file length " _RED_("ERROR"));
|
PrintAndLogEx(ERR, "Info file length " _RED_("ERROR"));
|
||||||
|
@ -219,6 +245,15 @@ void CIPURSEPrintInfoFile(uint8_t *data, size_t len) {
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "------------ INFO ------------");
|
PrintAndLogEx(INFO, "------------ INFO ------------");
|
||||||
PrintAndLogEx(INFO, "CIPURSE version %d revision %d", data[0], data[1]);
|
PrintAndLogEx(INFO, "CIPURSE version %d revision %d", data[0], data[1]);
|
||||||
|
|
||||||
|
if (len >= 3)
|
||||||
|
CIPURSEPrintPersoMode(data[2]);
|
||||||
|
|
||||||
|
if (len >= 4)
|
||||||
|
CIPURSEPrintProfileInfo(data[3]);
|
||||||
|
|
||||||
|
if (len >= 9)
|
||||||
|
CIPURSEPrintManufacturerInfo(data[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CIPURSEPrintFileDescriptor(uint8_t desc) {
|
static void CIPURSEPrintFileDescriptor(uint8_t desc) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue