mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-23 22:55:37 -07:00
get additional info
This commit is contained in:
parent
84ada9cc14
commit
09f33a45c7
1 changed files with 15 additions and 0 deletions
|
@ -75,7 +75,22 @@ static int CmdHFCipurseInfo(const char *Cmd) {
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Cipurse card: " _GREEN_("OK"));
|
PrintAndLogEx(INFO, "Cipurse card: " _GREEN_("OK"));
|
||||||
|
|
||||||
|
res = CIPURSESelectFile(0x2ff7, buf, sizeof(buf), &len, &sw);
|
||||||
|
if (res != 0 || sw != 0x9000) {
|
||||||
|
DropField();
|
||||||
|
return PM3_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
res = CIPURSEReadBinary(0, buf, sizeof(buf), &len, &sw);
|
||||||
|
if (res != 0 || sw != 0x9000) {
|
||||||
|
DropField();
|
||||||
|
return PM3_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (len > 0) {
|
||||||
|
PrintAndLogEx(INFO, "Info file: " _GREEN_("OK"));
|
||||||
|
PrintAndLogEx(INFO, "[%d]: %s", len, sprint_hex(buf, len));
|
||||||
|
}
|
||||||
|
|
||||||
DropField();
|
DropField();
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue