mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-23 14:45:37 -07:00
some additional info
This commit is contained in:
parent
09f33a45c7
commit
98060cf748
3 changed files with 15 additions and 1 deletions
|
@ -183,4 +183,15 @@ bool CIPURSEChannelAuthenticate(uint8_t keyIndex, uint8_t *key, bool verbose) {
|
||||||
CipurseCClearContext(&cipurseContext);
|
CipurseCClearContext(&cipurseContext);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CIPURSEPrintInfoFile(uint8_t *data, size_t len) {
|
||||||
|
if (len < 2) {
|
||||||
|
PrintAndLogEx(ERR, "Info file length " _RED_("ERROR"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
PrintAndLogEx(INFO, "------------ INFO ------------");
|
||||||
|
PrintAndLogEx(INFO, "CIPURSE version %d revision %d", data[0], data[1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
#define CIPURSE_DEFAULT_KEY {0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73}
|
#define CIPURSE_DEFAULT_KEY {0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73, 0x73}
|
||||||
|
|
||||||
|
void CIPURSEPrintInfoFile(uint8_t *data, size_t len);
|
||||||
|
|
||||||
int CIPURSESelect(bool ActivateField, bool LeaveFieldON, uint8_t *Result, size_t MaxResultLen, size_t *ResultLen, uint16_t *sw);
|
int CIPURSESelect(bool ActivateField, bool LeaveFieldON, uint8_t *Result, size_t MaxResultLen, size_t *ResultLen, uint16_t *sw);
|
||||||
|
|
||||||
int CIPURSEChallenge(uint8_t *Result, size_t MaxResultLen, size_t *ResultLen, uint16_t *sw);
|
int CIPURSEChallenge(uint8_t *Result, size_t MaxResultLen, size_t *ResultLen, uint16_t *sw);
|
||||||
|
|
|
@ -90,6 +90,7 @@ static int CmdHFCipurseInfo(const char *Cmd) {
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
PrintAndLogEx(INFO, "Info file: " _GREEN_("OK"));
|
PrintAndLogEx(INFO, "Info file: " _GREEN_("OK"));
|
||||||
PrintAndLogEx(INFO, "[%d]: %s", len, sprint_hex(buf, len));
|
PrintAndLogEx(INFO, "[%d]: %s", len, sprint_hex(buf, len));
|
||||||
|
CIPURSEPrintInfoFile(buf, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
DropField();
|
DropField();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue