check PPSE instead of PSE and vice versa. I have one card with this strange behavior...

This commit is contained in:
merlokk 2019-07-16 17:15:32 +03:00
parent a30c62137b
commit e61a65fbe8

View file

@ -829,6 +829,12 @@ static int CmdEMVExec(const char *Cmd) {
PrintAndLogEx(NORMAL, "\n* PPSE.");
SetAPDULogging(showAPDU);
res = EMVSearchPSE(channel, activateField, true, psenum, decodeTLV, tlvSelect);
// check PPSE instead of PSE and vice versa
if (res) {
PrintAndLogEx(NORMAL, "Check PPSE instead of PSE and vice versa...");
res = EMVSearchPSE(channel, false, true, psenum == 1 ? 2 : 1, decodeTLV, tlvSelect);
}
// check PPSE and select application id
if (!res) {