mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
added code if AIP not found
This commit is contained in:
parent
17d0194aea
commit
80d07bcaac
1 changed files with 8 additions and 3 deletions
|
@ -897,9 +897,14 @@ int CmdEMVExec(const char *cmd) {
|
|||
}
|
||||
|
||||
// get AIP
|
||||
uint16_t AIP = 0;
|
||||
const struct tlv *AIPtlv = tlvdb_get(tlvRoot, 0x82, NULL);
|
||||
uint16_t AIP = AIPtlv->value[0] + AIPtlv->value[1] * 0x100;
|
||||
if (AIPtlv) {
|
||||
AIP = AIPtlv->value[0] + AIPtlv->value[1] * 0x100;
|
||||
PrintAndLogEx(NORMAL, "* * AIP=%04x", AIP);
|
||||
} else {
|
||||
PrintAndLogEx(ERR, "Can't found AIP.");
|
||||
}
|
||||
|
||||
// SDA
|
||||
if (AIP & 0x0040) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue