mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
add some info to create
This commit is contained in:
parent
8132c7753d
commit
81d18ebb89
3 changed files with 7 additions and 3 deletions
|
@ -330,7 +330,7 @@ void CIPURSEPrintInfoFile(uint8_t *data, size_t len) {
|
||||||
CIPURSEPrintManufacturerInfo(data[8]);
|
CIPURSEPrintManufacturerInfo(data[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void CIPURSEPrintFileDescriptor(uint8_t desc) {
|
void CIPURSEPrintFileDescriptor(uint8_t desc) {
|
||||||
if (desc == 0x01)
|
if (desc == 0x01)
|
||||||
PrintAndLogEx(INFO, "Binary file");
|
PrintAndLogEx(INFO, "Binary file");
|
||||||
else if (desc == 0x11)
|
else if (desc == 0x11)
|
||||||
|
|
|
@ -61,5 +61,6 @@ bool CIPURSEChannelAuthenticate(uint8_t keyindex, uint8_t *key, bool verbose);
|
||||||
void CIPURSECSetActChannelSecurityLevels(CipurseChannelSecurityLevel req, CipurseChannelSecurityLevel resp);
|
void CIPURSECSetActChannelSecurityLevels(CipurseChannelSecurityLevel req, CipurseChannelSecurityLevel resp);
|
||||||
|
|
||||||
void CIPURSEPrintFileAttr(uint8_t *attr, size_t len);
|
void CIPURSEPrintFileAttr(uint8_t *attr, size_t len);
|
||||||
|
void CIPURSEPrintFileDescriptor(uint8_t desc);
|
||||||
|
|
||||||
#endif /* __CIPURSECORE_H__ */
|
#endif /* __CIPURSECORE_H__ */
|
||||||
|
|
|
@ -1014,11 +1014,14 @@ static int CmdHFCipurseCreateDGI(const char *Cmd) {
|
||||||
CLIParserFree(ctx);
|
CLIParserFree(ctx);
|
||||||
SetAPDULogging(APDULogging);
|
SetAPDULogging(APDULogging);
|
||||||
|
|
||||||
if (verbose && hdatalen > 1) {
|
if (verbose && hdatalen > 3) {
|
||||||
if (hdata[0] == 0x92 && hdata[1] == 0x00)
|
if (hdata[0] == 0x92 && hdata[1] == 0x00)
|
||||||
PrintAndLogEx(INFO, "DGI 9200 - ADF file attributes");
|
PrintAndLogEx(INFO, "DGI 9200 - ADF file attributes");
|
||||||
if (hdata[0] == 0x92 && hdata[1] == 0x01)
|
if (hdata[0] == 0x92 && hdata[1] == 0x01) {
|
||||||
PrintAndLogEx(INFO, "DGI 9201 - EF file attributes");
|
PrintAndLogEx(INFO, "DGI 9201 - EF file attributes");
|
||||||
|
PrintAndLogEx(INFO, "File type:");
|
||||||
|
CIPURSEPrintFileDescriptor(hdata[3]);
|
||||||
|
}
|
||||||
if (hdata[0] == 0xa0 && hdata[1] == 0x0f)
|
if (hdata[0] == 0xa0 && hdata[1] == 0x0f)
|
||||||
PrintAndLogEx(INFO, "DGI a00f - All key values");
|
PrintAndLogEx(INFO, "DGI a00f - All key values");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue