mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
commit
956899b839
1 changed files with 4 additions and 0 deletions
|
@ -1444,6 +1444,10 @@ int CmdEMVScan(const char *cmd) {
|
||||||
|
|
||||||
smart_card_atr_t card;
|
smart_card_atr_t card;
|
||||||
smart_select(true, &card);
|
smart_select(true, &card);
|
||||||
|
if (!card.atr_len) {
|
||||||
|
PrintAndLogEx(ERR, "Can't get ATR from a smart card.");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
JsonSaveStr(root, "$.Card.Contact.Communication", "iso7816");
|
JsonSaveStr(root, "$.Card.Contact.Communication", "iso7816");
|
||||||
JsonSaveBufAsHex(root, "$.Card.Contact.ATR", (uint8_t *)card.atr, card.atr_len);
|
JsonSaveBufAsHex(root, "$.Card.Contact.ATR", (uint8_t *)card.atr, card.atr_len);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue